+ Reply to Thread
Results 1 to 9 of 9

Lookup data by matching 4 columns

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    Pluto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Lookup data by matching 4 columns

    Hey,

    I am trying to get excel to look up a value in a sheet based on a combination of 4 drop-down lists. What I have is a series of different formulations which consist of different particles, different particle addition, different fluids combinations and different levels of fluid combinations.

    eg: A B C D E
    formulation 1: 0.02 % Gravel in 0.1% Petrol W
    formulation 2: 0.01 % Gravel in 0.1% Petrol X
    formulation 3: 0.1 % Gravel in 0.1% Petrol Y
    formulation 3: 1 % Gravel in 1% Petrol Z


    What I want is, when I select a particular combination of columns A, B, C, D, for excel to then return the values in Column E

    I hope this explanation makes sense

    I have tried the VLOOKUP function, but I can't see how to make it lookup more than one column

    If anyone has an idea how to do this it would be great

    Cheers

  2. #2
    Registered User
    Join Date
    07-09-2012
    Location
    India
    MS-Off Ver
    Excel 97/2003/2007/2010
    Posts
    67

    Re: Lookup data by matching 4 columns

    hi,

    it can be done by sumproduct, can you please upload the sample sheet to work out.

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    Liverpool
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Lookup data by matching 4 columns

    I hope I have understood you correctly

    You could try =a1&" "&b1&" "&c1&" "&d1 this will combine all four columns into one cell

    change the 1's to the relevant row number

  4. #4
    Registered User
    Join Date
    07-09-2012
    Location
    India
    MS-Off Ver
    Excel 97/2003/2007/2010
    Posts
    67

    Re: Lookup data by matching 4 columns

    if you want combin all the value in a row...

    please use this...

    =CONCATENATE(A1,B1,C1,D1)

  5. #5
    Registered User
    Join Date
    07-25-2013
    Location
    Pluto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Lookup data by matching 4 columns

    Hey,

    Just to clarify, here is a brief example of what I am looking for

    Example.xlsx

  6. #6
    Registered User
    Join Date
    07-09-2012
    Location
    India
    MS-Off Ver
    Excel 97/2003/2007/2010
    Posts
    67

    Re: Lookup data by matching 4 columns

    hi,

    =DGET($O$1:$S$16,S1,A7:D8)

    see the attachment
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-25-2013
    Location
    Pluto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Lookup data by matching 4 columns

    Thanks for this.
    It works well for the first array of data (Gravel), but when you select a different particle (Sand) type it fails. Can it be combined with an IF function?

    =IF(B8="Gravel", DGET($O$1:$S$16,S1,A7:D8), IF(B8="Sand", DGET($U$1:$Y$16,Y1,A7:D8), IF(D8="Cement", DGET($AA$1:$AE$16,AE1,A7:D8)))))


    * It appears there is a problem with this syntax, I am not sure why though

  8. #8
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Lookup data by matching 4 columns

    Hi,

    Please check if the attached helps.

    Note: This is an Array Formula; Ctrl+Shift+Enter.
    Attached Files Attached Files
    Please mark the thread as [SOLVED] when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  9. #9
    Registered User
    Join Date
    07-25-2013
    Location
    Pluto
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Lookup data by matching 4 columns

    Excellent!! Thanks for this.
    Should I take it that there isn't a method to have the data tables formatted in the way I had previously? I have a whole heap of data and I'd prefer to have them across the screen rather than down

    Cheers

+ 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. Replies: 0
    Last Post: 10-16-2013, 12:42 PM
  2. [SOLVED] Beyond VLOOKUP : Matching 3 columns in a table lookup
    By AdamBecker in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-11-2013, 03:13 AM
  3. Replies: 2
    Last Post: 04-18-2013, 05:56 PM
  4. Replies: 7
    Last Post: 02-02-2013, 07:34 AM
  5. Lookup criteria matching in rows and columns
    By JuJuBe in forum Excel General
    Replies: 2
    Last Post: 05-20-2010, 05:03 PM

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