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?
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,955
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,955
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,955
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"})
 

Watch MrExcel Video

Forum statistics

Threads
1,109,424
Messages
5,528,685
Members
409,830
Latest member
KT50

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top