Some expert can transform these two formulas into just one...
formula 1
=ArrayFormula(unique(SE(G2:G11<0;"";SE(A2=A2:A11;MAXIFS(F2:F11;A2:A11;A2);F2:F11))))
formula 2
=ArrayFormula((PROCV(I1:I5; SORT(SE(G2:G11<0;A2:G11);6;VERDADEIRO);6;0)))
a copy of the spreadsheet here below to test
Sheet
use:
=INDEX(IFNA(VLOOKUP(I1:I10;
{SORT(FILTER(A2:F11; F2:F11< TODAY()); 6; );
SORT(FILTER(A2:F11; F2:F11>=TODAY()); 6; 1)}; 6; )))
Related
I will be using a VLOOKUP formula countless times and I am stumped on how to use VLOOKUP to return repeating values using different searches
Table
Column A has lots of random zipcodes, and Column E has 5 different regions.
What VLOOKUP formula to put on B2 which I can drag down?
I tried =VLOOKUP(A2,$D$2:$E$436,2,false) but it's just giving me N/A
use in B2 (do not drag down):
=INDEX(IFNA(VLOOKUP(A2:A; D:E; 2; 0)))
formatting fix:
=INDEX(IFNA(VLOOKUP(A2:A&""; D:E&""; 2; 0)))
I can't figure out how to apply ranges for cells in formula, each time I try It doesn't work.
Google Sheet formula: =IF(OR(B2=Items!$A$3;B2=Items!A$4;B2=Items!A$5;B2=Items!A$6;B2=Items!A$7;B2=Items!A$8;B2=Items!A$9;B2=Items!A$10;B2=Items!$A$11);"Melee";IF(OR(B2=Items!A$12;B2=Items!A$13;B2=Items!A$14;B2=Items!A$15;B2=Items!A$16);"Range";"Pick Your Weapon"))
While in Excel this works:
=IF(OR(C1=A1:A3);"Melee";IF(OR(C1=A4:A6);"Range";"Unarmed"))
try:
=INDEX(IF((B2:B=Items!A3)+(B2:B=Items!A4)+(B2:B=Items!A5)+(B2:B=Items!A6)+(B2:B=Items!A7)+(B2:B=Items!A8)+(B2:B=Items!A9)+(B2:B=Items!A10)+(B2:B=Items!A11); "Melee";
IF((B2:B=Items!A12)+(B2:B=Items!A13)+(B2:B=Items!A14)+(B2:B=Items!A15)+(B2:B=Items!A16); "Range"; "Pick Your Weapon")))
or shorter:
=INDEX(IF(REGEXMATCH(B2:B, TEXTJOIN("|"; 1; Items!A3:A11)); "Melee";
IF(REGEXMATCH(B2:B, TEXTJOIN("|", 1; Items!A12:A16)); "Range"; "Pick Your Weapon")))
I'm trying to extract in Google Sheets the duplicated fruits of the table depending on the date (I want to keep the newest). So I use a VLookUp but I only can extract one column. I've tried putting {} with column numbers between {1;2;3;4} but it doesn't work.
Is there any way to make this with only a formula?
=ARRAYFORMULA(IFERROR(VLOOKUP(UNIQUE(A1:A6);A1:D6;1);""))
try:
=SORTN(SORT(A:D; 4; 1); 9^9; 2; 1; 0)
I have a complex sheet working with the Filter formula, and I want to do the following:
=arrayformula(Roster!A3:A)
=FILTER(Roster!G3:BZ,Roster!G2:BZ2=U6)
now I want to do vlookup for using the above 2 formulas as following:
=VLOOKUP($T$7:$T$110,**$X$7**:**$Y$830**,2,0)
The range $X7 = =arrayformula(Roster!A3:A)
The range $Y$830 = =FILTER(Roster!G3:BZ,Roster!G2:BZ2=U6)
How i can compound the 2 formulas?
use:
=ARRAYFORMULA(IFNA(VLOOKUP(T7:T110,
FILTER({Roster!A3:A, Roster!G3:BZ}, Roster!G2:BZ2=U6), 2, 0)))
D E F
772597 49.36.00 30316
746554 39.33.00 35820
976942 44.46.00 142864
1075820 41.33.00 93708
My dataset needs to be simplified, by that I mean turning numbers into classifications.
For example value less or equal to 99 = 1. 100-999 = 2. 1000-1999 = 3, etc.
I got this code for a column and it works great:
=ArrayFormula(1*(B2:B900*1,05<B3:B900))
But the data in the other columns in the dataset needs to be turned into numeric classes.
I need a formula that transforms the data in column D to be replaced with 1, 2, 3... and same with the data in the other columns
try nesting it:
=IF(AND(D1>0; D1<100); 1;
IF(AND(D1>=100; D1<1000); 2;
IF(AND(D1>=1000; D1<2000); 3; )))
For Numeric columns, please try the likes of:
=ArrayFormula(floor(log(D1:D))--(D1:D<10))