SUMPRODUCT returns #VALUE for a relatively simple function

janpasierb

New Member
Joined
Feb 12, 2013
Messages
9
Hi

I have a problem. I need to use SUMPRODUCT. Let's say I have a cell with the desired formula on "AR2". I need to:

- check whether the value in the current table, in the "Day" column in the same row is equal to the value in another table ("AllBugsTable"), column "Created", same row,

- check whether the value in another table ("AllBugsTable") column "Priority" is equal to word "Blocker",

- check whether the value in another table ("AllBugsTable") column "Affects Version/s" DOES NOT contain the word "backlog" in it, same row,

- check whether the value in another table ("AllBugsTable") column "Affects Version/s" DOES NOT contain the word "archive" in it, same row,

- check whether the value in another table ("AllBugsTable") column "Fix Version/s" DOES NOT contain the word "backlog" in it, same row,

- check whether the value in another table ("AllBugsTable") column "Fix Version/s" DOES NOT contain the word "archive" in it, same row,

If all the above are true then the sumproduct should be calculated.

This is what I have so far:

Code:
=SUMPRODUCT(
(ISNUMBER(MATCH([@Day], AllBugsTable[Created], 0))),
(ISNUMBER(MATCH("Blocker", AllBugsTable[Priority], 0))),
(ISNA(MATCH("*backlog*", AllBugsTable[Affects Version/s], 0))),
(ISNA(MATCH("*backlog*", AllBugsTable[Fix Version/s], 0))),
(ISNA(MATCH("*archive*", AllBugsTable[Affects Version/s], 0))),
(ISNA(MATCH("*archive*", AllBugsTable[Fix Version/s], 0))))

but I get #VALUE back. What am I doing wrong?

Thanks
Jan
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
EDIT: The other formula I came up with is:

Code:
=SUMPRODUCT(
(AllBugsTable[Priority]="Blocker")*
(AllBugsTable[Created]=[@Day])*
(ISNA(SEARCH("backlog", AllBugsTable[Affects Version/s])))*
(ISNA(SEARCH("archive", AllBugsTable[Affects Version/s])))*
(ISNA(SEARCH("backlog", AllBugsTable[Fix Version/s])))*
(ISNA(SEARCH("archive", AllBugsTable[Fix Version/s]))))
 
Upvote 0
Try
Code:
=SUMPRODUCT(
--(ISNUMBER(MATCH([@Day], AllBugsTable[Created], 0))),
--(ISNUMBER(MATCH("Blocker", AllBugsTable[Priority], 0))),
--(ISNA(MATCH("*backlog*", AllBugsTable[Affects Version/s], 0))),
--(ISNA(MATCH("*backlog*", AllBugsTable[Fix Version/s], 0))),
--(ISNA(MATCH("*archive*", AllBugsTable[Affects Version/s], 0))),
--(ISNA(MATCH("*archive*", AllBugsTable[Fix Version/s], 0))))
 
Upvote 0
Try
Code:
=SUMPRODUCT(
--(ISNUMBER(MATCH([@Day], AllBugsTable[Created], 0))),
--(ISNUMBER(MATCH("Blocker", AllBugsTable[Priority], 0))),
--(ISNA(MATCH("*backlog*", AllBugsTable[Affects Version/s], 0))),
--(ISNA(MATCH("*backlog*", AllBugsTable[Fix Version/s], 0))),
--(ISNA(MATCH("*archive*", AllBugsTable[Affects Version/s], 0))),
--(ISNA(MATCH("*archive*", AllBugsTable[Fix Version/s], 0))))

Thanks for suggestion but it doesn't work. The cells with that formula always spit out 0.
 
Upvote 0
I think probably the SEARCH is better than the MATCH.
Don't think sumproduct will support the use of wildcards in the Match.

But the ISNA part won't work, because SEARCH Returns #VALUE! when the search doesn't find what it's looking for.
So use ISERROR instead.

Try

Code:
=SUMPRODUCT(
--(AllBugsTable[Priority]="Blocker"),
--(AllBugsTable[Created]=[@Day]),
--(ISERROR(SEARCH("backlog", AllBugsTable[Affects Version/s]))),
--(ISERROR(SEARCH("archive", AllBugsTable[Affects Version/s]))),
--(ISERROR(SEARCH("backlog", AllBugsTable[Fix Version/s]))),
--(ISERROR(SEARCH("archive", AllBugsTable[Fix Version/s]))))
 
Upvote 0
Glad to help, thanks for the feedback.

What a pro. Thank you, it worked. Where do I accept your post as an answer?
You just did.

We don't close threads or mark them resolved at MrExcel.Com
Your acknowledgement of resolution is sufficient.
 
Upvote 0

Forum statistics

Threads
1,203,727
Messages
6,056,983
Members
444,901
Latest member
Teal

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top