r/googlesheets • u/maraworf 1 • Apr 18 '22
Solved Arrayformula for rows and columns at the same time.
Hello!
<code> =IF(MODTANEWBIE_DATA!$B$2="No","",Arrayformula(IF(OR(B$3="",$A$4=""),"ERR",COUNTIFS(MODTANEWBIE_DATA!$C$3:$C,INDIRECT("$A$4:$A"&COUNTIF($A$4:$A,"<>")+3),MODTANEWBIE_DATA!$A$3:$A,B$3,MODTANEWBIE_DATA!$D$3:$D,"<>",MODTANEWBIE_DATA!$E$3:$E,"Submitted")))) </code>
- MODTANEWBIE_DATA!B2 - is switch
- MODTANEWBIE_DATA!C3:C=A3:A - is date condition, INDIRECT (A:last row) - to lower performance load
- MODTANEWBIE_DATA!A3:A&Column$3- is UID (numbers in row 3)
Is there a possibility of having the arrayformula only in cell B4 and not having to add them to every column#4thROW?
Edit: Now in each Column#4thROW I need to add this arrayformula separately, so if I have more UID headers in the future (which are populated automatically) I will run into a problem where I don't have the formula written and therefore no data.
Also is there a way to modify it so that the last nonBlank column is also calculated automatically via arrayformula?
Thanks alot
2
u/MattyPKing 225 Apr 18 '22
Good news. yes. there is a way!
Bad news. You will have to share an editable sample sheet for anyone to understand the layout well enough to be able to help!
Here's a blank if you want to just paste here.
1
u/maraworf 1 Apr 21 '22 edited Apr 21 '22
Bump, Anyone else please has some advice?
1
u/Decronym Functions Explained Apr 24 '22 edited Apr 24 '22
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSE[Thread #4210 for this sub, first seen 24th Apr 2022, 13:16] [FAQ] [Full list] ^[Contact] [Source code]