help with if formula

Rubygas14

New Member
Joined
Jun 26, 2017
Messages
20
Hi i have 2 dates and using the below formula due to different months this is not calculating correctly

30/11/2018 21:1003/12/2018
08:00
Late

<tbody>
</tbody>

=IF(I3< l3,"ok","late")
<l3,"ok","late")
<l3,"ok","late")
Code:
<l3,"ok","late")[ 
Can Anyone Help 

Thanks</l3,"ok","late")[code]<l3,"ok","late")[></l3,"ok","late")
 
Last edited by a moderator:
That formula, will indeed convert the values to text.
Try this in place of the formula in post#1
=IF(DATEVALUE(I3)<DATEVALUE(L3),"Ok","Late")

Hi,

Fluff's formula got cut off:

=IF(DATEVALUE(I3) < DATEVALUE(L3),"Ok","Late")
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thanks for that jtakw
I should know better by now & have corrected it.
 
Upvote 0

Forum statistics

Threads
1,215,139
Messages
6,123,263
Members
449,093
Latest member
Vincent Khandagale

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