Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Average of cell values - Ignore if 0

Hi all,

I have a spreadsheet with 7 calculations in, from columns F to L. Tha
calculations are "=G36-G40". The results can be variable that have values
greater than 0 in.
What i want to do is to get the average value of the cells with a value
greater than 0.

1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00

The above should give me an average of 1, 056.66

Any help would be much appreciated.

--
Les
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default Average of cell values - Ignore if 0

Hi Les

One way among several:

=SUM(F1:L1)/COUNTIF(F1:L1,""&0)

Note that you've excluded negative numbers. Change to "<"&0 if you change
your mind.

HTH. Best wishes Harald


"Les" skrev i melding
...
Hi all,

I have a spreadsheet with 7 calculations in, from columns F to L. Tha
calculations are "=G36-G40". The results can be variable that have values
greater than 0 in.
What i want to do is to get the average value of the cells with a value
greater than 0.

1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00

The above should give me an average of 1, 056.66

Any help would be much appreciated.

--
Les



  #3   Report Post  
Posted to microsoft.public.excel.programming
Les Les is offline
external usenet poster
 
Posts: 240
Default Average of cell values - Ignore if 0

Thanks Harald, Much appreciated
--
Les


"Harald Staff" wrote:

Hi Les

One way among several:

=SUM(F1:L1)/COUNTIF(F1:L1,""&0)

Note that you've excluded negative numbers. Change to "<"&0 if you change
your mind.

HTH. Best wishes Harald


"Les" skrev i melding
...
Hi all,

I have a spreadsheet with 7 calculations in, from columns F to L. Tha
calculations are "=G36-G40". The results can be variable that have values
greater than 0 in.
What i want to do is to get the average value of the cells with a value
greater than 0.

1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00

The above should give me an average of 1, 056.66

Any help would be much appreciated.

--
Les




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default Average of cell values - Ignore if 0

Apologies. Negative values will affect the sum but not the count. Change to

=SUMIF(F1:L1,""&0)/COUNTIF(F1:L1,""&0)

Best wishes Harald

"Les" skrev i melding
...
Thanks Harald, Much appreciated
--
Les


"Harald Staff" wrote:

Hi Les

One way among several:

=SUM(F1:L1)/COUNTIF(F1:L1,""&0)

Note that you've excluded negative numbers. Change to "<"&0 if you
change
your mind.

HTH. Best wishes Harald


"Les" skrev i melding
...
Hi all,

I have a spreadsheet with 7 calculations in, from columns F to L. Tha
calculations are "=G36-G40". The results can be variable that have
values
greater than 0 in.
What i want to do is to get the average value of the cells with a value
greater than 0.

1049.96 1049.96 1083.46 1049.96 1049.96 0.00 0.00

The above should give me an average of 1, 056.66

Any help would be much appreciated.

--
Les






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 want a formula to ignore text values in cell references Russellrupert New Users to Excel 3 January 11th 12 10:15 PM
MIN & AVERAGE ignore 0 Mike New Users to Excel 12 November 19th 09 04:35 PM
Ignore text but count values in same cell TEK Excel Discussion (Misc queries) 3 January 10th 09 03:11 PM
How do I ignore cell values of zero? cenendra Excel Worksheet Functions 2 February 19th 08 06:02 PM
ignore MAX and MIN values in a set to calculate average Dave F[_2_] Excel Discussion (Misc queries) 5 October 16th 07 06:07 PM


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