Combining Sum / Sumproduct / Subtotal / Countif Not Blank

ShaneD

New Member
Joined
Jul 11, 2022
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
  2. Mobile
  3. Web
I have a list of action items that I am tracking the completion of the items for 3 projects. We are continually adding items to the list. When I filter for a specific project I need it to total the number of items that are not complete.
Cell A3 contains a total count of all items, the result is 50. This formula is =subtotal(3,A6:A44)
Column B is the project that the item is assigned to (Project 1, 2, 3)
Column M is the date the item was completed.
My range is row 6 through 44 because I have rows above my dataset which include the headers, total complete, total remaining (which I am trying to calculate properly when filtered).
The formula that I am using is: =SUM(A3-(SUMPRODUCT(SUBTOTAL(3,OFFSET(M6,ROW(M6:M44)-ROW(M6),0)),--((M6:M44)="<>"))))
But my result keeps returning the total count in cell A3 and not subtracting the number of non blank cells from the total.

Thanks in advance for your help.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,216,096
Messages
6,128,809
Members
449,468
Latest member
AGreen17

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