Can I use a 'lookup' to a Pivot Table?

  • Thread starter Thread starter Chrism
  • Start date Start date
C

Chrism

I am attempting to compare one column of data (a list Employee numbers)
to another (on a different sheet in the same workbook, also of Ee #s
but not as complete) and put the number in the corresponding cell back
to the original spreadsheet. Since the lists aren't exact, I can't
simply do an (='other sheet'!A1)and drag it down. The lists are both
formated as numbers and in numerical order but not the same length.
The oddity is that the sheet I'm referencing to is a Pivot Table. I'm
getting a #N/A message.

Thanks in advance
 
You could use the GETPIVOTDATA function:

=GETPIVOTDATA("Units",Pivot!$A$7,"Employee",C3)

or a VLOOKUP:

=VLOOKUP(C3,Pivot!$A$7:$E$17,5,0)

where C3 is the value on the active sheet, and the pivot table is on the
Pivot sheet
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top