I have the following formula:
=ArrayFormula(
if(B1=""," ",
IF(C1=" ","NONE",
IF(AND('FORM'!$N:$U=B1,'FORM'!$N:$U=C1),'FORM'!$Z:$Z,
"OK"
)
)
)
)
For the most part it seems to be working but the second part of the statement "IF(AND" I need to join B1 and C1 and search for that joined string in FORM! N:U.
How do I add the JOIN operator in here?
Demo file
You can use the & operator instead - by doing B1&C1 -
also there are a few other corrections I would suggest about your formula because some of doesn't make sense - I am happy to do that if you can share some sample data because it is impossible to guess what you are trying to achieve.
Ended up using a different solution to my challenge.
See question/answer here: Google Sheet Query stopped working as expected
Thanks for all the help offered.
If i understood your question, you basically just switched if & and + and should be the sign. so -> & if()
I made a simple one here. I don't know how to make it more simple, but maybe with some VLOOCKUP?
Just change HVIS => IF (mine is danish)
Preview on my ark
codes:
=HVIS(B1>0;A1;) & HVIS(B2>0;A2;) & HVIS(B3>0;"-A3";)
& HVIS(B4>0;A4;) & HVIS(B5>0;A5;) & HVIS(B6>0;A6;)
& HVIS(B7>0;A7;) & HVIS(B8>0;A8;)
=HVIS(B11>0;A11;) & HVIS(B12>0;("-" & A12);)
& HVIS(B13>0;("-" & A13);) & HVIS(B14>0;("-" & A14);)
& HVIS(B15>0;("-" & A15);) & HVIS(B16>0;("-" & A16);)
& HVIS(B17>0;("-" & A17);) & HVIS(B18>0;("-" & A18);)
Related
=SUM((INDIRECT("'Week " & ROW()-6) & "'!$AH$28"),(INDIRECT("'Week " & ROW()-6) & "'!$AI$28"))
What I'm trying to do is:
Find a sheet name that has "Week" and "[number]" in the sheet name. (the number is the current row -6)
On that sheet found, I then want to sum up a range between cells AH28 and AV28. (I thought maybe it could work by manually adding the indirect part and the new cell number)
I'm pretty certain step 1 works, as I use a similar code/function in another sheet.
Am I not using the SUM part of the function right?
Do you know why this isn't working please?
Thank you!
=SUM((INDIRECT("'Week " & ROW()-6) & "'!$AH$28"),(INDIRECT("'Week " & ROW()-6) & "'!$AI$28"))
I get a #REF error saying that parameter "Week 2" is not a valid cell/range reference.
Alternatively, I could use =IFERROR(SUM('Week 1'!$AH$28:$AV$28),""), but I'm trying to avoid changing the week number of the sheet name manually many times.
I don't know how your data is structured. But if you are currently referring correctly to each cell, use SUM as you would with tho cell references, with ":"
=SUM(INDIRECT("'Week " & ROW()-6 & "'!$AH$28"):INDIRECT("'Week " & ROW()-6 & "'!$AI$28"))
I have this formula
=ArrayFormula(if(AND(Input!A10:A=TRUE,Input!B10:B<>""),Input!C10:C & "_cn+" & Input!E10:E & "_ag+" & Input!G10:G & "_mu",""))
referring to these cells
I'm expecting the second row to contain text, but that's not the case.
Spreadsheet
use:
=ArrayFormula(IF((Input!A10:A=TRUE)*(Input!B10:B<>""),
Input!C10:C & "_cn+" & Input!E10:E & "_ag+" & Input!G10:G & "_mu", ))
I am very inexperienced with spreadsheets and can only do very basic functions and formulas. My friends and I are tracking our weight loss over the next couple of months, so we're adding our weighs daily. I'm looking for a formula where I can find the difference between our starting weights (mine begins in G8) and the most recently entered weight (my last entry will be in G67). To clarify, I would like to keep track of my progress as I go, not simply the difference between the first and final entries.
I've researched this question quite a bit, but seem to only be able to find answers for Microsoft Excel (which didn't work for Google Sheets).
I've included a link to a test spreadsheet, so you can see what ours looks like: https://docs.google.com/spreadsheets/d/1RRMsauNAnC8PVjP5ieuHQUDawN33ybzSioajfQxwf_w/edit#gid=0
You can do like this:
=arrayformula(
{"Begin", B8:H8;
"Last", {
indirect("B" & max(filter(row(B8:B67),B8:B67<>""))),
indirect("C" & max(filter(row(C8:C67),C8:C67<>""))),
indirect("D" & max(filter(row(D8:D67),D8:D67<>""))),
indirect("E" & max(filter(row(E8:E67),E8:E67<>""))),
indirect("F" & max(filter(row(F8:F67),F8:F67<>""))),
indirect("G" & max(filter(row(G8:G67),G8:G67<>""))),
indirect("H" & max(filter(row(H8:H67),H8:H67<>"")))}
;"Different",{B8:H8}-{
indirect("B" & max(filter(row(B8:B67),B8:B67<>""))),
indirect("C" & max(filter(row(C8:C67),C8:C67<>""))),
indirect("D" & max(filter(row(D8:D67),D8:D67<>""))),
indirect("E" & max(filter(row(E8:E67),E8:E67<>""))),
indirect("F" & max(filter(row(F8:F67),F8:F67<>""))),
indirect("G" & max(filter(row(G8:G67),G8:G67<>""))),
indirect("H" & max(filter(row(H8:H67),H8:H67<>"")))}})
And you must continue to additional columns after column H (include change B8:H8 to B8:~8), and if any additional row you must change number row 67 to next future Last Row number of your data
or
=arrayformula({
{"Stage";"First";"Last";"Diff"},
{B7:H7;
B8:H8;transpose(
query(split(
query(transpose(
query(text(row(A8:A66)*not(isblank(B8:H66)),"0000") & ":" & B8:H66,
"Select " & join(",","max(Col" & column(B7:H7)-COLUMN(B7)+1 & ")"))
),"Select Col2"),":",true,false),"Select Col2"));
B8:H8-transpose(
query(split(
query(transpose(
query(text(row(A8:A66)*not(isblank(B8:H66)),"0000") & ":" & B8:H66,
"Select " & join(",","max(Col" & column(B7:H7)-COLUMN(B7)+1 & ")"))
),"Select Col2"),":",true,false),"Select Col2"))
}})
I am trying to count the number of letter "A" in range E6:AI6 from tab name "FINAL" in different tab name "FINAL DATA"
I basically want to look up 'FINAL'!E6:AI6, This is what I have tried:
=COUNTIF(INDIRECT("'FINAL'!E6:AI6" & E6 & ":A" & AI6),1)
but it is returning 0 always but in a particular range, there are 5 cells whose value is "A"
=COUNTIF(INDIRECT("'FINAL'!E6:AI6" & E6 & ":A" & AI6),1)
It should return 5 instead of 0 cell where I am applying above function
If I'm' understanding your question correctly, you'd like to count the occurrence of a certain string in a certain range different sheet within the same spreadsheet in Google Sheets.
I think the following should do the job:
=COUNTIF(FINAL!E6:AI6,"A")
EDIT:
Including INDIRECT would work the following way.
=COUNTIF(INDIRECT("'FINAL'!E6:AI6"),"A")
I understand that this doesn't solve the issue you've described in the comments, but I think it addresses the question asked in the initial post.
not sure which one you need but it should look something like this:
=INDIRECT(E6 & COUNTIF(FINAL!E6:AI6,"A") & ":A" & AI6)
=INDIRECT(FINAL!E6 & COUNTIF(FINAL!E6:AI6,"A") & ":A" & FINAL!AI6)
I'm using Google sheets to collect feedback.
Each session has a unique ID ( column A). I want to amalgamate feedback (Column B) that comes from the same session into a single cell in column C
It works with the formulas shown but each time someone submits feedback using google forms it creates a new row in the sheet and I have to manually copy and paste the formula into the newly created row. I solved this problem with other data i have been collecting by using an array formula.
However I can't figure out how to get this working as an array formula. Help!
A B C Formulas in column C
1
2 as1 ok ok =IF(A2<>A1,B2,C1 & "," & B2)
3 as1 short ok, short =IF(A3<>A2,B3,C2 & "," & B3)
4 as1 fun ok, short, fun =IF(A4<>A3,B4,C3 & "," & B4)
5 bg2 hard hard =IF(A5<>A4,B5,C4 & "," & B5)
6 bg2 easy hard, easy =IF(A6<>A5,B6,C5 & "," & B6)
Can anybody help?
=ARRAYFORMULA(IF(A3:A50<>A2:A49,B3:B50,C2:C49& "," & B3:B50))