#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default COUNT question

Hi,

In a range, B2:B23, I would like to count how many values are greater than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.


Currently I have:

IF ( (CountIFs(B2:B23),"0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNT question

=IF(ISODD(COUNTIF(B2:B23,"0")),"Unfilled Cell Present",COUNT(B2:B23)/2)


"Gerard Sanchez" wrote:

Hi,

In a range, B2:B23, I would like to count how many values are greater than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.


Currently I have:

IF ( (CountIFs(B2:B23),"0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 46
Default COUNT question

Thank you Teethless mama (lol!). It worked!


"Teethless mama" wrote in message
...
=IF(ISODD(COUNTIF(B2:B23,"0")),"Unfilled Cell Present",COUNT(B2:B23)/2)


"Gerard Sanchez" wrote:

Hi,

In a range, B2:B23, I would like to count how many values are greater
than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.


Currently I have:

IF ( (CountIFs(B2:B23),"0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default COUNT question

You're Welcome!


"Gerard Sanchez" wrote:

Thank you Teethless mama (lol!). It worked!


"Teethless mama" wrote in message
...
=IF(ISODD(COUNTIF(B2:B23,"0")),"Unfilled Cell Present",COUNT(B2:B23)/2)


"Gerard Sanchez" wrote:

Hi,

In a range, B2:B23, I would like to count how many values are greater
than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.


Currently I have:

IF ( (CountIFs(B2:B23),"0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 39
Default COUNT question

Try this:

=IF(mod((CountIf(B2:B23),"0"),2)=0,CountIf(B2:B23 )/2,"Unfilled Cell Present")



Gerard Sanchez wrote:
Hi,

In a range, B2:B23, I would like to count how many values are greater than
zero (0).

If count is an odd number, then "Unfilled Cell Present"
If count if even, then display count divided by 2.

Currently I have:

IF ( (CountIFs(B2:B23),"0")=ODD, "Unfilled Cell Present",
(Count(B2:B23))/2 ))

Problem is the ODD function here is not right . . . I think.

Anyone?


--
Message posted via http://www.officekb.com



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 question gurmy77 Excel Worksheet Functions 3 November 11th 08 02:38 AM
COUNT QUESTION JAY Excel Discussion (Misc queries) 2 September 30th 08 04:59 PM
Count Question Secret Squirrel Excel Discussion (Misc queries) 4 August 31st 07 04:15 AM
{=COUNT(IF(etc))} question Ben Karlin Excel Discussion (Misc queries) 2 May 26th 06 11:46 PM
Count Question Grant Excel Worksheet Functions 2 December 9th 05 04:51 PM


All times are GMT +1. The time now is 06:56 PM.

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"