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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
First a question, do you really want to hard code those dates, or are those choices of dates based on the current month somehow?
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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?
 

akowalu

New Member
Joined
Aug 30, 2006
Messages
31

ADVERTISEMENT

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.
 

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
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"})
 

Forum statistics

Threads
1,141,139
Messages
5,704,503
Members
421,353
Latest member
jekoxien15

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
Top