Issue with 00-Jan-00 formula return

Koimaster

New Member
Joined
May 27, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Dear experts,

As I am not seeing the solution, I wanted to ask you experts if you could help me out.
This is my current formula working with dates:

=IF(W927>V927;"DELAYED DELIVERED";IF(ISBLANK(W927);IF(TODAY()>V927; "NOT YET DELIVERED (LATE)";"NOT YET DELIVERED");"DELIVERED WITHIN LEADTIME"))

V= Expected delivery date
W = Delivery date (returned from another sheet, so it might return a result that is blank as it might not have been delivered yet, but then returns 00-Jan-00 or if no data #N/A.
It works like a charm for most.
However when cell "W" returns from another sheet, that has a blank date field, the value 00-Jan-00 it provides the result "DELIVERED WITHIN LEADTIME".
However i would expect the return "NOT YET DELIVERED" or "NOT YET DELIVERED (LATE)" depending on today's date being later or earlier than cell "V".
With the return of #N/A it perfectly provides "NOT YET DELIVERED"
It's just not working with the 00-Jan-00

Ad I tried so many things, but I just do not see it unfortunately.

Any advice here that I could maybe use?

Appreciated your support already!

Thank you!
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Please show us the formula in W ?
This will most likely give you what you need but it would be better to clean up you incoming data.
Excel Formula:
=IF(W927>V927;"DELAYED DELIVERED";IF(OR(ISBLANK(W927);W927=0);IF(TODAY()>V927; "NOT YET DELIVERED (LATE)";"NOT YET DELIVERED");"DELIVERED WITHIN LEADTIME"))
 
Upvote 1
Hi Alex,

Thank you for your prompt reply.
W would be: =VLOOKUP(A913;'SHIPMENT REPORT'!A:G;7;FALSE)

Wauw, this formula already indeed shows what it should show.

A BIG thank you!
 
Upvote 0
Typically if the date is blank or #N/A you would handle it in the lookup formula eg:
Excel Formula:
=LET(returnValue;IFERROR(VLOOKUP(A927;'SHIPMENT REPORT123451'!A:G;7;FALSE);"");
            IF(returnValue="";"";returnValue))

or
Excel Formula:
=LET(returnValue;XLOOKUP(A927;'SHIPMENT REPORT123451'!A:A;'SHIPMENT REPORT123451'!G:G;"");
            IF(returnValue="";"";returnValue))

This would change your other formula to this:
Excel Formula:
=IF(W927>V927;"DELAYED DELIVERED";IF(W927="";IF(TODAY()>V927; "NOT YET DELIVERED (LATE)";"NOT YET DELIVERED");"DELIVERED WITHIN LEADTIME"))
 
Upvote 1
Solution

Forum statistics

Threads
1,223,888
Messages
6,175,219
Members
452,619
Latest member
Shiv1198

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