macros - Google Sheets: How to check if current time is less than time in a cell? -
what have done
i have spread sheet have time in , time out. on "f3" using "=text(now(), "hh:mm:ss")" current time value. in settings having onchange every minute. time in cell changing every minute.
blocker
now want achieve is, when current time passed time in. set "b4" cell "in" if current time passes time out set "b4" "out".
i know how set cells using script such as,
spreadsheetapp.getactivesheet().getrange('b4').setvalue('in/out');
but i'm having trouble comparing 2 cells "c4" , "f3".
what next?
so, have continue working on script part , compare 2 cells there? or create conditional formatting on "b4" cell? if so, how compare time in google sheets?
Comments
Post a Comment