+ Reply to Thread
Results 1 to 6 of 6

Lookup 2 different dates and return a horizontal lookup

  1. #1
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    480

    Lookup 2 different dates and return a horizontal lookup

    Hello All

    I need a way to track customer schedule change. I’m spending hours filling in boxes, is there an automatic way ?


    RAW data Tab = Customer schedules over the last 12 months, that normally come in every 7 days, I have boxed each schedule off

    99810BA62C Tab – C10 to look for 99810BA62C (in A4) in the schedule dated the 11th Jan on the raw data tab and returns the value for 8/01/2018. This should be zero upon till 19th Feb and it then should return 180 for the 9/04/2018


    any help on this would be great

    P
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: Lookup 2 different dates and return a horizontal lookup

    You need to convert your multiple tables to a single database. From this (for two items in your first table)

    Capture 1.JPG

    to this:

    Capture 2.JPG


    You can do that with VBA or by controlling the creation of the RAW sheet - but the multiple tables, headers, etc. that you currently have make it impossible to extract information in a meaningful way without that transformation.
    Last edited by Bernie Deitrick; 10-15-2018 at 10:50 AM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    480

    Re: Lookup 2 different dates and return a horizontal lookup

    hello Bernie / All

    I've now put the multiple tables into 1 table, I’ve not done it all just some sample data

    thanks

    Paul
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,301

    Re: Lookup 2 different dates and return a horizontal lookup

    In C10, use

    =SUMIFS(Raw!$D:$D,Raw!$A:$A,$B10,Raw!$B:$B,$A$4,Raw!$C:$C,C$6)

    and copy down and across to create your table.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Lookup 2 different dates and return a horizontal lookup

    I lost this thread. I was a bit bored earlier today and played around with the old format, just for fun...

    The dates are a mess. Some are dates, some are not. I have fixed them down to 19th April on BOTH sheets. You can do the rest.

    So, it can be done with a formula. But unless it's a huge pain to get them all in a single range, Bernie's solution is to be preferred.

    The monster formula in C10, copied across and down is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Contributor
    Join Date
    04-06-2017
    Location
    Wolverhampton
    MS-Off Ver
    Office 365
    Posts
    480

    Re: Lookup 2 different dates and return a horizontal lookup

    Both Solutions work great...

    thanks to both, Glenn *****

+ 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] SumIfs / Sumproduct for table with vertical and horizontal lookup criteria (text+dates)
    By benvass in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-17-2018, 10:34 AM
  2. [SOLVED] Lookup to sum the return of multiple dates
    By FP91 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2018, 03:40 PM
  3. How To lookup a calender date Between Two Dates And Return Corresponding Value
    By utkarsh1987 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2018, 08:53 AM
  4. [SOLVED] Lookup value in multiple list and return the horizontal header name
    By pommoz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2017, 05:06 PM
  5. Horizontal lookup return data vertically (Index Match ?)
    By Prospidnick in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-12-2017, 06:52 AM
  6. [SOLVED] lookup if my lookup array with my data position is vertical and horizontal
    By daboho in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-29-2015, 05:35 AM
  7. Lookup and Return Data Between 2 Dates
    By samsnb in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 06-27-2013, 11:34 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