Closed Thread
Results 1 to 2 of 2

Thread: Nested What If statement using date ranges

  1. #1
    Registered User
    Join Date
    01-08-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Nested What If statement using date ranges

    Hello,

    I am trying to create a nested what if statement in excel using multiple date ranges. For example:

    If Cell X > 12/2/2009 but less than 12/31/2011 return 0-3

    If Cell X > 12/2/2006 but less than 12/2/2009 return 3-5

    If Cell X > 12/2/2001 but less than 12/2/2006 return 5-10

    If Cell X < 12/2/2001 return over 10

    The what if statement I created rerutrns the same answer regardless what is in Cell X
    =IF(J31>="12/2/2009"&J31<"12/31/2011","0-3",IF(J31>="12/2/2006"&J31<"12/2/2009","",IF(J31>="12/2/2001"&J31<"12/2/2006","5-10",IF(J31<="12/2/2001","over 10"))))

    Please help

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Nested What If statement using date ranges

    Quote Originally Posted by Glenn1 View Post
    Hello,

    I am trying to create a nested what if statement in excel using multiple date ranges. For example:

    If Cell X > 12/2/2009 but less than 12/31/2011 return 0-3

    If Cell X > 12/2/2006 but less than 12/2/2009 return 3-5

    If Cell X > 12/2/2001 but less than 12/2/2006 return 5-10

    If Cell X < 12/2/2001 return over 10

    The what if statement I created rerutrns the same answer regardless what is in Cell X
    =IF(J31>="12/2/2009"&J31<"12/31/2011","0-3",IF(J31>="12/2/2006"&J31<"12/2/2009","",IF(J31>="12/2/2001"&J31<"12/2/2006","5-10",IF(J31<="12/2/2001","over 10"))))

    Please help
    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0