+ Reply to Thread
Results 1 to 6 of 6

Two Vlookups to Return Text?

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Two Vlookups to Return Text?

    Alright, so what I am doing is referring to a pivot table with three columns Category, Impressions and Keyword. There are multiple Keywords for each category, so what I want is the keyword with the most impressions to represent that category. On another tab, I made a pivot with the Category and Max of Impressions and am trying to return the Keyword.

    I have tried multiple things. I need more than one vlookup because some keywords have the same impressions, but are from a different category. Here's an attempt with a double vlookup:

    Category Max of Impressions Max Keyword
    A2 B2 =VLOOKUP(A2, 'Pivot-Weekly'!K:M, 3, FALSE)+VLOOKUP(B2, 'Pivot-Weekly'!L:M, 2, FALSE)

    The tab it's referring to is:

    Category (K) Impressions (L) Keyword (M)

    I tried this too:
    =IF(A2='Pivot-Weekly'!K:K,'Pivot-Weekly'!M:M,IF(B2='Pivot-Weekly'!L:L,'Pivot-Weekly'!M:M,""))

    Thanks for your help you guys!

  2. #2
    Registered User
    Join Date
    10-31-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Two Vlookups to Return Text?

    Anybody??

  3. #3
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Two Vlookups to Return Text?

    Try putting a sample so that others can see what you're saying, rather than people who wants to help visualizing it.

  4. #4
    Registered User
    Join Date
    10-31-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Two Vlookups to Return Text?

    Here's a sample:
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Two Vlookups to Return Text?

    2 ways you can do it.

    1st way is without the helper.
    Please Login or Register  to view this content.
    2nd way is with the helper.
    In doing the 2nd way, create a column say in column J of 'Pivot-Weekly' Sheets and concatenate. i.e. in cell J2
    Please Login or Register  to view this content.
    then on Sheet1 of cell C2.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-31-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Two Vlookups to Return Text?

    Thank you!!

+ 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