Can anyone help me make this formula work? I want the formula to display 1,2, or 3 depending on the time. This is the basic logic but the syntax is all wrong.
![]()
Please Login or Register to view this content.
Can anyone help me make this formula work? I want the formula to display 1,2, or 3 depending on the time. This is the basic logic but the syntax is all wrong.
![]()
Please Login or Register to view this content.
=IF(NOW()<TODAY()+TIMEVALUE("10:00"),1,IF(NOW()<TODAY()+TIMEVALUE("15:00"),2,3))
Regards
Use a cell to hold the current time.
A1: =NOW()
Format as Time h:mm
Then:
=IF(HOUR(A1)<10,1,IF(HOUR(A1)<15,2,3))
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Nice, Tony. Your moniker is certainly justified by that one! And my response a little humbled!
Thanks!![]()
I like both solutions. Thanks
You're welcome!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks