+ Reply to Thread
Results 1 to 6 of 6

How to look up Values by Date?

  1. #1
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    How to look up Values by Date?

    In Short

    My Workbook has multiple tabs.

    On my tabs I have information for the entire year
    On my Summary Tab, I want to look up the Value for "TODAY" only, and I want the spreadhseet to display that value on the Summary Tab.

    Please see attached example. Any help Anyone can give would be greatly appreciatedExample.xls:
    Last edited by deejabram; 12-22-2010 at 11:50 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Looking for help building a formula

    Hi,

    In B2 use the following format of formula

    =INDEX(DK!B2:B20,MATCH(TODAY(),DK!A2:A20,0))

    this follows the general form

    =INDEX(array_from_which_to_return_data,MATCH(lookup_value,lookup_range,0))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: How to look up Values by Date?

    Thank you sweep. I have just learned a new function. I didnt know about the Index function. I greatly appreciate it.

  4. #4
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: How to look up Values by Date?

    Follow up question: What modifications do I make to the index formula if I wanted to simply display yesterday's information instead of today?

  5. #5
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: How to look up Values by Date?

    Excel's UOM for time is 1 day, so:

    =INDEX(DK!B2:B20,MATCH(TODAY()-1,DK!A2:A20,0))

  6. #6
    Registered User
    Join Date
    08-05-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    18

    Re: How to look up Values by Date?

    Thanks again.

+ 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