+ Reply to Thread
Results 1 to 7 of 7

Excel 2007 : Lookup of 2 columns of data

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Lookup of 2 columns of data

    Hi - I want to perform a lookup of two columns of data. ie if both colums match their test data, then return the value in the third colum of the lookup table.

    what is the best formula to use?

    many thanks

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup of 2 columns of data

    All depends on

    a) context

    b) data types

    Are there multiple instances of the combination ?

    Are the values being returned numeric ?

  3. #3
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Lookup of 2 columns of data

    Its looking up text.

    Column A = Supplier (text)
    Column B = Brand (text)
    Column C = turnover (value)

    i have several tables of the above data for different seasons.

    so if Colum A= ColumnA in the look up table and column B = Column B in the lookup table it returns Cloumn C in the lookup table.

  4. #4
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Lookup of 2 columns of data

    and no there wont be multiple instances of the combination

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Lookup of 2 columns of data

    Given

    a) output is numeric

    b) use of XL2007

    it would make sense to utilise SUMIFS function

    =SUMIFS(table!$C$1:$C$1000,table!$A$1:$A$1000,$A1,table!$B$1:$B$1000,$B$1)

    where table is sheet containing raw data, A1 & B1 contain Supplier & Brand of interest.

    If you're conducting a matrix based output (ie multiple brand / supplier combinations) then you would be best served using a Pivot Table - for a one off calc (or handful thereof) the above is fine.

    (note SUMIFS is not backwards compatible with versions of Excel pre XL2007)

  6. #6
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Lookup of 2 columns of data

    thanks ill give that a try

  7. #7
    Registered User
    Join Date
    02-19-2010
    Location
    london
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Lookup of 2 columns of data

    thats works perfectly, thanks

+ 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