Formula help - between times

Jwinssss

New Member
Joined
Jan 17, 2024
Messages
18
Office Version
  1. 2019
Platform
  1. Windows
Hi
I'm hoping for some help to work this out
=IF(AP14>=AQ14,IF(AP14<=AR14,"On time","Late"))
This does not work as the highlighted ones are on time but the formula shows as late?
All I need to calculate is that Row AP is between Rows AQ & AR

1712305519964.png
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
i saw that in then highlighted row, AP greater than AR so formula is correct, if AP actually lower than AR then data in AR is on the day after, then you should enter date time data and format it as "hh:mm:ss"
 
Upvote 0
AP & AQ is just N split because i thought that was throwing the formula out if i move it to

=IF(N14>=AQ14,IF(N14<=AR14,"On time","Late"))

And even if i format the row i still get the same result although this time it shows everything as late
1712307202923.png
 

Attachments

  • 1712307059075.png
    1712307059075.png
    35.7 KB · Views: 9
Upvote 0
AP & AQ is just N split because i thought that was throwing the formula out if i move it to

=IF(N14>=AQ14,IF(N14<=AR14,"On time","Late"))

And even if i format the row i still get the same result although this time it shows everything as late
View attachment 109516
the problem is data in your AR column, i don't know its date but if it not be "late" then data in your AR column should be the day after the day in N column, because you format data in AR column as "hh:mm:ss" so i can't see its date, but the formula turn it to "late" that means your AR is same date as N or earlier, and you shouldn't split date time data, just format it as "dd/mm/yyyy" or "hh:mm:ss" if you want
 
Upvote 0
Does this work for you?

=IF(MEDIAN(N14,AO14+AQ14,AO14+AR14)=N14,"On Time","Late")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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