Login Page - Create Account

Support Board


Date/Time: Sat, 01 Feb 2025 14:59:09 +0000



[Programming Help] - how to get column value X in selected time to column Z

View Count: 716

[2019-07-18 11:09:02]
User865284 - Posts: 4
Good day
I need help
to SpreadsheetStudy
??? how to get column value X in selected time to column Z

thank you
image001.png / V - Attached On 2019-07-18 10:54:50 UTC - Size: 45.5 KB - 227 views
[2019-07-18 13:31:11]
Sawtooth - Posts: 4164
Try this formula in Z3:

=IF(MROUND(FRACTIME(A3),1/86400)=TIMEVALUE("08:30:00"),X3,Z4)

FRACTIME gets the Time value from the DateTime in A3.
MROUND rounds it to the nearest 1 second (there are 86400 seconds in 24 hours) This is necessary to remove floating point errors.
TIMEVALUE converts text of the Time value into Serial DateTime format.

https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#MROUND_Function
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#FRACTIME_Function
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#TIMEVALUE_Function

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account