Solution to count occurrences of cells that contain "0" from a data download

JenMcG

New Member
Joined
Dec 2, 2016
Messages
46
Hello,

I am having issues with the following formula:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(AF31:AF5010,ROW(AF31:AF5010)-MIN(ROW(AF31:AF5010)),,1))*(AF31:AF5010="0"))

The data contained in this spreadsheet is downloaded from another database (& pasted into this spreadsheet) and it returns a "0" or "$-" when the Original Upload Amount has not been submitted. I would like the ability to count the occurrences of these "0" when a filter is applied. I repurposed an old formula from a different spreadsheet that performs the same function for counting the occurrences of the word "YES" and substituted the "YES" for "0" which did not work. I also tried "$-".
Excel Help 05-16-23.JPG

Does anyone have any other recommendation to get this count working?

Thanks,
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Try removing the quotes from the "0" so it's just 0
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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