Formula show text base on time value

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
Hello Good Day,
Could you please help me with the formula that will lookup the related column which contains times as 12:00 etc....
And it will write the cell they YES or NO base on time value..
If the time below 12:00 can be shown as text, "YES" ...Above can be "NO"
Many Thanks
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
does this work for you

=IF(A2<=TIMEVALUE("12:00"),"yes","no")

Book1
ABC
1
210:00yes
311:00yes
412:00yes
513:00no
614:00no
715:00no
Sheet1
Cell Formulas
RangeFormula
C2:C7C2=IF(A2<=TIMEVALUE("12:00"),"yes","no")
 
Upvote 0
Hello again,
What instead time value if there is numbers like 500?
Tq
 
Upvote 0
Hello again,
If the cell is empty result shows as YES
Is it possible to avoid that error?
Actually there is a below formula on that cell which takes the datas.
If cell is empty without formula its fine.
With formula it shows as YES:(
Excel Formula:
=IFERROR(VLOOKUP(CF3,BE:BZ,22,0),"")
Thanks Again
 
Upvote 0
=IF(AND(A2<>"",A2<=500),"yes","no")

will give a no for a blank cell

OR
=If(A2="","",IF(A2<=500,"yes","no"))
will not give a result for blank cells
 
Upvote 0

Forum statistics

Threads
1,215,382
Messages
6,124,620
Members
449,175
Latest member
Anniewonder

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top