+ Reply to Thread
Results 1 to 12 of 12

How to use VLookup to pull data from pivot table

  1. #1
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    How to use VLookup to pull data from pivot table

    You can manipulate the pivot table to have the correct headers and rows necessary for the vlookup to work. I need the highlighted fields to auto calculate based on the pivot table. I've attached a sample spreadsheet. Thank you in advance.
    Attached Files Attached Files
    Last edited by Vernell10; 08-23-2016 at 08:59 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,072

    Re: How to use VLookup to pull data from pivot table

    Eh? What VLOOKUP? Where are the highlighted fields??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

  3. #3
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9
    Quote Originally Posted by Glenn Kennedy View Post
    Eh? What VLOOKUP? Where are the highlighted fields??
    I am guessing I need a vlookup formula to pull information from the pivot table...do you see my attachment? There are two tabs, one includes the pivot table and the other tab has the highlighted amounts that I need to autopopulate using a formula.
    Last edited by Vernell10; 08-23-2016 at 09:01 AM.

  4. #4
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    Re: How to use VLookup to pull data from pivot table

    I need the vlookup to pull from the pivot table.
    Last edited by Vernell10; 08-23-2016 at 09:00 AM.

  5. #5
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    Re: How to use VLookup to pull data from pivot table

    Sorry the original attachment was incorrect. Sorry for the confusion. Please use Vlookup and pivot table sample spreadsheet.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,072

    Re: How to use VLookup to pull data from pivot table

    sorry for the delay. I was on a boat... So what you have posted is not a pivot table, just a rough representation of one; so I cannot really give you an exact answer!! I can easily get a formula that gives you the answers from the material that you posted, but it'll probably be useless in you real data:

    Column M
    =IFERROR(ABS(INDEX('pivot table sample'!$D$2:$D$100,MATCH("'"&$A2,'pivot table sample'!$A$2:$A$100),0)),"")

    Column P
    =IFERROR(ABS(INDEX('pivot table sample'!$C$2:$C$100,MATCH("'"&$A2,'pivot table sample'!$A$2:$A$100)+1,0)),"")

    If your data in column are not numbers formatted to look like text, but are ACTUALLY numbers (they are text in your posted sheet), then omit this bit: "'"& from the MATCH formula.

    My main Q, however, is why you just don't use SUMIF or SUMIFS from the raw data, rather than making life more difficult for yourself...

  7. #7
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    Re: How to use VLookup to pull data from pivot table

    I attached the actual pivot table. I can easily use a getpivotdata formula but when I drag I get the same results. So you are saying a SUMIF formula would be easier? You can provided which formula you think is best .
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to use VLookup to pull data from pivot table

    can you explain WHY you want those values on another sheet, since the data is already available in the pivot table.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,072

    Re: How to use VLookup to pull data from pivot table

    M2
    =ABS(SUMIF('pivot table'!B:B,A2,'pivot table'!D:D))

    P2
    =ABS(SUMIF('pivot table'!B:B,A2,'pivot table'!C:C))

  10. #10
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    Re: How to use VLookup to pull data from pivot table

    The two sheets are just combined for this forum. But at my job these are two separate spreadsheets

  11. #11
    Registered User
    Join Date
    06-09-2016
    Location
    Tampa, FL
    MS-Off Ver
    2010
    Posts
    9

    Re: How to use VLookup to pull data from pivot table

    Perfect!!! Thank you so much!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,072

    Re: How to use VLookup to pull data from pivot table

    Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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. [SOLVED] Need to pull Data out of Pivot Table into specific cells
    By Chris McGlothen in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 06-30-2016, 11:13 AM
  2. How do I pull pivot table data from one sheet to another?
    By danbroome in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2016, 07:39 PM
  3. Replies: 3
    Last Post: 05-21-2014, 08:34 AM
  4. [SOLVED] VBA to pull back a Name if value of the data is > 0 in the pivot table
    By martystoked in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-21-2013, 05:12 PM
  5. [SOLVED] Pull data from pivot table based on date
    By djdjdj in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-17-2013, 03:00 AM
  6. [SOLVED] Pull Pivot Table Data
    By Dave in forum Excel General
    Replies: 0
    Last Post: 05-23-2006, 10:15 AM
  7. [SOLVED] Pull pivot table data
    By Dave in forum Excel General
    Replies: 1
    Last Post: 05-19-2006, 08:10 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