Home > Blockchain >  Formatting values as currency on Google Sheets pie chart labels
Formatting values as currency on Google Sheets pie chart labels

Time:08-08

I've created a pie chart in Google Sheets and used the values as labels. However, they are showing up with a lot of decimals as they are a sum of the referenced columns.

enter image description here

CodePudding user response:

You need an intermediary table with values aggrigated by category

Paste this formula to get intermediary table

=ArrayFormula({C1,B1;  UNIQUE(C2:C), IF(UNIQUE(C2:C)="",,SUMIF(C2:C,"="&UNIQUE(C2:C),B2:B))})

enter image description here

  • Duplicate you current chart and change the range to the intermediary table H3:I1000 in this case
  • and disable Aggregate in the chart editor > Setup > Lable >
  • Related