excel - IF statement using TIME -


i trying write if statement @ range time , return either shift or shift b.

this formula isn't working:

=if(f2>time(6,0,0),if(f2<time(16,0,0)),"a","b") 

use =and both (or more) conditions have met result in true. second if not required. with:

=if(and(f2>time(6,0,0),f2<time(16,0,0)),"a","b")   

shift applies after 06:00 hrs through before 16:00 hrs , shift b otherwise. if , f intermingled in same formula little unfortunate!


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -