+ Reply to Thread
Results 1 to 7 of 7

Return cell value if date falls within specified range

  1. #1
    Registered User
    Join Date
    06-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    2

    Return cell value if date falls within specified range

    Capture.GIF

    Hi,

    I have a set of dates and I wish to bucket them according to my company's fiscal months. For example, 2/25/13 falls within fiscal March and my date range table (C1:E7) is aligned as such. What kind of formula can I use so that when I do a lookup on any date in column A, it will return the proper value from column E? Any help would be appreciated. Thanks!

    Chirag
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Return cell value if date falls within specified range

    Hi and welcome to the forum

    This seems wayyyyy too simplistic...
    =D1
    format custom "MMMM"
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-28-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007/2010
    Posts
    94

    Re: Return cell value if date falls within specified range

    hi,
    please try this one. paste it in b1, and move down
    =VLOOKUP(A1;$C$1:$E$7;3;TRUE)
    or
    =VLOOKUP(A1,$C$1:$E$7,3,TRUE)

    br
    Like to say thanks ?Please use the star icon.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Return cell value if date falls within specified range

    lol nice 1, young_86, I guess I should read properly...think before you ink?

  5. #5
    Registered User
    Join Date
    06-10-2013
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Return cell value if date falls within specified range

    That's it! Thanks young_86! I found another variant in =LOOKUP(A1,$D$1:$E$7,$F$1:$F$7).

  6. #6
    Registered User
    Join Date
    10-28-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007/2010
    Posts
    94

    Re: Return cell value if date falls within specified range

    yes, this also work.
    Welcome to the community

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Return cell value if date falls within specified range

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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