IF Statement Issue

mrsushi

Board Regular
Joined
Nov 18, 2006
Messages
180
Office Version
  1. 2010
For some reason when the time in Column C (09:15) is greater than Column D (08:15), doesn't return "LATE"

Any ideas pls?

Excel Formula:
=IF(C4>D4, IF(OR(H4="BBA", H4="DRFI", H4="EUR", H4="7 Day EUR LIBID", H4="LGI6"), "Late Delivery", IF(OR(H4="NYFR", H4="NYFR"), "Delayed Delivery PM", IF(OR(H4="SONIA", H4="PFBL98"), "Delayed Delivery AM"))),  IF(C4<D4, "Delivered", "Late"))
 
I just realized you don't have XMATCH. Try this instead:
Book1
ABCDEFGHIJKL
1File NameDATE/TIME47173DeadlineStatusPathFile
201/03/2024 05:310.3854166670.34375Late DeliveryBBARBBARLate Delivery
301/03/2024 05:310.4166666670.34375Late DeliveryE - 7 Day EUR LIBIDE - 7 Day EUR LIBIDLate Delivery
401/03/2024 05:310.4583333330.34375Delayed Delivery PMNYFRCUSTNYFRCUSTDelayed Delivery PM
501/03/2024 04:150.4895833330.34375Delayed Delivery AMPFBL98PFBL98Delayed Delivery AM
601/03/2024 04:450.3750.34375CLOSE
701/03/2024 05:340.3750.34375OPEN
802/03/2024 05:340.3750.34375OPEN
9
10
110.3854166670.34375Late DeliveryLate DeliveryBBAR
120.4166666670.34375Late DeliveryLate DeliveryE - 7 Day EUR LIBID
130.4583333330.34375Delayed Delivery PMDelayed Delivery PMNYFRCUST
140.4895833330.34375Delayed Delivery AMDelayed Delivery AMPFBL98
150.3750.34375LateCLOSE
160.3750.34375LateOPEN
170.3750.34375LateOPEN
Sheet1
Cell Formulas
RangeFormula
F11:F17F11=IF(C11>D11,IFERROR(INDEX($L$2:$L$5,MATCH(H11,$K$2:$K$5,0)),"Late"),"Delivered")
 
Upvote 0
Solution

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
try this:

Book3
ABCDEFGHIJKLM
1File NameDATE/TIME2029-02-24DeadlineStatusPathFile
201/03/2024 05:3109:1508:15Late DeliveryBBARBBARLate Delivery
301/03/2024 05:3110:0008:15Late DeliveryE - 7 Day EUR LIBIDE - 7 Day EUR LIBIDLate Delivery
401/03/2024 05:3111:0008:15Delayed Delivery PMNYFRCUSTNYFRCUSTDelayed Delivery PM
501/03/2024 04:1511:4508:15Delayed Delivery AMPFBL98PFBL98Delayed Delivery AM
601/03/2024 04:4509:0008:15CLOSE
701/03/2024 05:3409:0008:15OPEN
802/03/2024 05:3409:0008:15OPEN
9
10
1109:1508:15Late DeliveryLate DeliveryBBAR
1210:0008:15Late DeliveryLate DeliveryE - 7 Day EUR LIBID
1311:0008:15Delayed Delivery PMDelayed Delivery PMNYFRCUST
1411:4508:15Delayed Delivery AMDelayed Delivery AMPFBL98
1509:0008:15LateCLOSE
1609:0008:15LateOPEN
1709:0008:15LateOPEN
Sheet1
Cell Formulas
RangeFormula
F11:F17F11=IF(C11>D11,XLOOKUP(H11,K2:K5,L2:L5,"Late",0,1),"Delivered")


Thats
I just realized you don't have XMATCH. Try this instead:
Book1
ABCDEFGHIJKL
1File NameDATE/TIME47173DeadlineStatusPathFile
201/03/2024 05:310.3854166670.34375Late DeliveryBBARBBARLate Delivery
301/03/2024 05:310.4166666670.34375Late DeliveryE - 7 Day EUR LIBIDE - 7 Day EUR LIBIDLate Delivery
401/03/2024 05:310.4583333330.34375Delayed Delivery PMNYFRCUSTNYFRCUSTDelayed Delivery PM
501/03/2024 04:150.4895833330.34375Delayed Delivery AMPFBL98PFBL98Delayed Delivery AM
601/03/2024 04:450.3750.34375CLOSE
701/03/2024 05:340.3750.34375OPEN
802/03/2024 05:340.3750.34375OPEN
9
10
110.3854166670.34375Late DeliveryLate DeliveryBBAR
120.4166666670.34375Late DeliveryLate DeliveryE - 7 Day EUR LIBID
130.4583333330.34375Delayed Delivery PMDelayed Delivery PMNYFRCUST
140.4895833330.34375Delayed Delivery AMDelayed Delivery AMPFBL98
150.3750.34375LateCLOSE
160.3750.34375LateOPEN
170.3750.34375LateOPEN
Sheet1
Cell Formulas
RangeFormula
F11:F17F11=IF(C11>D11,IFERROR(INDEX($L$2:$L$5,MATCH(H11,$K$2:$K$5,0)),"Late"),"Delivered")

Many thanks for the statement. That's worked. :)

Much appreciated.

Regards
 
Upvote 0

Forum statistics

Threads
1,215,477
Messages
6,125,037
Members
449,205
Latest member
Eggy66

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