Excel Guru's. Pivot...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Excel Guru's. Pivot Table Output

6 Posts
5 Users
0 Reactions
85 Views
 benz
Posts: 1143
Free Member
Topic starter
 

I need to reference some data from a pivot table.

Common data point.

Any way to combine output of a pivot table

Name - Tom
- Dick
- Harry

So that Tom, Dick and Harry are in a single cell which can be referenced?

Thanks!


 
Posted : 19/05/2021 12:28 pm
Posts: 1294
Free Member
 

Not sure what you're trying to do here. You can group rows in a pivot table.


 
Posted : 19/05/2021 1:18 pm
Posts: 1467
Free Member
 

Concatenate?


 
Posted : 19/05/2021 1:24 pm
Posts: 1781
Free Member
 

=GETPIVOTDATA("Values2",$E$2,"Names","Dick") + GETPIVOTDATA("Values2",$E$2,"Names","Harry") etc.

Don't think you can use the names in an array.

If you've got >3 names you need to aggregate you're probly best off using another field e.g. Boys


 
Posted : 19/05/2021 1:46 pm
Posts: 10315
Full Member
 

I think what robhilton said although I tend to have the names tom,dick, harry in one column,the formula just to the right and picking up the names from the left and then sum the whole thing down to the single cellyou are looking for. I find I get less errors that was as it is clearer and easier to check

That is off course assuming that I understand correctly what you are trying to do 🙂


 
Posted : 19/05/2021 2:07 pm
Posts: 1781
Free Member
 

Just happened to be doing something similar to this and realised you can use arrays:

=SUM(GETPIVOTDATA("Values2",$E$1,"Names",{"Dick","Harry","Tom"}))

or

{=SUM(GETPIVOTDATA("Values2",$E$1,"Names",$G2:$G4))}

You just have to get the syntax right 🙂


 
Posted : 24/05/2021 1:40 pm
Posts: 10315
Full Member
 

Oh. Adds to bag of tricks, that is very nice, especially the second notation.  I often use named ranges for that stuff and highlight the ranges to make it cleared to others what is going on


 
Posted : 24/05/2021 2:21 pm

6 DAYS LEFT
We are currently at 95% of our target!