Google Sheets hover label from different values - google-sheets

I am working on a Google Spreadsheet with several columns of data. I have made a chart that pits two of those columns against each other, showing that in general, when one value increases, the other one decreases. When I hover over a datapoint, it mentions the exact value of both the x- and y-axis. However, I would like it to show the value from the same row in a different column, the label of the values I'm displaying, so I can easily see where the values belong. Is it possible to customise the hover label in this way? I could not find it in the graph settings and online search did not yield any results either.
This is an impression of the sheet I have:
Label x-value y-value
aaa 130 0
bbb 110 7
ccc 100 10
ddd 50 30
eee 75 23
fff 20 42
I would like the hover to show me aaa for the first value for example.
This is the real graph with a hover label:
550
x: 49
I would like it to show the "name" of that row instead.

Related

How to make scatter plot in google sheets using 2 columns as X and Y values and the 3rd columns to get color of that point?

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.

Highlight value reduction in google sheet while ignoring blank cells

I have a google sheet of values that vary across dates and I want to be able to highlight cells where the value drops/reduces by five or more compared to the previous value. The main issue I have is that there are also blank cells in the table so I am not sure how to ignore them.
Example of a table
jan1 jan2 jan3 jan4 jan5
A 60 72 50 80
B 40 32 60
C 80 88 90 75
I would want to highlight A-jan4, B-jan4, and C-jan5. Is there a way to do this with conditional formatting?
Try:
=ARRAYFORMULA((LOOKUP(2,1/ISNUMBER($A2:A2),$A2:A2))>LOOKUP(2,1/($B2:B2<>""),$B2:B2))
apply to range B2:F
use:
=INDEX((LOOKUP(2,1/ISNUMBER($A2:A2),$A2:A2-5))>=LOOKUP(2,1/($B2:B2<>""),$B2:B2))

How to change the cell colors of a column according to the cell's value distance to the column average?

I am building a spreadsheet with a column with values that I would like to create a more visual way to identify discrepancies. So I would like to change the colors of the cells in a column according to the distance from the cell value to the column average.
For example, in this column I have the following values:
8
14
1
12
6
19
Their average is 10, I would like the cells to automatically have the colors:
8 (lighter red)
14 (green)
1 (darker red)
12 (lighter green)
6 (red)
19 (darker green)
I thought about averaging this column in a cell and putting color conditional formatting for values larger and smaller than this column mean. But in this case, my cells would have only two colors: red for below-average values and green for above-average values. Is there any way to change the color of these columns according to the discrepancy with the average of that column? Thanks in advance.
in Google Sheets it's like this:
You can use Color Scales in Conditional Formatting for this: Select a New Rule With your Desired colors for Minimum & Maximum Value
Result:
Same Goes if you are using Google Sheets. Goto Format>Conditional Formatting> Color Scales
Assuming you have excel 2016 or newer, simply highlight the data you want to have included, and then click Conditional Formatting (from the "Home" ribbon), then click "Color Scales" and pick the desired one.
After setting the color scale, you can then modify it by selecting the same data, and then clicking "modify rules". What you've stated is a 2-color scale, and that is one of the options you can choose if you go back and edit the rules.

How to eliminate highlighting duplicates in google sheets conditional formatting

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.

Conditional summing of rows

I have a summary spreadsheet that I want to grab data off another larger spreadsheet. I have read a bunch of questions and tried dsum and if statements but still I cannot figure out how to do this.
The larger spreadsheet has multiple columns. I want the function to filter the rows (based on two different criteria in two different columns) and then sum one cell in each of the filtered rows. So kind of like an IF statement but IF falls down because it tests all the rows and comes back false.
So if I sort of adapted an 'IF' statement it would look like this:
=FUNCTION(LargeSpreadhseet!F:F="CharacterString" & LargeSpreadsheet!A:A="CharacterString",sum cell X in rows meeting these 2 criteria,"Otherwise Nil")
Example:
ColHead1 ColHead2 ColHead3 ColHead4
A 23 GREEN 34
B 34 BLUE 45
C 45 BLACK 56
A 56 GREEN 56
B 45 WHITE 45
If I want the function to sum 34 and 56 and return this value, based on the fact that ColHead1=A and ColHead3=GREEN, so summing the cells in ColHead4 of the filtered rows.
Not very clear but the following does return 90:
=sumifs(larger!D:D,larger!A:A,"A",larger!C:C,"GREEN")
The parts in quotes may be substituted by cell references.
Assumes ColumnHeader1 is in ColumnA.

Resources