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))
Related
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.
I have a number that represents a starting point. What I need to do is to create different "Levels"(using formulas) based on that number and display those in a single cell
Example:
Max Speed 60 Mph
Level 1 10-15
Level 2 16-21
....
Level 7 55-60
You can try this. In B2 put 60. Then in B4 put:
=int(B2*10/60)&"-"&int(B2*15/60)
In B5 put:
=int(B2*16/60)&"-"&int(B2*21/60)
And so on for the different levels.
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.
I want to calculate the average of the smallest 20 numbers in a range (using offset), then multiply it by 0.96 using a Google sheet.
This is the formula we have:
=AVERAGE(SMALL(OFFSET(B13,2,0,20),{1;2;3;4;5;6;7;8;9;10}))*0.96
(See below for pictures)
The function should output 24, but instead it's outputting 14. I think it has something to do with the range of numbers for 'n' in the nested 'small' function, but for the life of me I can't figure out what it is. I've linked some pictures:
Thank you!
Since the data in your image only has 20 rows, i am assuming you mean to calculate average of smallest 10 numbers from the 20 rows. Try this formula
=AVERAGE(SMALL(OFFSET(B13,0,0,20,1),{1,2,3,4,5,6,7,8,9,10}))
Please note the the formula should be entered as an array i,.e. type the formula and press Ctrl + shift + enter
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.