IF Formula

akowalu

New Member
Joined
Aug 30, 2006
Messages
31
I'm trying to do an IF formula where it will look at a list of dates in column "D" and if that date is between 7/01/06 - 10/01/06 I want it to return "0-3 months".. and if the date is between 04/01/06 - 06/31/06, I want it to return "4-6 months".. and if the date is 3/31/06 or before I want it to return "6+ months". Any suggestions?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
First a question, do you really want to hard code those dates, or are those choices of dates based on the current month somehow?
 
Upvote 0
If you would have to go in and manually change those every month, I think that it would be better to have a formula that would deal with that. If that is the case, can you please share what the choice of dates is based on?
 
Upvote 0
We could manually change the dates, if need be.. But the range is always going to be set at 0-3 months; 4-6 months & 6+ months from the current date. The dates listed above are what we're currently looking at.
 
Upvote 0
You will need the Analysis Toolpak loaded for this, does this work for you?

=LOOKUP(DATEDIF(EOMONTH(D1,-1)+1,EOMONTH(TODAY(),0)+1,"m"),{0,"0 to 3 months";4,"4 to 6 months";7,"6+ months"})
 
Upvote 0

Forum statistics

Threads
1,217,382
Messages
6,136,234
Members
450,000
Latest member
jgp19

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