Check if each column has at least one nummeric value

rudfaden

New Member
Joined
Feb 5, 2011
Messages
48
I have a range, and I would like ti check if each column is empty (has no nummeric values). I know that i can loop through all the cells in each column, but i wonder if there is a more efficient way?
 

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.
I can't figure out a way to adapt this to incorporate an "If ... > 1" to give you a true or false answer if at least one numeric value is present. But it's a place to start.

=SUM(IF(ISNUMBER(A1:A10000)*ISNUMBER(A1:A10000),1,0))

Somebody else will have a better answer for you.
 
Upvote 0
What about just doing a count on the column, If there is a numeric value in the column it will count each numeric value as 1. E.G. ~ =COUNT(A:A) if there are no values ~ text only it will result in 0, if there is 1 value(number in the column) the count will show 1, if there is more than 1 value then it will till you how many there are.

In your example
=IF(COUNT(A1:A10000)=0,"No values", "Has values")
 
Upvote 0
I have a range, and I would like ti check if each column is empty (has no nummeric values). I know that i can loop through all the cells in each column, but i wonder if there is a more efficient way?

Formulawise...

=ISNUMBER(MATCH(9.999999999999999E+307,A:A))

=COUNT(A:A)>0
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

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