+ Reply to Thread
Results 1 to 5 of 5

Index and Match-find the the matching number

  1. #1
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154

    Index and Match-find the the matching number

    Hello Everyone, Using Excel 2007

    I'm trying to use the Index and Match function to find today's date in A1:A31 and then find the the matching number in colum B.

    Example:

    A B
    8/1/08 45
    8/2/08 36
    8/3/08 38
    8/4/08 66
    8/5/08 31
    8/6/08 84
    8/7/08 21
    8/8/08 75
    8/9/08 64
    8/10/08 75
    8/11/08
    8/12/08

    This is the formula that i am using:

    Please Login or Register  to view this content.
    but I am receiving an error message #NAME?.
    Need help to get the formula to return 75.

    Thanks.
    Mike

  2. #2
    Forum Contributor
    Join Date
    02-28-2006
    Posts
    690
    can you use offset and match functions to avoid the use of code?

    insert a new row at top and name cell A1 as "start"

    =offset(start,match(f1,a2:a10,0),1)

    where today's date is in f1

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481
    This would work in your situation...
    =VLOOKUP(TODAY(),A1:B13,2,0)

  4. #4
    Forum Contributor
    Join Date
    11-22-2003
    Location
    Newport, Rhode Island
    MS-Off Ver
    2021
    Posts
    154
    Thank you guys, using the VLOOKUP. Works great.

    Mike

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    just fyi
    the index/match was constructed wrongly it should have been
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    the extra brackets really just show how match fits into the index function but are useful if you wanted to change the match value say add 1
    Last edited by martindwilson; 08-10-2008 at 03:17 PM.

+ 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