+ Reply to Thread
Results 1 to 2 of 2

Lookup if based on date

  1. #1
    Forum Contributor
    Join Date
    06-26-2014
    Location
    Houston
    MS-Off Ver
    365
    Posts
    196

    Lookup if based on date

    Hi,

    I have one workbook, Price Aggregate, that that has a sheet of data, specifically prices by date. One of the sheets is a summary sheet that adds certain prices from the other sheets together to aggregate a total price, based on a date entered on the summary sheet. So I enter 5/1 in cell B2, the total prices update on that sheet. Enter 6/1 in cell B2, prices up date to reflect those prices.

    Now, I have another workbook, Lookup, where I need to lookup the Aggregate Price from the first workbook, based on the date. I have a table on the second workbook that has the dates listed that need to be looked up, and it should then return the
    aggregate price from the first book. Does this make any sense?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Lookup if based on date

    Maybe you can use some helper cells...

    On the Lookup workbook in D2 >> =TRIM(MID(SUBSTITUTE(SUBSTITUTE($B2,"+","|"),"|",REPT(" ",50)),50*(COLUMNS($A:A)-1)+1,50))

    Copy this across to F2 and down

    Now in C2

    =INDEX('[Price Aggregate.xlsx]Data'!$B$2:$G$14,MATCH(D2,'[Price Aggregate.xlsx]Data'!$A$2:$A$14,0),MATCH($A2,'[Price Aggregate.xlsx]Data'!$B$1:$G$1,0))
    +IF(E2="",0,INDEX('[Price Aggregate.xlsx]Data'!$B$2:$G$14,MATCH(E2,'[Price Aggregate.xlsx]Data'!$A$2:$A$14,0),MATCH($A2,'[Price Aggregate.xlsx]Data'!$B$1:$G$1,0)))
    +IF(F2="",0,INDEX('[Price Aggregate.xlsx]Data'!$B$2:$G$14,MATCH(F2,'[Price Aggregate.xlsx]Data'!$A$2:$A$14,0),MATCH($A2,'[Price Aggregate.xlsx]Data'!$B$1:$G$1,0)))
    HTH
    Regards, Jeff

+ 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. Lookup based on name and date
    By Tacos_Tacos_Tacos in forum Excel General
    Replies: 3
    Last Post: 03-17-2015, 01:29 PM
  2. [SOLVED] Formula to lookup Date based on Date in cell D1
    By rizmomin in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-23-2014, 05:36 PM
  3. [SOLVED] Formula to Lookup value based on date within a date range
    By MHamid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-26-2013, 02:24 PM
  4. [SOLVED] Lookup date and condtional format colour based on date
    By Smudge.Smith in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2013, 08:38 AM
  5. Lookup based on Max Date
    By emanon132501 in forum Excel General
    Replies: 1
    Last Post: 01-27-2012, 08:02 PM
  6. Replies: 2
    Last Post: 09-20-2010, 02:51 PM
  7. Lookup based on a date
    By mkvassh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2009, 04:03 AM

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