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.
https://docs.google.com/spreadsheets/d/1_8DQTa9aXGjvd7twL6RZMcFyqxa4Sg7eVTcD2wDXH2A/edit?usp=sharing
How do I format them as currency within the pie chart?
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))})
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 > 🔳 - Aggregate
internal chart settings are not so versatile so you will need to do it like this:
=QUERY(B2:C, "select C,sum(B) where C is not null group by C order by sum(B) desc label sum(B)''")
Related
I am new to Google sheets and trying to create a timeline line chart. The data is as follows.
Col1 defines Project, Col2 defines the hours left for the projects, Col3 defines the start date and Col4 defines the End time of the Project.
I am trying to create a line chart where each line represents a Project with the value on y-axis as Hours left and on x Axis it shows Date. The line height (on y-axis) will be defined by Hours Left and the length of line (on x-axis) will be defined by start date and end date (as below).
I've tried different combinations, but not reaching a proper solution.
I can also try to change the formatting of data, if that is the issue.
the line chart is based on series so you need to reorganize your data like this:
=QUERY(A2:D, "select D,max(B) where B is not null group by D pivot A")
I have a spreadsheet for a game that I play (EvE Online), and this is the table I use:
I'd like to know how can I make conditional formatting to highlight the MAX value comparing columns I (corp total) and column M (market total) for each line, my goal is to have these values highlighted as an example:
=QUERY(TRANSPOSE(QUERY(TRANSPOSE($I1:M),"select
"®EXREPLACE(JOIN(,ARRAYFORMULA(IF(LEN(I1:I),"max(Col"&ROW(I1:I)-
ROW(I1)+1&"),",""))),".\z",""))),"select Col2")
I am adding pie charts into a Google Sheets page, but they are just messy.
This is because the data it is pulling from has (distinct) but minor differences between each other. To put it more easily:
Roofer and roofer are showing as 2 separate slices in the chart.
I want the processing to be case-insensitive, considering Roofer and roofer as the same category.
Can this be done in Google Sheets? How about excel?
Same data and sheet:
https://docs.google.com/spreadsheets/d/1YlNXVs6yljh339b84YVsjiMSaYxt76n13bWGbuM-iBk/edit?usp=sharing
The only easy way I see to do this is to insert helper columns to clean the data. Then graph the clean data.
Using this technique produces this result - based on graphing colC.
The formula in cell B2 - to remove spaces - is:
=arrayformula(TRIM(SUBSTITUTE(A2:A20, " ", "")))
The formula in cell C2 - to convert case - is:
=iferror(arrayformula(upper(left(B2:B20, 1)) & lower(right(B2:B20, len(B2:B20)-1))),"")
The data range on the chart is C1:C1000
You can hide Cols A and B for display purposes.
Alternatively move the helper columns to out of view columns.
The idea with this is you type the raw data into col A as shown, and the clean data appears in ColC.
I'm having a problem getting Google Sheets to color the top 10 values in multiple columns.
I have columns that contain the following stock information:
Account,Ticker,Symbol,YTD,1 Yr,5 Yr,10 Yr,Risk,Return,Star Rating
Example:
T. Rowe Price U.S. Large-Cap Core Fund,TRULX,2.2,3.93,12.3,12.67,2,5,5
I would like to color the top 10 values for the 1 Yr, 5 Yr, 10 Yr columns.
I thought the function large(L:L,10) would do the job but it seems that the function needs to be sorted by the field that its coloring and it doesn't seem to work if the values in the column are formulas. All the data in these fields but the ticker are formulas.
Assume that data column is column A.
Here's step by step solution:
select your range, like: A2:A500
go menu Format → Conditional formatting...
Choose 'Format cells if...' = Custom formula is
Paste this formula: =$A2>=large($A$2:$A,10)
To check if the formula works right, you may use this formula, paste it into empty column:
=QUERY(sort(A2:A,1,0),"limit 10")
This formula will give you the list of top 10 values from column A. Change A to your column.
I got a Google Form that are pushing data into my Google Spreadsheet. It's very simple and consist of 3 cols named:
A -> Date
B -> Type
C -> Data
There is three different types, which all have same data but different values (3 types data per day). I want to use these data in a bar chart, where X is the date represented per day basis, and the Y axis is the data value. But the series should be based on type, which in the end should lead to three bars per day.
This is probably fairly simple, but since I'm quiet new to G-Sheets, I have no clue of what to look for.
Dataset looks like the following example:
04-06-2016 house 140
04-06-2016 car 185049
04-06-2016 rental 14267
etc....
Please, look at my Bar Chart Sample.
The result looks like this:
Suppose, Data is stored in range A:C. I suggest select free cell (E1) and paste there the formula:
=QUERY({A:C},"select Col1, sum(Col3) where Col2 <> '' group by Col1 pivot Col2")
It will convert Data, pivot it. Then select range wich you got with formula (E1:H8) and paste new chart, select bar type.