I am trying to return the points rank value when both B2 on Player lookup and C2 on Player Lookup match the DvP dataset which i highlighted in the sheet.
So for example: For Lebron James I'd like to return the value from cell N89 based upon the previously mentioned cells (C2 and B2)
https://docs.google.com/spreadsheets/d/15-NCFTXPCypCSm6EBaFqDG5Bsib1hwb29ck2Yiaq7EA/edit#gid=1377910615
Formula I tried =INDEX(DvP!L4:T,MATCH(C2,DvP!M4:M,0),MATCH(B2,DvP!L4:L,0))
use:
=INDEX(VLOOKUP(TRIM(B2&C2), {TRIM(DvP!L:L&DvP!M:M), DvP!N:N}, 2, 0))
Related
I'm looking get the count of each row where the cells are not empty in a none sequential range (A3:A;C3:C;E3:E;G3:G) .
Say if A3 is not empty and C3, E3, G3 is empty than the result would be 1
Say if A3 and C3 is not empty and E3, G3 is empty than the result would be 2
Say if A3 , C3 and E3 is not empty and G3 is empty than the result would be 3
I like that done for the entire range.
BASICLY COUNT EACH CELL WITH ANY VALUE ON EACH ROW AND RETURN THE RESULTS OF THAT ROW.
I need the same results as =countA(A3:G) for each row inoring columns(B,D,F) in some type of an arrayformula.
Thanks for the help in advance
Wilson
link to the sheet:
LINK TO SHEET
See if this helps
=ArrayFormula(if(len(A3:A); MMULT(N({A3:A\C3:C\ E3:E\ G3:G}<>""); {1; 1; 1; 1});))
Or, in a more general approach (filtering out the odd columns)
=ARRAYFORMULA(IF(LEN(A3:A); MMULT(N(A3:G<>""); N(TRANSPOSE(ISODD(COLUMN(A3:G3)))));))
Try below formula :
=Arrayformula(IF(A3:A<>"",1,0)+IF(C3:C<>"",1,0)+IF(E3:E<>"",1,0)+IF(G3:G<>"",1,0))
I have a spreadsheet with a schedule of deliveries output to individual days and would like to include a new set of data on these days from a sheet titled Catering.
I have a condition that works, but I'm not able to figure out how to make it a broader formula.
=IF(B1=Catering!A1, Catering!B1, "No known catering")
This checks a date in B1 on current sheet against a date on the Catering sheet in A1 and returns the value of B1.
What I would like it to do is match current sheet B1 against Catering A:A and if there is a match, return the adjacent cell value ie. if current sheet B1 matches Catering A5 from Catering A:A, return Catering B5.
use VLOOKUP like:
=ARRAYFORMULA(IFERROR(VLOOKUP(B1:B, Catering!A1:B, 2, 0), "No known catering"))
or for date and match:
=ARRAYFORMULA(IFERROR(VLOOKUP(B1:B, Catering!A1:B, {1,2}, 0), "No known catering"))
or if you don't need array:
=IFERROR(VLOOKUP(B1, Catering!A1:B, 2, 0), "No known catering")
I am trying to achieve the following functionality:
In every row look at the value of column B (for example) 1. Then run down the list summing the value of column C if the value of column B is also (for example) 1 and capture this in each rows column G.
So the expected result for rows 4,5 and 6's G would be 3,3 and 1 respectively.
I am thinking something like (this is pseudo)
=ArrayFormula(SumIf(RangeForB,THISROW=OTHERROWS,RangeForC))
I'm also not really sure how I would get "This Row", I know you can use ROW() but that will give me the index not the value of the row. INDEX() to my knowledge also isn't usable in ArrayFormula()
Help would be greatly appreciated, Cheers.
You can use SUMIF where the criterion is itself a range:
=ArrayFormula(filter(sumif(C4:C,C4:C,D4:D),C4:C<>""))
So the sumif is evaluated first for all of the rows where the values in column C match the number in C4 (rows 4 and 5), then for those matching the number in C5 (also rows 4 & 5), then those matching the number in C6 (row 6 only). The filter is needed to suppress the zeroes which would otherwise occur in rows 7 onwards.
=ARRAYFORMULA(MMULT(QUERY(B1:C,
"select B, C where B matches '1' and C matches '2'", 0),
(TRANSPOSE(COLUMN(B1:C1)^0))))
I have the following sheet (link). What formula would yield the itemized sums in B2, C2, and D2?
To calculate the value in B2, the formula should check cells B5:B10 and sum the corresponding values from A5:A10 for non-blank cells. Hence: 30+45+30=105.
I have tried ARRAYFORMULA(IF(B5:B10 != ""), sum(A5:A10)) which results in Formula parse error.
Considering that the numbers in column B are not to used (thats what i figured out from your example).
you can use sumIf:
=SUMIF(B5:B10,">0",A5:A10)
so this will check if the cell in column B is greater than 0, then it will add its corresponding value from column A.
please note that if you put a character in the B column the SUMIF will not consider it because we are using ">0" as criterion, instead use ISBLANK.
hope it helps.
Google Spreadsheets, match/lookup in ALL rows, except the current one
I have never come across a method that looks in all rows, except the current.
Say you have a match or vlookup and it looks in ALL the rows except the current one the formula is in.
We use a formula like below that verifies if a certain value already exists (using a MAX), but if it finds itself then the match or vlookup is always 1 (or in error)
A B
1 Formula: Does value 1 from cell A1 exist in column A?
2 Formula: Does value 1 from cell A2 exist in column A?
3 Formula: Does value 1 from cell A3 exist in column A?
4 Formula: Does value 1 from cell A4 exist in column A? Check all except row 4
Something like this
Formula in cell C4: match(A4;A$1:A3&A5:A)
Or Formula in cell C4: match(A4;A:A&[^A4])
You can use this formula from the second row of data onward (B2=):
=IFERROR(MATCH(A2,A$1:A1,0),MATCH(A2,A3:A,0)+ROWS(A$1:A1)+1)
If there is no match above the current cell it will search for a match below, and will return the correct index in the full column range by adding ROWS(A$1:A1)+1 to the below match result.
Copy this formula downward from B2 to B3 and so on.
If you are trying to check whether the value appears in the column except for the current row just use COUNTIF()
Put this formula in B2
=ARRAYFORMULA(IF($A$2:$A="",,IF(COUNTIF($A2:$A,"="&$A2:A)>1,True,False)))
Otherwise please specify what kind of output you want