COUNTIF for multiple data types

investntrade

New Member
Joined
Jul 26, 2017
Messages
11
Office Version
  1. 2016
Hi,

I have data in excel which contains alphanumeric values like "NA", blanks and spaces, as well as numbers as percentage:
For example, I have the 17 values in a column which includes 3 percentage numbers, 11 NA and rest blank values:

2.37%
NA
NA
NA
NA
NA
NA
1.37%
NA
NA
NA
-0.49%
NA
NA



<colgroup><col></colgroup><tbody>
</tbody>


I want to get the count of only those cells whose values are less than a specific range. In the above example, say I want to count values which are greater than 1%. So I put the 1% value in cell B2, and then use the following formula:
=COUNTIF(K2:K88,">-$B$2")

Unfortunately, the above is returning all counts of NA (i.e. 11), as it seems that NA is being considered as greater than the number 1%.

Expected output should be the count of 2 (for value of 2.37% and 1.37%) in the whole range.

Can the experts please help in getting the right formula?

Thanks
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,216,108
Messages
6,128,872
Members
449,475
Latest member
Parik11

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