Trying to figure out a formula to automatically grade based on a range - for example, if the answer (number) in Column C is between...
70 - 94 = WTS
95 - 115 = EXS
116 - 140 = EXC
Sample data in column C:
76
96
95
123
115
I'd assume I'd put the formula in column D to get the outcome based on the range - so if the answer is between 70 and 94 I want column D to recognise this and put the response WTS. Following the rest of the ranges, I want to be able to use this formula for all data in the column.
Here is a link: https://docs.google.com/spreadsheets/d/1tLzm5u4tvWtDtNSxlN5COrkIm8w10_kyi7oobSzG5v8/edit?usp=sharing
Use XLOOKUP() function.
=XLOOKUP(C2,{70,95,116},{"WTS","EXS","EXC"},"",-1)
To spill results dynamically use XLOOKUP() with MAP() function.
=MAP(C2:C6,LAMBDA(x,XLOOKUP(x,{70,95,116},{"WTS","EXS","EXC"},"",-1)))
To refer full column as input try the following.
=MAP(C2:INDEX(C2:C,COUNTA(C2:C)),LAMBDA(x,XLOOKUP(x,{70,95,116},{"WTS","EXS","EXC"},"",-1)))
try:
=MAKEARRAY(COUNTA(C2:C),1,LAMBDA(r,c,VLOOKUP(INDEX(C2:C,r),INDEX({--REGEXEXTRACT(G:G,"^\d+"),REGEXEXTRACT(G:G,"[A-Z]+$")}),2,1)))
-
Related
I would like to create a google sheet formula that will lookup the ID and return the right-most non-blank score from columns 'Score A', 'Score B' and Score 'D'. Any help would be much appreciated!
ID
Score A
Score B
Score C
Type
2342
65
43
A
8797
B
2343
23
45
98
F
6666
23
B
2333
67
43
B
Assuming E1 is your search_key here's what you can try:
=LET(ζ,TOROW(XLOOKUP(E1,A2:A,B2:D),1),INDEX(ζ,,COUNTA(ζ)))
You may try:
=ifna(lookup(9^9,xlookup(F1,A:A,B:D)))
You can use the following formula. It concatenates for each row the 3 columns into one string and extracts via regex all characters after the last space.
=VLOOKUP(2342,
{
A:A,
ARRAYFORMULA(IFERROR(REGEXEXTRACT(TRIM(B:B&" "&C:C&" "&D:D),"\b(\w+)$")))
},
2)
Just for adding one more option. It won't matter if they're numbers or not, neither if you have empty cells; it will find the non empty cell most to the right
=LET(r,INDEX(2:1000,XMATCH(E1,A2:A)), INDEX (r,,MAX(COLUMN(r)*(r<>""))))
I'm trying to write a formula in Google Sheets which can first locate the row of a specific value. Then index to the value contained on that row a few columns over.
Let's assume the following
A B C
1 12 80
2 43 35
3 64 15
4 13 56
5 44 93
6 86 48
7 14 31
8 41 3
9 63 56
10 11 46
Values in column B and C have a correlated relationship. I need to first locate a specific value in column B than find it's corresponding value on the same row in column C.
For the sake of example, let's assume I'm trying to locate the row containing the value 41 in column B. And then would like to return the corresponding value in column C, which in this case would be 3.
The reason why I need a formula like this is because the data I'm using is highly variable and large. Over 4000 rows. It is unknown what rows the values to be found sit on.
You may try either:
=filter(C:C,B:B=D2)
OR
=xlookup(D2,B:B,C:C,)
filter() will output all instances of rows(column C) which has 41 in column B while xlookup will pick just the first match of 41 within the column
I have a spreadsheet with 3 columns, Column A has values that increment by 10 and column b has the incrementation difference AKA...
Column A
Column B
Column C
125
135
5
135
145
6
145
155
7
Ext... (There are hundreds of rows with these incrementing values)
I also have a value that is placed in an arbitrary place such as "137" we'll call it D1
I need to cycle through the columns some how and find out...
If D1 is => 135 and less than 145 and if so, place the value of column C in another cell AKA(E1).
If D1 is => 135 and less than 145 and if so, place the value of column C in another cell AKA(E1).
Try the following in E1:
=arrayformula(if(isbetween(D1:D,135,145,1,0),C1:C,))
EDIT
i need to cycle through columns A and B and find where my D1 number fits and output the corresponding C value to E1
Try:
=arrayformula(vlookup(D1:D,{A1:A,C1:C},2))
My question is for Google Sheets
I am aware of the countif function and know how to count frequency of one value in a series but I am struggling to find frequency of multiple values in two series. I have tried countifs, arrayformula, countif + sum with and without array formulas but unable to succeed.
example
I have below series in E2:N2
31 32 35 45 49 55 57 66 72 75
and below series in O15:AH15
3 7 12 17 23 25 27 31 39 44 45 48 52 56 61 62 66 69 70 79
I want to see how many values matched and put that in cell A1
In the above example, 3 numbers matched so the value in A1 should be 3
I can do it with countif+countif+countif x 10 times but i wanted a very short formula.
Can someone give me some direction?
Thanks
Try
=SUMPRODUCT(TRANSPOSE(E2:N2)=O15:AH15)
This might serve you: Countifs in Google Sheets with various 'different than' criteria in same row adds +1 value
Basically is how to count based on criteria. there are even 2 sheets for you to check there and copy, you just need to change the criteria of words for the numbers you want to match and count.
I have the below table:
A1=100
Company A B C .........
Microsoft 134 51 91
Google 14 532 215
Samsung 1 111 133
.
.
.
I wish that only the values that are greater than A1 will be highlighted in green.
EDIT: this question, although looks very similar, do not solve the problem above.
Please select entire sheet, Format, Conditional formatting..., Format cells if..., greater than:
=$A$1
select green and Done.