I need to convert the formula below to a googledoc available formula. I've had trouble doing this with array formulas.
=COUNTIFS(Sheet1!J:J,"M",Sheet1!K:K,"Yes")
This?
=ARRAYFORMULA(COUNTIF(A2:A13,"m")+COUNTIF(B2:B13,"yes"))/2
Divide by the total columns you are searching...
Related
I'm trying to built a formula in excel in order to have a SUMPRODUCT in an external file. I have to "point" SUMPRODUCT in a different column every week. Example: during w32 SUMPRODUCT points on column AA, during w33 it points on column AB etc.
This is the working formula with SUMIFS and OFFSET:
=SUMIFS(OFFSET('[FEDE.xlsx]Avanzamento WO'!$AM$4;0;WEEKNUM(TODAY())-29;1000);'[FEDE.xlsx]Avanzamento WO'!$K$4:$K$1003;B5)
This is the working formula with SUMPRODUCT (with static range):
=SUMPRODUCT(--('[FEDE.xlsx]Avanzamento WO'!$K$3:$K$10000=B4);'[FEDE.xlsx]Avanzamento WO'!$AP$3:$AP$10000)
Can anyone help me?
Thanks in advance to everybody
Federico
Are you willing to use your original OFFSET formula? In such case, you can apply either:
=SUMPRODUCT(--('Avanzamento WO'!$K$3:$K$1000=B5),OFFSET('Avanzamento WO'!$AM$3:$AM$1000,0,WEEKNUM(TODAY())-29))
or (version 2):
=SUMPRODUCT(--('Avanzamento WO'!$K$3:$K$1000=B5),OFFSET('Avanzamento WO'!$AM$3,0,WEEKNUM(TODAY())-29,998))
Note that I am using a range that ends in row 1000. SUMPRODUCT formula requires all ranges (arrays) to be of the same size. Your original SUMIFS formula was ending with row 1,000 while SUMPRODUCT approach was ending with 10,000, so I wasn't sure which one was correct. Also your SUMIFS was pointing to cell B5 while SUMPRODUCT was analysing cell B4.
Results:
Oh and I am using , instead of ; so you would also need to have it adjusted :)
Hi I have a array formula in which i need to press CSE(ctrl+shift+enter) to make it work.
And more importantly i want to evaluate this formula in java by apache poi API,which is not supported till the date.
Is anyone can help me regarding this,will be really appreciated.
{=INDEX('02_BillList'!$B$1:$W$4000,MATCH(1,('02_BillList'!$B$1:$B$4000=$A4)*('02_BillList'!$J$1:$J$4000=S$1),0),22)}
Using a helper column the array formula could be avoided:
We are using '02_BillList' column X as helper column.
In '02_BillList'!$X$1:$X$4000 put the formula:
=$B1&$J1
Then use the formula:
=INDEX('02_BillList'!$B$1:$W$4000,MATCH($A4&S$1,'02_BillList'!$X$1:$X$4000,0),22)
Tryingto CountIf with Exclusions and multiple criteria,
Here's an example of just multiple critera:
=SUM(COUNTIFS(A1:A9,"YES",B1:B9,{"JOHN","GEORGE","RINGO","PAUL"}))
Here's an example of just exlusion:
=SUM(COUNTIFS(A1:A9,"YES",B1:B9,"<>*JOHN*"))
And here's the sum we're currently got but not working:
=SUM(COUNTIFS(A1:A9,"YES",B1:B9,{"<>*JOHN*","<>*GEORGE*","<>*RINGO*","<>*PAUL*"}))
When criteria becomes too complex for COUNTIFS, you can often use an array formula. I think the following array formula will achieve your goal...
=SUM(IF(A1:A9="YES",1,0)*(IF(ISNUMBER(FIND("JOHN",B1:B9)),0,1))*(IF(ISNUMBER(FIND("GEORGE",B1:B9)),0,1))*(IF(ISNUMBER(FIND("RINGO",B1:B9)),0,1))*(IF(ISNUMBER(FIND("PAUL",B1:B9)),0,1)))
Make sure to use CTRL+SHIFT+ENTER to enter the array formula.
=SUMIFS($B:$B*$N:$N,$N:$N,">=5",$N:$N,"<10")
I want to multiply 2 columns and sum all instances of it, conditioned only on one of the columns.The formula gives an error because I multiply in the first argument, which just should be a single number I guess. I tried using SUMPRODUCT too, but as column B does not have a condition, it doesn't work. Can anyone advice please. Thanks in advance.
The equivalent SUMPRODUCT formula for your SUMIFS attempt is:
=SUMPRODUCT(B:B,N:N,--(N:N>=5)*(N:N<10))
But you should avoid using full column references in SUMPRODUCT. If you can't limit range sizes, consider using dynamic named ranges.
try:
=SUMPRODUCT(B:B,IF(N:N>=5,IF(N:N<10,N:N,""),""))
with array ctrl+shift+enter
So, what I need is to show SUMPRODUCT of two cell ranges? Both of these cell ranges, that is, each cell contains formula in it. From this formulas I get some number in the cells. This is the way I'm doing it right now:
=SUMPRODUCT((S7:S1000)*(T7:T1000))
and because of formulas I get error A value used in the formula if of the wrong data type
How could I solve this problem? Is there some kind of way to read just number in the cell and not the formula?
Thanks
Replace the "*" with a comma (",").
I've had so much problems with this and in the end it was that instead of comma(",") I needed to use semicolon(";"). Maybe its up to Excel version, I'm using 2010?! So, solution was:
=SUMPRODUCT(S7:S1000;T7:T1000)