Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Averaging two ranges on the same column (excluding zeros)

Hello - I have a range of numbers (formatted as %) that I am trying to
average. All the values are on one row. However, the numbers are broken into
two ranges, since took two separate averages of the sub-totals using Excel
2007's "AverageIF" function.

My problem is that I want to average the two ranges that appear on the same
column, but since one of the cells contains the sub-total, I cannot use a
contigous range. I need to average two ranges, excluding zero values.

Essentially, something like this:
=AVERAGEIF(A1:A24,"<0")
AND
=AVERAGEIF(A26:A30,"<0")


Please assist.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Averaging two ranges on the same column (excluding zeros)

Essentially, something like this:
=AVERAGEIF(A1:A24,"<0")
AND
=AVERAGEIF(A26:A30,"<0")


So, what's in A25? Your subtotal?

Try this:

=(SUM(A1:A30)-A25)/(COUNTIF(A1:A24,"<0")+COUNTIF(A26:A30,"<0"))


--
Biff
Microsoft Excel MVP


"NoviceUser" wrote in message
...
Hello - I have a range of numbers (formatted as %) that I am trying to
average. All the values are on one row. However, the numbers are broken
into
two ranges, since took two separate averages of the sub-totals using Excel
2007's "AverageIF" function.

My problem is that I want to average the two ranges that appear on the
same
column, but since one of the cells contains the sub-total, I cannot use a
contigous range. I need to average two ranges, excluding zero values.

Essentially, something like this:
=AVERAGEIF(A1:A24,"<0")
AND
=AVERAGEIF(A26:A30,"<0")


Please assist.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Averaging two ranges on the same column (excluding zeros)

"data" is a defined name range A1:A30 no quotes

=AVERAGE(IF((ROW(data)<ROW(A25))*(data<0),data))

ctrl+shift+enter, not just enter


"NoviceUser" wrote:

Hello - I have a range of numbers (formatted as %) that I am trying to
average. All the values are on one row. However, the numbers are broken into
two ranges, since took two separate averages of the sub-totals using Excel
2007's "AverageIF" function.

My problem is that I want to average the two ranges that appear on the same
column, but since one of the cells contains the sub-total, I cannot use a
contigous range. I need to average two ranges, excluding zero values.

Essentially, something like this:
=AVERAGEIF(A1:A24,"<0")
AND
=AVERAGEIF(A26:A30,"<0")


Please assist.

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
Averaging, but excluding zeros Tami Excel Worksheet Functions 5 August 11th 09 01:47 AM
Averaging numbers in a column while excluding blank spaces and zer c. murphy Excel Worksheet Functions 4 March 3rd 09 03:23 AM
averaging separate cells in excel excluding 0 values Hopless & Challenged Excel Discussion (Misc queries) 2 July 9th 08 10:13 AM
Averaging excluding blanks--Multiple Tabs DaS Excel Worksheet Functions 2 June 17th 08 05:03 PM
Averaging excluding min and max numbers n_gineer Excel Worksheet Functions 3 January 12th 06 03:32 PM


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