Sumproducts or not?

xxsalahxx

Active Member
Joined
Jun 25, 2011
Messages
259
Hello
Im trying to use a sumproduct to add 0 (zeros) or if the cell is left blank based on dates.
My dates are in column B and my codes i need to pick up are in column E so if column E has a 0 (zero) value or the cell is left blank I need to count this in my analysis.
Doies anyone have any ideas im trying to use the formula below but its only counting the Zeros nad missing counting the blank cells.

=SUMPRODUCT((((DATA!$B$2:$B$10000>=ANALYSIS!A4)*(DATA!$B$2:$B$10000<=ANALYSIS!B4)*(DATA!$E$2:$E$10000=0)*(DATA!$E$2:$E$10000<>""))))

Thank you in advance, any help is appreciated
 

Some videos you may like

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,564
Office Version
  1. 365
Platform
  1. Windows
Your last condition is explicitly excluding blank/empty cells.
Excel Formula:
DATA!$E$2:$E$10000<>""))
Remove that last condition if you want to count them.
 
Solution

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,564
Office Version
  1. 365
Platform
  1. Windows
You are welcome.
Glad I was able to help.
 

Watch MrExcel Video

Forum statistics

Threads
1,127,355
Messages
5,624,213
Members
416,017
Latest member
moritz210

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
Top