+ Reply to Thread
Results 1 to 7 of 7

V-lookup in Pivot Table

  1. #1
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    V-lookup in Pivot Table

    Dear Gurus,
    I have attached a partial workbook for this problem. How would I do a vlookup by customer code so that it puts weights in column D of "Customers" tab, considering individual routes. It means that a customer code may show up in several routes.
    Thank you!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: V-lookup in Pivot Table

    Hi
    Try this
    D2 =INDEX(Pivot!$C$2:$C$26, MATCH($C2, INDEX(Pivot!$B$2:$B$26, 0), 0)) then copy down

    You need to type in again c2 to c26 in order to work.
    Last edited by micope21; 04-17-2012 at 06:09 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: V-lookup in Pivot Table

    If you want a V lookup

    You on excel 2007
    Try this

    D2 =IFERROR(VLOOKUP(C2,Pivot!$B$2:$C$26,2,FALSE),"") then copy down

  4. #4
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    Re: V-lookup in Pivot Table

    Where do I need to type the pivot range again? Maybe thats the reason that the formula only partially worked. It pulled rows 2,3,4,5,and 13 only.

  5. #5
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    Re: V-lookup in Pivot Table

    I am getting a "name?" error.

  6. #6
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: V-lookup in Pivot Table

    Reason "name?" come up cos you are using excel 97-2003 file instead of excel 2007 show on your My Profile.

    All info are in the file. Please click on attachment.

    Cheers
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    01-18-2010
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    128

    Re: V-lookup in Pivot Table

    Quote Originally Posted by micope21 View Post
    Reason "name?" come up cos you are using excel 97-2003 file instead of excel 2007 show on your My Profile.

    All info are in the file. Please click on attachment.

    Cheers
    My bad. Sorry. I am at a client's business and they are on 2003. Thank you very much for the help. It works now.

+ 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