Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default finding average - Urgent

Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default finding average - Urgent

Use this in C1
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/COUNTIF($A$1:$A$6,A1)
and copy down
This will give you the average for the corresponding value in Col A

"Vicky" wrote:

Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default finding average - Urgent

Oh! it is returning me the Zero value, i mean to say the column "B" has even
the zero value in that, but when we find the average it should ignore "zero"

Can you dig more into that

thanks for your time!!

Vicky

"Sheeloo" wrote:

Use this in C1
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/COUNTIF($A$1:$A$6,A1)
and copy down
This will give you the average for the corresponding value in Col A

"Vicky" wrote:

Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default finding average - Urgent

Try
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/SUMPRODUCT(--($A$1:$A$6=A1),--($B$1:$B$60))

"Vicky" wrote:

Oh! it is returning me the Zero value, i mean to say the column "B" has even
the zero value in that, but when we find the average it should ignore "zero"

Can you dig more into that

thanks for your time!!

Vicky

"Sheeloo" wrote:

Use this in C1
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/COUNTIF($A$1:$A$6,A1)
and copy down
This will give you the average for the corresponding value in Col A

"Vicky" wrote:

Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default finding average - Urgent

Genius sheeloo, it worked

Thanks a lot!!!!!
Vicky

"Sheeloo" wrote:

Try
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/SUMPRODUCT(--($A$1:$A$6=A1),--($B$1:$B$60))

"Vicky" wrote:

Oh! it is returning me the Zero value, i mean to say the column "B" has even
the zero value in that, but when we find the average it should ignore "zero"

Can you dig more into that

thanks for your time!!

Vicky

"Sheeloo" wrote:

Use this in C1
=SUMIF($A$1:$A$6,A1,$B$1:$B$6)/COUNTIF($A$1:$A$6,A1)
and copy down
This will give you the average for the corresponding value in Col A

"Vicky" wrote:

Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 915
Default finding average - Urgent

Vicky wrote:
Please some one help me out in finding the average
Below we have 2 colums A and B, it looks like this
column A Column B
A012 35
A013 50
A014 25
A012 0
A013 0
A014 40
I want the average of the column B for the particular numbers A012, A013, A014


There are a couple ways to interpret your requirements.

One way: the average of B (having A with any value in A012, A013, A014).
Enter as an array* formula:

=AVERAGE(IF(A1:A99={"A012","A013","A014"},B1:B99))


Another way: the average of B (grouped by A) where A is A012, A013,
A014. Also an array* formula:

=AVERAGE(IF($A$1:$A$99="A012",$B$1:$B$99))

etc.

*Commit array formula by pressing Ctrl+Shift+Enter, not just Enter.
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
FINDING TOP 20 (URGENT PLEASE) FARAZ QURESHI Excel Discussion (Misc queries) 5 July 7th 08 09:34 AM
Finding the Average Mike H. Excel Discussion (Misc queries) 4 March 3rd 08 05:41 PM
I need help finding an average JHL Excel Discussion (Misc queries) 3 June 9th 07 07:59 PM
Finding a count above average Don Excel Worksheet Functions 1 March 30th 07 10:47 PM
Finding the average time Gadgets Excel Worksheet Functions 5 July 31st 06 09:06 PM


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