Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the COUNT funciton to count cells with values

I have a COUNTIF function that counts only non-zero values.

Here it is:
SUMIF(E$10:E$114,"<0")/COUNTIF(E$10:E$114,"<0")

The problem is that some values are negative while some values are
positive. I also need to count 0 as a value.

Obviously, a regular count function would be fine, except for the fact
that some values for my data set are missing, which ends up counting
empty cells and messing up my running average calculation.

Any help would really be appreciated.

Thanks,
Will


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Using the COUNT funciton to count cells with values

I believe the COUNT counts only numbers (ignores blank cells), so i
should work for you.



--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using the COUNT funciton to count cells with values

Hi Will
try for example the following array formula
=AVERAGE(IF(ISNUMBER(E10:E114),E10:E114))

--
Regards
Frank Kabel
Frankfurt, Germany


I have a COUNTIF function that counts only non-zero values.

Here it is:
SUMIF(E$10:E$114,"<0")/COUNTIF(E$10:E$114,"<0")

The problem is that some values are negative while some values are
positive. I also need to count 0 as a value.

Obviously, a regular count function would be fine, except for the

fact
that some values for my data set are missing, which ends up counting
empty cells and messing up my running average calculation.

Any help would really be appreciated.

Thanks,
Will


---
Message posted from http://www.ExcelForum.com/


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Using the COUNT funciton to count cells with values

Consider using the AVERAGE function. Blanks are ignored.



In article ,
wjsubs wrote:

I have a COUNTIF function that counts only non-zero values.

Here it is:
SUMIF(E$10:E$114,"<0")/COUNTIF(E$10:E$114,"<0")

The problem is that some values are negative while some values are
positive. I also need to count 0 as a value.

Obviously, a regular count function would be fine, except for the fact
that some values for my data set are missing, which ends up counting
empty cells and messing up my running average calculation.

Any help would really be appreciated.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Using the COUNT funciton to count cells with values

Hi
forget this suggestion :-) Simply use
=AVERAGE(E10:E114)

--
Regards
Frank Kabel
Frankfurt, Germany


Frank Kabel wrote:
Hi Will
try for example the following array formula
=AVERAGE(IF(ISNUMBER(E10:E114),E10:E114))


I have a COUNTIF function that counts only non-zero values.

Here it is:
SUMIF(E$10:E$114,"<0")/COUNTIF(E$10:E$114,"<0")

The problem is that some values are negative while some values are
positive. I also need to count 0 as a value.

Obviously, a regular count function would be fine, except for the
fact that some values for my data set are missing, which ends up
counting empty cells and messing up my running average calculation.

Any help would really be appreciated.

Thanks,
Will


---
Message posted from http://www.ExcelForum.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 cells with values x and <y jimbob Excel Discussion (Misc queries) 6 July 5th 06 03:39 PM
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
How do I count cells with non zero values? Ryan Excel Discussion (Misc queries) 1 November 4th 05 11:12 PM
Count Intervals of 2 Numeric values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 12 September 24th 05 10:58 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Excel Worksheet Functions 9 July 31st 05 03:37 AM


All times are GMT +1. The time now is 09:27 AM.

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"