Multiple nested if functions

halefamily104

New Member
Joined
Oct 11, 2016
Messages
31
Hello All,

I am working on a formula that returns text based on the date returned in a cell. I am getting a "there is a problem with this formula". I cannot figure out what the problem is. Here is the formula:

=IF(EH16=DATEVALUE("3/31/1900"),"Missing Date",""),IF(AND((TODAY()-EH16)>30,EI16=""),"Not Due"), IF(AND(EH16<TODAY(),EI16=""),"Overdue"), IF(EI16="","Not Done"), IF(EI16<>"","Current","")))))

Any ideas?
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Try it like
Excel Formula:
=IF(EH16=DATEVALUE("3/31/1900"),"Missing Date",IF(AND((TODAY()-EH16)>30,EI16=""),"Not Due", IF(AND(EH16<TODAY(),EI16=""),"Overdue", IF(EI16="","Not Done", IF(EI16<>"","Current","")))))
 
Upvote 0
Solution
Beautiful Fluff! Thanks so much! That worked! I have a question. Everything is working fine except the "Not Due" portion:

=IF(EH16=DATEVALUE("3/31/1900"),"Missing Date",IF(AND((TODAY()-EH16)>30,EI16=""),"Not Due", IF(AND(EH16<TODAY(),EI16=""),"Overdue", IF(EI16="","Not Done", IF(EI16<>"","Current","")))))

The formula will identify the ones that are "Not Due" based on the date in EH16. If that date is greater than 30 days, it should return "Not Due". Is the formula correct?
 
Upvote 0
That will return "Not Due" if EI16 is blank & EH16 is more than 30 days in the past.
 
Upvote 0
It should return it if its more than 30 days in the future. Did you mean future?
Because it is returning "Not Due" for dates that are overdue
 

Attachments

  • Not Due.JPG
    Not Due.JPG
    43.9 KB · Views: 5
Upvote 0
Switched and BEAUTIFUL! That worked! Thanks so much! Final result:

=IF(EH16=DATEVALUE("3/31/1900"),"Missing Date",IF(AND((EH16-TODAY())>30,EI16=""),"Not Due", IF(AND(EH16<TODAY(),EI16=""),"Overdue", IF(EI16="","Not Done", IF(EI16<>"","Current","")))))
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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