SumProduct to Count decimal or Text values in a table column

drom

Well-known Member
Joined
Mar 20, 2005
Messages
547
Office Version
  1. 2021
  2. 2019
  3. 2016
  4. 2013
  5. 2011
  6. 2010
  7. 2007
Hi and thanks in advance!

I am using a table
I my table in one of the columns
  • Decimal numbers are NOT allowed (data validation = easy)
  • Text values are not allowed (easy)
I am using conditional formatting and works OK
  • =OR(ISTEXT(I13);(INT(I13)-I13)<>0)
In My eg: Table $I$13:$xxx is named rcAAA
  • xxx could be $5012 if my tables has 5000 rows
Now I would like to use a SumProduct to count how many cells are NOT OK
Using SumProduct to Count decimal or Text values in on rcAAA

I am using;
  • =SUMPRODUCT(--((rcAAA<=0)+((INT(rcAAA)-rcAAA)<>0)+(ISTEXT(rcAAA))>0);--(rcAAA<>""))
    • But Does not work if a cell keeps Text on rcAAA for some unjustified reason

Thanks again
 
Last edited by a moderator:
Try an array formula like this:

=SUM(IF(rcAAA<>"",IF(ISTEXT(rcAAA),1,IF(MOD(rcAAA,1)>0,1))))

confirm with CTRL+SHIFT+ENTER
 
Upvote 0
Solution

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