Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default AVERAGE a range in a column if another column's range equals a val

AVERAGE a range in a column if a a value in a different column equals "1"
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default AVERAGE a range in a column if another column's range equals a val

Have you tried SUMIF / COUNTIF ?

hth,
jay


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default AVERAGE a range in a column if another column's range equals a val

Try this array formula** :

=AVERAGE(IF(A1:A10=1,B1:B10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"bob$" wrote in message
...
AVERAGE a range in a column if a a value in a different column equals "1"



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default AVERAGE a range in a column if another column's range equals a val

Hi,

In 2007:

=AVERAGEIF(D1:D4,1,A1:A4)

Where D1:D4 contain the numbers you are looking for and you want to average
A1:A4.


In 2003:

=SUMIF(A1:A8,1,B1:B8)/COUNTIF(A1:A8,1)

in this case the 1's are in column A and the numbers you want to average in B.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"bob$" wrote:

AVERAGE a range in a column if a a value in a different column equals "1"

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
COUNTIF a value within a range equals any value in an array/list sweens319 Excel Worksheet Functions 14 September 28th 07 11:08 PM
Formula to take average from column range matching another dmasch Excel Discussion (Misc queries) 3 October 24th 06 02:27 PM
if a:a (range) equals january and c:c equals gas then add g:g ($) BCOz Excel Worksheet Functions 4 December 29th 05 07:40 PM
If statement where the logical test is a range that equals a word Steve o Excel Worksheet Functions 8 June 27th 05 02:43 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


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