Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Another which count function?

Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Another which count function?

=COUNTIF(A1:E1,"0")+COUNTIF(K1:O1,"0")+COUNTIF(U 1:Y1,"0")

Tyro



"Johnny1r" wrote in message
. ..
Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Another which count function?

Try this:

=COUNTIF(A1:E1,"0")+COUNTIF(K1:O1,"0")+COUNTIF(U 1:Y1,"0")

--
Biff
Microsoft Excel MVP


"Johnny1r" wrote in message
. ..
Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default Another which count function?

Thans again fella's it worked like a charm. I never thought about just
adding them together, dah!! You guys are great Thanks again John :)

T. Valko wrote:

Try this:

=COUNTIF(A1:E1,"0")+COUNTIF(K1:O1,"0")+COUNTIF(U 1:Y1,"0")


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Another which count function?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Johnny1r" wrote in message
...
Thans again fella's it worked like a charm. I never thought about just
adding them together, dah!! You guys are great Thanks again John :)

T. Valko wrote:

Try this:

=COUNTIF(A1:E1,"0")+COUNTIF(K1:O1,"0")+COUNTIF(U 1:Y1,"0")






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Another which count function?

Try this:

=SUM(COUNTIF(INDIRECT({"A1:E1","K1:O1","U1:Y1"})," 0"))


"Johnny1r" wrote:

Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Another which count function?

=SUMPRODUCT(--(CHOOSE({1;2;3},A1:E1,K1:O1,U1:Y1)0))


--
Biff
Microsoft Excel MVP


"Teethless mama" wrote in message
...
Try this:

=SUM(COUNTIF(INDIRECT({"A1:E1","K1:O1","U1:Y1"})," 0"))


"Johnny1r" wrote:

Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Another which count function?

Alternative approach....

=SUMPRODUCT((A1:E10)+(K1:O10)+(U1:Y10))

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"Johnny1r" wrote in message
. ..
Hello again and thanks for the fast response to my last question. I
have another question that I have been trying to find an answer for a
couple of years now, maybe you can help. I have a row of numbers A:1
to Y:1 that I have copied and pasted as values from another sheet in my
workbook. Some of these cells are a result of formulas so when I paste
as values those that had no results show up as 0's, this is fine. My
problem is I would like to count the number of cells of 3 ranges that
have a value 0. I hide the 0's but they still count Some cells are
blank some have 0's and some have numbers. I only want to count the
cells with numbers in those 3 ranges together. The ranges are a1:e1
and k1:o1 and u1:y1. I am using Excell 2000. In other words how many
cells in those 3 ranges have a value 0. Thanks John :)



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
Count If Function benny Excel Worksheet Functions 10 October 4th 07 02:45 PM
Count function L.T. Excel Discussion (Misc queries) 4 January 20th 07 03:40 AM
Count Function PABHL Excel Discussion (Misc queries) 6 June 8th 06 07:08 PM
Count Function Portuga Excel Discussion (Misc queries) 4 May 31st 06 02:08 PM
which count function? y_not Excel Discussion (Misc queries) 0 March 22nd 06 07:35 AM


All times are GMT +1. The time now is 01:26 AM.

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

About Us

"It's about Microsoft Excel"