Can someone please tell me why this formula is not working?
=Sum(Countifs($B$8:$B$26,{"Sgt";"Cpl";"Gnr";"2*"},$D$8:$D$26,72,$D$6,{"MON","TUE","WED","THU","FRI"}))
From all the testing I've done it seems to be the range of cells. I've checked online already and from everything I've read it should work!
Thank you in advance
COUNTIFS requires the range to be of the same dimension. $B$8:$B$26 and $D$8:$D$26 is 19 rows across, but $D$6 is a single cell. So counting cannot be done.
Related
At the moment I have 2 sheets, Sheet1 has some values and Sheet2 has some other values. Then I have Sheet 3 where I wish to do some calculations in.
To give you an idea, at the moment I am doing the following:-
=((Sheet1!B2*Sheet2!B15)+(Sheet1!C2*Sheet2!C15)+(Sheet1!D2*Sheet2!D15)),
which is working correctly.
However, I have 36 cells I need to do the same exact thing. So I was wondering if there was some formula or range in Excel which can make my life easier.
Any ideas which might help me pls?
Thanks for your help and time!
Perhaps:
=SUMPRODUCT(Sheet1!$B$2:$AK$2,Sheet2!$B$15:$AK$15)
I am having trouble working out an error I am having with the formula below, I am a bit of a novice and its been more trial and error than anything so far but, I was hoping someone with a far greater knowledge could point out where I am going wrong.
The formula works fine without the indirect element I.e.
=SUMPRODUCT((PARROT!$o$12:$o$250<>"COMPLETE")*(PARROT!$n$12:$n$250<TODAY()))
but I want to replace the sheet name with an INDIRECT address as the name of the sheet could change
so the formula I came up with is but, it has an error:
=SUMPRODUCT(INDIRECT("'"&$A3&"'!$o$12:$o$250"),"<>"&"Complete")*(INDIRECT("'"&$A3&"'!$N$12:$N$250")<TODAY())
Help would be very much appreciated.
From your formula it seems you are just counting rows where O12:O250 is not equal Complete and N12:N250 is earlier than today. So, you can use COUNTIFS() formula with INDIRECT() easily. Try below.
=COUNTIFS(INDIRECT($A$3&"!$O$12:$O$250"),"<>Complete",INDIRECT($A$3&"!$N$12:$N$250"),"<"&TODAY())
If you need to sum values from a column then SUMIFS() will be your friend.
I have noticed that SUMIF does not play nice with array formulas.
To save on convoluted explanations of my motivation, here is a sample that demonstrates the issue:
=SUMIF(ROW(INDIRECT("1:10")),"<5")
My current work around would be:
=SUM(ROW(INDIRECT("1:10"))*IF(ROW(INDIRECT("1:10"))<5,1,0))
But my actual formula is quite lengthy and I don't want to repeat the criteria in both places.
Can anyone help me understand what's going on?
Thank you
I am trying to count the cells in a continuous range if they are less than or equal to a variable, referenced from another cell. It seems very close to this,
COUNTIF(A4:A20,">=32")
But I want the 32 replaced with a variable, A3. I have not seen an example of that yet. Would be grateful if someone would help me with the formatting. Thanks!
You just about have it, switch to:
=COUNTIF(A4:A20,">="&A3)
I have a range of numbers (Y6:AC6) which are obtained as a function of =RIGHT(Text,Num) formula. When I try to apply COUNTIFS formula on these numbers which you can see on the picture, it doesn't work. However, when I try the same formula on actual numbers, but not functional results of RIGHT(Text,Num), it works. What am I missing here? can someone help me please? thanks.