Sumproducts - skip empty cells

xxsalahxx

Active Member
Joined
Jun 25, 2011
Messages
320
Office Version
  1. 2007
Hello
Im using this formula below but I would like to skip empty cells in column K o that the empty cells are not counted, is there a way around this?

Thank you in advance
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
=IF(K2:K200<>"",(SUMPRODUCT(--(K2:K200<=J2:J200),--(B2:B200="Risk"))))

Sorry i forgot to attach my formula its counting the blank cells in column K
 
Upvote 0
Try

=SUMPRODUCT(--(K2:K200<>""),--(K2:K200<=J2:J200),--(B2:B200="Risk"))
 
Upvote 0
I'm wondering if i can take this a step further and in column J only count if dates are before todays date?

Thank you
 
Upvote 0
I'm wondering if i can take this a step further and in column J only count if dates are before todays date?

Thank you
=SUMPRODUCT(--(K2:K200<>""),--(K2:K200<=J2:J200),--(B2:B200="Risk"),--(J2:J200<TODAY()))
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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