+ Reply to Thread
Results 1 to 7 of 7

Vlookup date range to return month

  1. #1
    Registered User
    Join Date
    04-06-2013
    Location
    paris, france
    MS-Off Ver
    Excel 2007
    Posts
    3

    Vlookup date range to return month

    I want to be able to lookup a date within a date range and return the Month. Sample spreadsheet attached. Any help would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Vlookup date range to return month

    hi AW76, welcome to the forum. shouldn't D3:D4 be year 2012? if so, try:
    =INDEX(F1:F12,MATCH(1,INDEX((D1:D12<=B1)*(E1:E12>=B1),),0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    03-24-2013
    Location
    Earth
    MS-Off Ver
    Excel 2003/2007/2010
    Posts
    81

    Re: Vlookup date range to return month

    Hi , AW76

    Try this , as view as picture of attachment

    20130406 snap0075642.jpg

    Good Luck !

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup date range to return month

    ok here's a way strange date bands and you seam to have a typo for december see attached
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Vlookup date range to return month

    @ Careless it's bad enough when questions are asked with image examples..
    why not add a workbook?

  6. #6
    Registered User
    Join Date
    04-06-2013
    Location
    paris, france
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup date range to return month

    Great. thanks it works!

  7. #7
    Registered User
    Join Date
    04-06-2013
    Location
    paris, france
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Vlookup date range to return month

    thanks for formula and correction of typo!

+ 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