+ Reply to Thread
Results 1 to 4 of 4

Looking up values based on columns

  1. #1
    Registered User
    Join Date
    06-13-2019
    Location
    Burnaby
    MS-Off Ver
    2016
    Posts
    4

    Looking up values based on columns

    Hi excel forum,

    Please see the attached file.

    I am trying to lookup values into cells D10:D13 and E13 based on the date from A10:A13. The dates in A10:A13 are coming from a different sheet, but the issue I'm having is looking up the values from A10:A13 against D1:O1 and then return the values from that column.

    How can I proceed with this?
    Attached Files Attached Files
    Last edited by testarossa93; 06-13-2019 at 02:10 PM. Reason: Solved

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,791

    Re: Looking up values based on columns

    You can put this formula in D10:

    =VLOOKUP($B10,$A$3:$O$6,MATCH($A10,$A$1:$O$1,0),0)

    and copy it down into D11:D12.

    You can also copy it into E13, but then you would need to change it to this:

    =VLOOKUP("Grand Total",$A$3:$O$6,MATCH($A13,$A$1:$O$1,0),0)

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: Looking up values based on columns

    D10=ABS(SUMPRODUCT(($A$3:$A$5=$B10)*($D$1:$O$1=$A10)*($D$3:$O$5))) copy down

    E13=SUM(D10:D12)

  4. #4
    Registered User
    Join Date
    06-13-2019
    Location
    Burnaby
    MS-Off Ver
    2016
    Posts
    4

    Re: Looking up values based on columns

    Quote Originally Posted by CARACALLA View Post
    D10=ABS(SUMPRODUCT(($A$3:$A$5=$B10)*($D$1:$O$1=$A10)*($D$3:$O$5))) copy down

    E13=SUM(D10:D12)
    Quote Originally Posted by Pete_UK View Post
    You can put this formula in D10:

    =VLOOKUP($B10,$A$3:$O$6,MATCH($A10,$A$1:$O$1,0),0)

    and copy it down into D11:D12.

    You can also copy it into E13, but then you would need to change it to this:

    =VLOOKUP("Grand Total",$A$3:$O$6,MATCH($A13,$A$1:$O$1,0),0)

    Hope this helps.

    Pete
    Thanks!

    Both solutions worked, but I'll use VLOOKUP as I'm too inexperienced with the sumproduct function.

+ 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. Finding the max of a list of columns, based on the values of other columns
    By galapogos in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2017, 05:45 AM
  2. [SOLVED] Find count of Unique or Duplicate Values based on Concatenated values in 2 columns
    By bdicarlo1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-03-2014, 12:42 AM
  3. [SOLVED] Copy/Paste multiple columns as values based on another columns criteria
    By Dgp2012 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-28-2013, 06:50 AM
  4. [SOLVED] Distribute values in columns based on match between two other columns
    By hydrgal in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-15-2013, 04:07 AM
  5. Locking columns based on calculated cell values in columns across a sheet.
    By andyr826208 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 05:17 AM
  6. Replies: 0
    Last Post: 09-15-2012, 02:56 AM
  7. Replies: 4
    Last Post: 06-28-2012, 07:08 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