Problem with Sumproduct formula

dinsyp

New Member
Joined
Aug 26, 2014
Messages
20
Hi people,

This is baffling me. I am counting the number of rows in a column based on one of three criteria: Completed, In Process, and Not Started. The formula below works well when "Not Started" is replaced by "Completed" or "In Process". But "Not Started" always gives a value of 0.

=SUMPRODUCT(SUBTOTAL(3,OFFSET($G$5:$G$6061,ROW($G$5:$G$6061)-MIN(ROW($G$5:$G$6061)),,1)),--($D$5:$D$6061="Not Started"))

Any ideas?

Regards

Andrew
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Have you checked your "Not Started" selections to make sure there isn't a space before or after Not Started? That would be the simplest thing to check first.
 
Upvote 0
Yes I thought of that and did a check. Copying the text into the formula also made no difference.
 
Upvote 0
Yes I thought of that and did a check. Copying the text into the formula also made no difference.

Do...

=COUNTIFS($D$5:$D$6061,"Not Started")

=COUNTIFS($D$5:$D$6061,"Not*Started")

=COUNTIFS($D$5:$D$6061,"*Not Started*")

all give the same result?
 
Upvote 0
Those were my original formulae. I did the change so the result would reflect a filter on the data.

I am happy to report though that its now working. Not sure why but I'm not arguing:-)

Thanks for your help.

Andrew
 
Upvote 0
Those were my original formulae. I did the change so the result would reflect a filter on the data.

I am happy to report though that its now working. Not sure why but I'm not arguing:-)

Thanks for your help.

Andrew

What was the issue?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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