Count cells in table with specific criteria

drom

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


I have a table named Table1 with many rows and columns

The DataBodyRange of this table contains always values such as
  • 45658ax
  • 12ax
  • 9878ax
  • 887412ax
  • 557ax
So they have always a string "ax" at the end of the cell

I would like to count how many of those cells have a value > 1000

In my eg ig If have only the above cells...

The result should be = 3

?
 
The Table is named aaa, cell B2 is Wrong (was just for this eg) ?
I do not know how to avoid #VALUE!
the answer should be 1 (Red Text) but the #VALUE! avoids the this
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
How about
Excel Formula:
=SUMPRODUCT((RIGHT(aaa,2)="ax")*(SUBSTITUTE(aaa&"ax","ax","0")/100>70000))
 
Upvote 0

Forum statistics

Threads
1,215,884
Messages
6,127,558
Members
449,385
Latest member
KMGLarson

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