Handling Blank Cells for SUM Formula Assistance

Disarmonious

Board Regular
Joined
Oct 31, 2016
Messages
139
Hello,

I am trying to count cells with unique information, or different information that displays in a row, however, since some of these cells are blank, it's returning as #NA. Doing some research, I suppose it's required to use another formula that reads and tells the formula to continue to count the cells in the range. I was using the formula --> =SUMPRODUCT(--(FREQUENCY(MATCH(C5:C19,C5:C19,0),ROW(C5:C19)-ROW(C5)+1)>0)), but got the #NA due to the blank cells. I tried this formula -->{=SUM(IF(FREQUENCY(IF(C5:C19<>"",MATCH(C5:C19,C5:C19, 0)),ROW(C5:C19)-ROW(C5:C19.C5)+1),1))}

and it does nothing, or it returns as too many arguments error. I just need a number to display that calculates the different results that are typed in to cells C5:C19, disregarding blank cells, but keeping them available in the row. Thank you in advance!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

Watch MrExcel Video

Forum statistics

Threads
1,129,388
Messages
5,636,033
Members
416,892
Latest member
Bensch

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