Time and text on IF formula

nicasoft

New Member
Joined
Jun 25, 2016
Messages
6
hi,

I have the following formula:

Code:
<vlookup(c31,sheet2!c29:ah29,32,false),"oos","other text="" or="" formula")
[COLOR=#3E3E3E]=IF(O1 < VLOOKUP(C31,Sheet2!C29:AH29,32,FALSE),"OOS","other text or formula") [/COLOR][COLOR=#3E3E3E]<vlookup(c31,sheet2!c29:ah29,32,false),"oos","other text="" or="" formula")="" <="" font="">
O1 is a time cell and basically check with Sheet2 cell AH29 and if the time in O1 is < than AH29 it shows "OOS", so far so good, however AH29 not always is a time cell, sometime is text and is giving me OOS all the time is a text value. What I want is IF is time that do the formula and if is text that show the text instead. I dont know how to use IFNUMBER or ISTEXT in IF formula. If someone has an idea how to do this I will be grateful.</vlookup(c31,sheet2!c29:ah29,32,false),"oos","other>[/COLOR]</vlookup(c31,sheet2!c29:ah29,32,false),"oos","other>
 
Last edited by a moderator:

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Not sure I understood everything but does this work:

=IF(J10 < TEXT(J11,"HH:MM"),"OOS")

EDIT: delete the spaces before and after "<".
 
Last edited:
Upvote 0
Sorry It got truncated. I fixed now

Try this:

=IF(O1 < TEXT(VLOOKUP(C31,Sheet2!C29:AH29,32,FALSE),"HH:MM"),"OOS","other text or formula") <vlookup(c31,sheet2!c29:ah29,32,false),"oos","other formula?)="" or="" text="" font="" <=""></vlookup(c31,sheet2!c29:ah29,32,false),"oos","other>
 
Upvote 0
Sorry It got truncated. I fixed now
That was actually me who fixed it!;)
Be sure to read the link I provided, so you know how to avoid the issue going forward.
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,849
Members
449,096
Latest member
Erald

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