Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default zero in cell is counting as one...


Hello smart people.

I have a workbook to track injuries in the workplace. A cell is set
up to calculate the number of injuries from a given year. Here's the
thing;

If there is a zero in the column, it is counting that as one. Here is
the formula: =COUNTA('2005 Log'!Z8:Z200)

Some of the years let me clear the contents of the cells, and that
takes care of it. But some don't let me do that. The cells in
question are check x or no x, no numerical value is to be entered. AND
the zeros won't go away.

This is probably a basic fix, please let it be and please help me.

Thanks AGAIN.

Joanna




--
Frustrated Word User
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default zero in cell is counting as one...

=COUNTA('2005 Log'!Z8:Z200)-COUNTIF(Z8:Z200,0)
--
If my posting was helpful, please click the "Yes" button.

ROCK ON!,

Scott


"Frustrated Word User" wrote:


Hello smart people.

I have a workbook to track injuries in the workplace. A cell is set
up to calculate the number of injuries from a given year. Here's the
thing;

If there is a zero in the column, it is counting that as one. Here is
the formula: =COUNTA('2005 Log'!Z8:Z200)

Some of the years let me clear the contents of the cells, and that
takes care of it. But some don't let me do that. The cells in
question are check x or no x, no numerical value is to be entered. AND
the zeros won't go away.

This is probably a basic fix, please let it be and please help me.

Thanks AGAIN.

Joanna




--
Frustrated Word User

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default zero in cell is counting as one...

So, all you want to count are the X's?

=COUNTIF('2005 Log'!Z8:Z200,"x")

--
Biff
Microsoft Excel MVP


"Frustrated Word User" m
wrote in message news:Frustrated.Word.User.37360b8@officefrustratio n.com...

Hello smart people.

I have a workbook to track injuries in the workplace. A cell is set
up to calculate the number of injuries from a given year. Here's the
thing;

If there is a zero in the column, it is counting that as one. Here is
the formula: =COUNTA('2005 Log'!Z8:Z200)

Some of the years let me clear the contents of the cells, and that
takes care of it. But some don't let me do that. The cells in
question are check x or no x, no numerical value is to be entered. AND
the zeros won't go away.

This is probably a basic fix, please let it be and please help me.

Thanks AGAIN.

Joanna




--
Frustrated Word User



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
Counting the changes in a cell NM Excel Worksheet Functions 9 November 10th 08 09:21 PM
Counting within a cell cellcounting Excel Discussion (Misc queries) 4 October 27th 08 08:33 PM
Counting in a cell Philip Drury Excel Discussion (Misc queries) 8 July 19th 07 03:02 PM
Counting within a cell Jane Excel Worksheet Functions 2 March 31st 05 01:29 AM
Counting In a Cell carl Excel Worksheet Functions 1 November 29th 04 03:03 PM


All times are GMT +1. The time now is 04:00 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"