I want to have a stacked column chart with one column of data with 4 items. Each item has two measures associated with it, say a percentage of total and a dollar value.
For example,
Item % $
A 42% $15.00
B 33% $12.00
C 14% $5.00
D 11% $4.00
Is it possible to show the 4 items in a stacked column, with each item appearing once. The chart's left axis would have percentage labels (totaling 100%) and the right axis would have dollar labels (totaling $36).
Related
I have 3 columns:
A - time
B - temperature
C - temperature
I want a simple Line chart where axis X (horizontal) has the time and vertical one has two lines for each column (B and C)
How to specify data ranges for each line as vertical axis and time as horizontal axis?
Similar question but not answered - How to create a data ranged chart in Google Sheets
The spreadsheet - https://docs.google.com/spreadsheets/d/1ddg0prPHZVQf896bG7OA89lgSLBRXThPNVJNWeMd8Zk/edit?usp=sharing
Lets say I have 2 lists and I would like to randomly select a winner between the lists but I would like to select the winner from list A 60% of the time and from list B 40% of the time, how can that be done in Google Sheets?
You can randomly select names from a list using this formula
INDEX(A2:A, RANDBETWEEN(1, COUNTA(A2:A)))
Without knowing some more information on your setup here is a general formula that does what you're describing:
=IF(RAND()<=0.6,INDEX(A2:A, RANDBETWEEN(1, COUNTA(A2:A))),INDEX(B2:B, RANDBETWEEN(1, COUNTA(B2:B))))
Essentially it is rolling a random number between 0 and 1. If it is equal to or less than .6 (simulating 60%, since there is a 60% chance it will be less than or equal to .6) it then selects a random name from Column A, otherwise (bottom 40%) it selects from column B.
You can also replace the "0.6" with A1 in my example to have the weight be a dynamic number. Changing A1 to 75% for example will then compare the random value against less than or equal to .75.
EDIT: Image shows the wrong condition, I was corrected in the sense you want less than or equal to .6 and not greater than, I had the weights flipped.
I have 3 columns in a google spreadsheet
Runs Balls Result
24 24 W
50 20 W
10 5 L
12 10 L
5 2 L
Now I want a scatter plot to be made, such that Runs and Balls are the X and Y axes, and the color of the point is determined by the values in the column Result.
How do I achieve this?
You could separate your second column (y-value, "Balls") into two separate columns, depending on if the Result is W or L. In other words, make a chart based on three columns instead of two. This way, two different colors will be assigned automatically when the chart is generated. (Later, you can change these colors by double-clicking on the chart to get to Chart Editor -> Customize -> Series -> Format -> Color).
There seem to be no good solutions here. Answer from Monaco works but is inconvenient in cases. I settled for adding the third column as a label for the second one.
Column X on Sheet B automatically gets all its values from Sheet A. The rest of the Sheet B table just has normal human entry cells. All the cells in Sheet A are human entry.
On Sheet A new values can be entered on any part of the sheet, not just the bottom, so new values in Sheet A don't always go to the bottom of column X in Sheet B - they go into the middle of column X, moving the below column X values down one cell each and throwing column X out of sync with the rest of the table.
I would like to know how, whenever there's a new value in Sheet A and so column X in Sheet B, there can automatically be a new row in the Sheet B table with the new value still going in Column X and the rest of the row blank, so that the Column Y cells move down too and hence the cells that were next to each other before can still stay next to each other.
EDIT: A detail: Column A values don't go directly into Column X, they go into Column W which is a few thousand cells long for all the relevant cells in Sheet A (about 500 cells from each of 8 relevant columns), then Column X is =UNIQUE(SORT(W:W))
EDIT 2: See a demo sheet here https://docs.google.com/spreadsheets/d/1Ohm4nukHKWei5UJ06uaUE2btaEDcWTqAFhDtdqy2YDo/edit?usp=sharing
Eg Say the Sheet B table looks like this
Column X: Column Y:
Audi Jibjab Jabjib
Honda Woowoo
Mini Chairrgr foo
Toyota Frof Prog
If "Fiat" is added to the middle of Sheet A and so automatically goes in the middle of column X (whether column X is sorted or not new values would still go in the middle of the column), I would like the table to look like
Column X: Column Y:
Audi Jibjab Jabjib
Fiat
Honda Woowoo
Mini Chairrgr nfoo
Toyota Frof Prog
Not like this! -:
Column X: Column Y:
Audi Jibjab Jabjib
Fiat Woowoo
Honda Chairrgr foo
Mini Frof Prog
Toyota
How is this possible? Any way is acceptable, even if it involves some kind of script.
Thanks,
Milan
I have a spreadsheet where I need to conditional format/highlight the lowest 3 scores in a row to reflect dropped scores that are part of a Total calculation. I'm using the SMALL function to successfully calculate the Total..=SUM(A2:I2)-SMALL(A2:I2,1)-SMALL(A2:I2,2)-SMALL(A2:I2,3) but when I try to use the SMALL function in the Custom Formula field of the Conditional Format it highlights 0,60,60,60 and not 0,60,60
119 101 60 100 0 109 60 60 112 TOTAL:601
If four of the values are 0, it will highlight all for 0's.. if 60 is the lowest score and there are 4 or more scores of 60, it will highlight all and not reflect that only 3 of the scores are actually dropped.
Is there another way (custom formula) that can only highlight the lowest 3 scores in the row even when the 3rd lowest may have duplicates in the row?
I've come up with this formula (assuming values start in A1) which unfortunately is a bit long
=OR(A1<SMALL($A1:$I1,3),AND(A1=SMALL($A1:$I1,3),COUNTIF($A1:A1,SMALL($A1:$I1,3))<=(3-COUNTIF($A1:$I1,"<"&SMALL($A1:$I1,3)))))
or
=OR(A1<SMALL($A1:$I1,3),AND(A1=SMALL($A1:$I1,3),(COUNTIF($A1:A1,SMALL($A1:$I1,3))+COUNTIF($A1:$I1,"<"&SMALL($A1:$I1,3))<=3)))
The logic is that it highlights all cells which are less than the third smallest value, then any values (starting from the left) which are equal to the third smallest value until the total equals three.
I've changed the second row to show that it selects the second zero instead of the second 60.