How to add title rows using Array Formula - arrays

I am trying to add title of each column but my formula is populating an error. But when i use this without titles it works fine. But how to add titles using Array Formula.
any help will be appreciated.
={"Active","Link","Lake","Temp",Talei","Shmk","Shmtr","Kile";ARRAYFORMULA(IFERROR(VLOOKUP(A5:A,'Sheet2'!$A$2:$J,{3,4,5,6,7,8,9,10},0)))}

try:
={"Active","Link","Lake","Temp","Talei","Shmk","Shmtr","Kile";
ARRAYFORMULA(IFERROR(VLOOKUP(A5:A, 'Sheet2'!$A$2:$J, {3,4,5,6,7,8,9,10}, 0)))}
or:
={"Active","Link","Lake","Temp","Talei","Shmk","Shmtr","Kile";
ARRAYFORMULA(IFERROR(VLOOKUP(A5:A, 'Sheet2'!$A$2:$J, {3,4,5,6,7,8,9,10}, 0),
{"","","","","","","",""}))}

Related

Index or HLookup working "alone" but not working inside ArrayFormula

I'm trying to put the following formulas inside an ArrayFormula but the result is wrong (keep providing the first row result):
Working in each single cell
=INDEX($D$2:$AKA;match($A2:A;$A$2:A;false);MATCH(DATE(YEAR(TODAY());MONTH(TODAY());1);$D$1:$AKA$1;false))
Showing the same result in all cells
=arrayformula(IF(LEN($A$2:A);INDEX($D$2:$AKA;match($A2:A;$A$2:A;false);MATCH(DATE(YEAR(TODAY());MONTH(TODAY());1);$D$1:$AKA$1;false));))
Gsheet example
Thanks in advance,
Nick
use:
=INDEX(IFERROR(HLOOKUP(EOMONTH(TODAY(); -1)+1; D1:1000; IF(A2:A="";;ROW(A2:A)); 0)))
You may also try QUERY() approach.
=QUERY(INDEX(D2:5000;;MATCH(EOMONTH(TODAY();-1)+1;D1:1));"limit " & COUNTA(A2:A))

How to compile a list of other lists by checkbox?

I'm trying to write a cell formula which can essentially create a single playlist of songs.
Currently the songs are grouped by decade, but I'd like to be able to see a single list of everything that has been ticked.
I tried an array formula, but it only returned the first ticked song. Plus not sure how to make the array formula include the adjacent lists.
I tried a FILTER function, it works for one list of songs, but I don't know how to get it to append the other lists on the end.
Could I use a QUERY function? Not sure how though.
Many thanks!
try:
={"LIST"; FILTER({C:C; F:F}; {B:B; E:E}=TRUE)}
awesome question! You were super close in your filter example, one more filter in your array would've done it :)
Example Image:
Example Formula:
={"LIST"; FILTER(C:C, B:B=TRUE); FILTER(F:F, E:E=TRUE)}

Is there a way to make this query formula work? it was working before but I had to add more sheets and then it broke

Formula that combines all the sheets in my project and removes any empty cells
yes, change this:
;},
to this:
},

Remove partial matches from list in sheets

I'm trying to compare two arrays and remove any matches(Partial). This seems like it should be simple but I can't wrap my head around it.
The sheet is found here:
https://docs.google.com/spreadsheets/d/1_jPJOST-8DbpTwVcoFGXFzdpo-1bXSMnwJcgEMnNk3U/edit?usp=sharing
Try:
=FILTER(A2:A5,NOT(REGEXMATCH(A2:A5,JOIN("|",B2:B3))))
I used the premise on that but used textjoin to make sure I could add more rows. Thanks!
=FILTER(A2:A,NOT(REGEXMATCH(A2:A,textJOIN("|",TRUE, B2:B))))

Get SUM from CATEGORY and by MONTH

So I'm trying to sort some data from a form in google sheets. I need to sort the data by category. and by the month.
So far I have been able to sort these individually but not in the same cell.
my code so far for my test form is below the image.
To Filter by a category, in F2:
=UNIQUE(B2:B25)
for cells G2 and below I used: =SUMIF(B$2:B$25,F2,C$2:C$25)
to get the TOTAL for entire categories I used: =SUMPRODUCT((MONTH(spending_response!D2:D100)=5)*(YEAR(spending_response!D2:D100)=2020)*(spending_response!C2:C100))
my problem is I can't put these two together. I tried adding the two codes in the same cell separate by a comma but it doesn't seem to work. please see the below image for what I am using this for and dismiss the test values.
Put this in G2 and drag downwards :
=SUMPRODUCT((spending_response!$B$2:$B$100=F2)*(MONTH(spending_response!$D$2:$D$100)=5)*(YEAR(spending_response!$D$2:$D$100)=2020)*(spending_response!$C$2:$C$100))
Idea : add another draggable 'checking' criteria to the sumproduct. /(^_^)
use:
=QUERY(A2:C, "select A,sum(B) where month(C)+1=5 group by A label sum(B)''", 0)

Resources