count formula

khalil

Board Regular
Joined
Jun 2, 2011
Messages
100
hello all

i have formulas in cell a2:a10 , there are no values yet
a1 has the count function , a1 always displays the number of cells including the formulas with no values,
how can i get red of this, i want in cell a1 just the count of cell including values not formulas...?

thanks
:)
 

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.
hello all

i have formulas in cell a2:a10 , there are no values yet
a1 has the count function , a1 always displays the number of cells including the formulas with no values,
how can i get red of this, i want in cell a1 just the count of cell including values not formulas...?

thanks
:)

You probably need...

=COUNTIF(A2:A10,"?*")

If not, would you post the count formula that you have.
 
Upvote 0
hello all

i have formulas in cell a2:a10 , there are no values yet
a1 has the count function , a1 always displays the number of cells including the formulas with no values,
how can i get red of this, i want in cell a1 just the count of cell including values not formulas...?

thanks
:)
What kind of data do the formulas return? Text? Numbers? Could be either?

Here's a generic formula:

=SUMPRODUCT(--(A2:A10<>""))
 
Upvote 0
=COUNTA(A10:INDEX(A:A,LOOKUP(2,1/(A2:A10="dual"),ROW(A2:A10))+1))


thanks
Is that the formula you currently have in cell A1?

If the range is completely empty the formula will return 1. That's probaly not what you want, is it?

Try this:

=IF(COUNTIF(A2:A10,"dual"),COUNTA(A10:INDEX(A2:A10,MATCH("dual",A2:A10,0)+1)),"")

Or, using a cell to hold the criteria:

C1 = dual

=IF(COUNTIF(A2:A10,C1),COUNTA(A10:INDEX(A2:A10,MATCH(C1,A2:A10,0)+1)),"")
 
Upvote 0

Forum statistics

Threads
1,224,522
Messages
6,179,293
Members
452,902
Latest member
Knuddeluff

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