Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
len len is offline
external usenet poster
 
Posts: 53
Default count formula problem

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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 396
Default count formula problem

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?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default count formula 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


"Len" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Discussion (Misc queries) 1 May 3rd 08 10:52 AM
I tried to get around the problem of the pivot table field settingdefaulting to Count instead of Sum by running a macro of change the settingfrom Count to Sum. However, when I tried to run the Macro, I got error messageof run time error 1004, unable Enda80 Excel Programming 0 May 3rd 08 01:03 AM
Count formula problem Major Tomm Excel Worksheet Functions 2 January 24th 07 07:51 PM
Count Formula Problem Paputxi Excel Worksheet Functions 3 March 30th 06 01:15 AM
Problem with Count IF Formula Trace Excel Worksheet Functions 4 March 6th 06 08:17 PM


All times are GMT +1. The time now is 07:44 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"