IF statement for Dates

jcountry22

New Member
Joined
Aug 15, 2014
Messages
36
I'm trying to figure out a formula with an IF statement to generate the words SHIPPED or BACKLOG based on dates.

starting Cell A2 = Order date, 1/1/17
Cell B2 = ship date, 2/1/17

If ship date is blank, generate "BACKLOG" text

if ship date > order date = "SHIPPED" text

text should appear in cell C2
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Try
Code:
=IF(B2="","BACKLOG",IF(B2>=A2,"SHIPPED","Ship date less than order date"))
 
Upvote 0
Thanks,

But i need the formula to generate just the words... Either "BACKLOG" or "SHIPPED"

If ship date > order then generate text of " SHIPPED"

if ship date cell is blank, then formula should generate text of "BACKLOG"
 
Upvote 0
Scott's formula should do that.
You just left out the possible scenario of B2 < A2, he guessed and used "Ship date less than order date"

What did the formula Scott posted actually do that was wrong?
If you got the text Ship date less than order date, then that means B2 is NOT blank, and B2 is Less than A2.

Perhaps B2 and / or A2 are NOT real dates, what do these return
=ISNUMBER(A2)
=ISNUMBER(B2)
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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