Hello so I have a google sheet where I am running some scripts depending on some values on sheet, one of them should be a sum of rows where a checkbox is checked, however, when I try to do the sumif that fulfills this condition, it does not work, here is what I tried so far:
also I tried to do the same while switch the value and checkbox column but I still have the same problem so there must be something I am missing out, thank you.
Try
=SUMPRODUCT(B18:B25*A18:A25)
this works for me too =sumif(B18:B25,true,A18:A25)
you can also do:
=SUM(IFNA(FILTER(FILTER(A18:A25; B18:B25=TRUE)))
Related
pretty new to google sheets, my question could seems awkward but i'm struggling with a sumif in google sheets.
I'm using a sumif to sum up some values with a simple condition and i struggle to find the right way to do it. Assuming the documentation i do it well but i must be missing something because the result is always : ERROR!
See the example below
The example is simple, applying exactly what the documentation says but still not working.
I tried to make the cell format number for the condition, still not working.
I tried to make the condition a string by typing "=1", still not work. I tried to use a cell value in the condition B5 for example, still not working.. I'm desperate, i don't understand why this simple example is still not working.
If someone could help it will save my time.
Chances are that your spreadsheet is using a locale that expects formula arguments to be separated with semicolons instead of commas, like this:
=sumif(B5:B10; 1; C5:C10)
You can set the locale in File > Settings > Locale.
I'm trying to count how many times a name appears in different tabs by using indirect to reference the tab name within a countif formula and works fine.
However, as soon as I put it into an ArrayFormula, it stops counting correctly. Does anyone know a way around this (image link below)?
Thanks!
Works =countif(indirect("Semana "&$A2&"!g:g"),$D2)
Doesn't work =ArrayFormula((countif(indirect("Semana "&$A2:A&"!g:g"),$D2:D)))
In columns E and F you can see the different results after making it an ArrayFormula.
INDIRECT is not supported under ARRAYFORMULA
see: https://stackoverflow.com/a/58314247/5632629
here is a link to my google sheet for reference: [https://docs.google.com/spreadsheets/d/1tUlqB2tsH4xEsxYiMv1CiUIY3hhLGpM-1G8eWOyZPWk/edit?usp=sharing]
What I am trying to do is in the "Clients" sheet there is the column "Orders". Here I want a count of all the times that "Client ID" has been used across all the other pages. Any tips on what formula to use? Thanks
I would use:
={"Orders";ArrayFormula(IF(A2:A="","",COUNTIF({Jun!B:B;July!B:B;August!B:B;Sept!B:B}, A2:A)))}
from what i saw you only needed to add the ARRAYFORMULA to your formula, it should end up like this: =ArrayFormula(COUNTIF({Jun!B:B;July!B:B;August!B:B;Sept!B:B},A2)).
But, even after adding it, to me at least, the results didn't change. Could you verify and make sure there's a problem with the results the SUMIFS is giving you?
If you find anything that's broken I'll try and help.
I have the below formula that populates data from another sheet into one of the columns.
The problem is that I have to allow access between the sheets for the below to work. Unfortunately with the IFERROR statement I don't see the "Allow access to the sheet" popup.
So i have to remove IFERROR and re-add it manually each time.
Is there a way to use vlookup without IFERROR?
Or could I put this formula as a function using the script ?
=ARRAYFORMULA(LOWER(IFERROR(IF(C1:C="test",VLOOKUP(A1:A,IMPORTRANGE("sheet_id","Master !L:N"),3,false),hosts!L3:L))))
many thanks
That is NOT the problem with your formula. (actually it seems to work just fine)
The way the IMPORTRANGE function works is that you only have to "Allow access ONCE.
Once access is granted you don't have to do it again. The two sheets are connected for eternity :)
Tip:
Instead of trying to grand access from inside your formula, try the following
On another cell (any empty cell will do) use just the IMPORTRANGE formula:
=IMPORTRANGE("sheet_id","Master !L:N")
You will be asked to give access. Allow it.
Now the sheets are connected and your formula works as expected.
Make Google Spreadsheet Formula Repeat Infinitely helped me to expand my formula indefinitely and other StackExchange results helped me get to here:
=ARRAYFORMULA(IF((AF2:AF="")," ","L"&ROW(F2:F)&":AD"&ROW(F2:F)))
However, when I tell "L"&ROW(F2:F)&":AD"&ROW(F2:F) to CONCATENATE, every row gives a results as if it was CONCATENATE(L2:AD2).
I tried =ARRAYFORMULA(IF((AF2:AF="")," ",CONCATENATE("L"&ROW(F2:F)&":AD"&ROW(F2:F)))) and =ARRAYFORMULA(IF((AF2:AF="")," ",CONCATENATE(INDIRECT("L"&ROW(F2:F)&":AD"&ROW(F2:F))))) but neither are working.
I am trying to get each row to CONCATENATE(L2:AD2) then CONCATENATE(L3:AD3) then L4:AD4 and so on.
Any help is most appreciated.
To make more easy to explain and understand by using an example, assume that the source values are in the range A2:C3
Instead of using
ARRAYFORMULA(CONCATENATE(A2:C3))
use
ARRAYFORMULA({A2:A3&B2:B3&C2:C3})