+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : IF functions with Date ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    04-30-2010
    Location
    Dunmore, Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Angry IF functions with Date ranges

    Is there any formula that I can use when working with a specific date range and if someone's birthday falls in that range a certain text or value would be displayed? For example I want to create a spreadsheet for my soccer players and have them sorted into teams according to their birthdays. So if their birthday falls into the following date range: 08/01/05-07/01/07 a U-8 or U-10 would be displayed in the corresponding cell. I tried working with the IF function, but I got no where. Please help. Thank You.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: IF functions with Date ranges...

    e.g.

    =IF(AND(A1>="08/01/05"+0),(A1<="07/01/07"+0),"U-8","U-10")

    So if date is in range U-8 displayed, else U-10 is displayed.

    Is that what you mean?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-30-2010
    Location
    Dunmore, Pennsylvania
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: IF functions with Date ranges...

    yes that is exactly what I mean, thank you...

  4. #4
    Registered User
    Join Date
    06-06-2013
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Excel 2007 : IF functions with Date ranges

    This is what I was searching for! Thanks allot...

  5. #5
    Registered User
    Join Date
    01-24-2014
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Excel 2007 : IF functions with Date ranges

    .....while I was going through the subject 'IF functions with Date ranges', a small syntax error caught my attention.... .....the correct syntax would be: =IF(AND(A1>="08/01/05"+0,A1<="07/01/07"+0),"U-8","U-10") .....and this will give the desired output....the additional two brackets given in your syntax will mislead the AND function.....

+ Reply to 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.6.0 RC 1