I have a cell A1 with 00:40. I would like to write a formulae to recognise this as a hh:mm.
Apparently this formulae does not work: =if(A1="00:40",1,0). I get the result as 0, not 1. Is there anyway to get this excel formulae to return as 1?
I have other cells A2=00:42, A3=text, A4=00.50, A6=text, and A7=00.55. Is it possible to have a formulae to extract only the times and ignore the rest?
According to the comment you added on JDunkerley’s answer, here is what you can try:
This will return some text.
Note that you could also use the
TIMEVALUEfunction to convert this to a time (usingLEFTandRIGHTto extract hours and minutes).