COUNTA statement with cells containing formulas

fishin

Board Regular
Joined
Jan 18, 2009
Messages
184
The cells identified G19:G26 in the COUNTA statement below contain formulas. Would appreciate it if someone could show me how to adapt the statement such that the presence of formulas is ignored thus counting the cells only if they contain data.

=COUNTA(G19:G26)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Can the formulas return an empty string ("")? When they return "data" is it numeric or text or both?
 
Upvote 0
The cells are identified a numeric however, I simply want the formula to count the number of times data (numeric or otherwise), appears in the string identified.
 
Upvote 0
The cells are identified a numeric however, I simply want the formula to count the number of times data (numeric or otherwise), appears in the string identified.

You didn't answer the question about the formulas returning "". Assuming that's the case and you want to count only the cells in the range that return numbers or non-zero-length text, you can use this:
Code:
=COUNTA(G19:G26)-COUNTIF(G19:G26,"")
 
Upvote 0
You didn't answer the question about the formulas returning "". Assuming that's the case and you want to count only the cells in the range that return numbers or non-zero-length text, you can use this:
Code:
=COUNTA(G19:G26)-COUNTIF(G19:G26,"")

Thanks....That works great!

Much appreciated!
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,547
Members
449,089
Latest member
davidcom

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