[SOLVED]How to list values from the same source and separate them by year

Copper Contributor

Hello,

 

So I'm trying to list mean values for two different sources and separate them by year to make a graph.


This is what it looks like:

SourceYearMean
X20156
Y20157
X20143
Y20145

(years continue deceasing)


and this is what I want it to look like:

YearXY
201567
201435
201394

 

Say I had mean values going back a thousand years, is there a way to quickly group them all together and list them like this? The layout is the same as the first table, always "X" then "Y" and the names never change either always "X" or "Y". (If I have to do this one cell at a time then no big deal but I figured I'd try saving myself some time and learn something new)

 

Thanks!

5 Replies

@DanielC98 

Create a pivot table:

Source in columns area.

Year in rows area.

Mean in values area.

 

@DanielC98 

You could create a pivot table based on the table.

Add Source to the Columns area, Year to the Rows area and Mean to the Values area.

You can turn off the Grand Totals of the Pivot table if you like.

 

S1164.png

Yes, thank you Hans and @Detlef Lewin, you both answered my question perfectly.
Yes how do I turn off Grand Totals?

@DanielC98 

Click anywhere in the pivot table.

Activate the Design tab of the ribbon.

Select Grand Totals > Off for Rows and Columns.

 

S1165.png

Beautiful, once again thank you, you taught me something new!