+ Reply to Thread
Results 1 to 4 of 4

Formula to Lookup value based on date within a date range

  1. #1
    Registered User
    Join Date
    12-03-2012
    Location
    New Castle, DE
    MS-Off Ver
    Excel 2007
    Posts
    65

    Formula to Lookup value based on date within a date range

    Hello,

    Title is probably confusing, but I'm going to try to describe my situation as best as I can.
    I need a formula for searching a date if it's within a date range and get data on another column based on the results.

    For instance,
    the date is 4/29/13 and is located in the tab labeled "533_Rpt" in cell J1
    I need it to search for that date within a range of dates located in the tab labeled "Switch". Column W has teh start date of month (1/1, 2/1, 3/1, etc.) and column X has the end date of the month (1/31, 2/28, 3/31, etc). Column Y has the value that I need the formula to bring over tot he "533_Rpt" tab in cell K1.

    What would be the best way to achieve my results?
    This is the formula I cuurently have that does not work:
    {=IF(('533_Rpt'!$J$1>=Switch!$W$2:$W$253)*('533_Rpt'!$J$1<=Switch!$X$2:$X$253),MATCH(ROW(Switch!$Y$2:$Y$253),ROW(Switch!$Y$2:$Y$253)))}


    Thank you,
    Miriam

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to Lookup value based on date within a date range

    Try this assuming the dates in column W are sorted in Ascending order.

    =LOOKUP('533_Rpt'!$J$1,Switch!$W$2:$Y$253)

  3. #3
    Registered User
    Join Date
    12-03-2012
    Location
    New Castle, DE
    MS-Off Ver
    Excel 2007
    Posts
    65

    Re: Formula to Lookup value based on date within a date range

    That is AWESOME!!!
    It worked perfectly. Clearly I could not think of something as simple as that formula.


    Thank you!!!

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Formula to Lookup value based on date within a date range

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Create Fiscal Year - Lookup Date in Fiscal Month Date Range and Return EOM Date
    By gbriscoe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-25-2013, 03:29 PM
  2. Lookup rate based on vendor and date range
    By June12 in forum Excel General
    Replies: 3
    Last Post: 06-30-2011, 09:21 PM
  3. Multiple lookup based on date range pricing
    By posttoamit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-18-2011, 05:52 PM
  4. Excel 2007 : Lookup of material price based on date range
    By posttoamit in forum Excel General
    Replies: 1
    Last Post: 02-18-2011, 08:58 AM
  5. Replies: 2
    Last Post: 09-20-2010, 02:51 PM

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