Combining multiple IF statements to result in a date

Carrie2525

New Member
Joined
Jun 10, 2015
Messages
18
Hello!

I have almost finished my spreadsheet project that I was working on, yesterday. I've hit one final snag, though. I need to auto-populate a couple of dates that result from calculations and multiple IF statements, and I would VERY much like to combine all of these conditions into one big equation. Here is an example of one calculation that I'd like to write for cell B12:

If the number of days between B8 and B3 < 90, then B12 = (B8 + 90)
If the number of days between B8 and B3 > 89, but <180, then B12 = (B8 + 179)
If the number of days between B8 and B3 > 179, then B12 = “Indefinite”
If B7 = “N”, then B12 = “N/A”

**I have been using the DATEDIF formula option for the first part of these equations with good success. Example: =(DATEDIF(B8,B3,”D”))>179
**in the cases where B7 = “N”, B8 will be left blank)
**for the first three conditions, there would be a date in B8, and a “Y” in B7

I am so grateful for any help you could offer. Would love to have this project off of my plate, once and for all. Thanks :-)


Excel 2012
AB
1DivisionHuman Resources
2NameJohn Adams
3Start Date1-Jun-15
4Experience Level (E/I)E
5Expiration Date of SR0415-May-15
6Regression Date1-Apr-15
7L/R Qual (Y/N)N
8Expiration Date of LD002-Feb-15
9
10
11
12Program is Valid Through:(This needs to be a date)
Sheet1
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi Carrie,
Your 1st 2 if's don't seem correct! If<90 then if>89? Should it be <90 then >=90?

Gaz

Edit: Actually reading it again i think it is right, doh!
 
Upvote 0
Gaz, what would I do without you? It's perfect. Thank you so very much. I can adapt the rest of my formulas to match this one. Every time you help me, I learn more about Excel. I thank you for that.
 
Upvote 0

Forum statistics

Threads
1,223,162
Messages
6,170,432
Members
452,326
Latest member
johnshaji

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