PC Review


Reply
Thread Tools Rate Thread

count formula problem

 
 
Len
Guest
Posts: n/a
 
      24th Jul 2008
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?
 
Reply With Quote
 
 
 
 
Wigi
Guest
Posts: n/a
 
      24th Jul 2008
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.


--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Len" wrote:

> 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?

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      24th Jul 2008
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


"Len" <(E-Mail Removed)> wrote in message
news:2B130622-8411-48B0-8530-(E-Mail Removed)...
>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?


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to construct a count count formula =?Utf-8?B?Q2hyaXMgSw==?= Microsoft Excel Misc 6 26th May 2007 07:20 PM
Count Formula - Count Ticks =?Utf-8?B?TGl0dGxlQW5u?= Microsoft Excel Misc 2 26th Feb 2007 04:01 PM
Count Formula Problem =?Utf-8?B?UGFwdXR4aQ==?= Microsoft Excel Worksheet Functions 3 30th Mar 2006 01:15 AM
Problem with Count IF Formula =?Utf-8?B?VHJhY2U=?= Microsoft Excel Worksheet Functions 4 6th Mar 2006 08:17 PM
count results of formula, not text in formula Bill Microsoft Excel Discussion 4 8th May 2004 12:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 AM.