count formula problem

  • Thread starter Thread starter Len
  • Start date Start date
L

Len

I have a formula in excell to count the amount of cells that contain numbers.
I use this formula =COUNT(A1:A90) and if the count was 30 I would get 31. I
have two other sheets in the same file where the calculations are correct.

The only way I can get the correct calculation is to do this formula
=COUNT(A1:A90)-1

Any ideas?
 
Is there a cell that you think is text, but in fact is a number?

Can you restrict your range of cells to a smaller range, hence see whether
the formula is correct or not? Do this continuously until you get the cell
that is causing the divergence. Perhaps merged cells could be a problem.
 
See if this helps you spot the "extra" number. Select the cells from A1 to
A90 by typing A1:A90 in the Name Box (the blank box to the left of the
Formula Bar), click Format/ConditionalFormatting from Excel's menu bar,
select "Formula Is" from the first drop-down box, copy/paste this...

=COUNT(A1)=1

into the blank field next to it, click the Format button and select a color
from the Patterns tab, then OK your way back to the worksheet. All the
numbers being counted by the formula you posted will be highlighted in the
color you selected. Just look at each of them to see what is being counted
that you did not think should be counted. When you are done, you can go back
to the Conditional Formatting dialog box and Delete the conditional format.

Rick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top