Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KevinE
 
Posts: n/a
Default Average from 2 unsorted lists


Hello all,

I would like a formula that would find an average from two unsorted
lists.
One containing 12 months data and the other 3 months.


[a1]John [b1]26 [C1]Jack [D1]14
[a2]Fred [b2]21 [C2]John [D2]11
[a3]Jack [b3]32 [C3]Pete [D3]15
[a4]Pete [b4]24 [C4]Fred [D4]9

The averages should work out as:
John 18.5
Fred 15.0
Jack 23.0
Pete 19.5

many thanks for any help.


--
KevinE
------------------------------------------------------------------------
KevinE's Profile: http://www.excelforum.com/member.php...nfo&userid=525
View this thread: http://www.excelforum.com/showthread...hreadid=395064

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

If each name appears in each list only once

=(SUMPRODUCT(--(A1:A4="John")*B1:B4)+SUMPRODUCT(--(C1:C4="John")*D1:D4))/2

If John can appear more than once per list

=(SUMPRODUCT(--(A1:A4="John")*B1:B4)+SUMPRODUCT(--(C1:C4="John")*D1:D4))/=(SUMPRODUCT(--(A1:A4="John"))+SUMPRODUCT(--(C1:C4="John"))


"KevinE" wrote:


Hello all,

I would like a formula that would find an average from two unsorted
lists.
One containing 12 months data and the other 3 months.


[a1]John [b1]26 [C1]Jack [D1]14
[a2]Fred [b2]21 [C2]John [D2]11
[a3]Jack [b3]32 [C3]Pete [D3]15
[a4]Pete [b4]24 [C4]Fred [D4]9

The averages should work out as:
John 18.5
Fred 15.0
Jack 23.0
Pete 19.5

many thanks for any help.


--
KevinE
------------------------------------------------------------------------
KevinE's Profile: http://www.excelforum.com/member.php...nfo&userid=525
View this thread: http://www.excelforum.com/showthread...hreadid=395064


  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Assume you have the unique list of names in A10:A13

In B10 enter this formula using the key combo of CTRL,SHIFT,ENTER:

=AVERAGE(IF(A$1:A$4=A10,B$1:B$4,IF(C$1:C$4=A10,D$1 :D$4)))

Copy down to B13

Biff

"KevinE" wrote in
message ...

Hello all,

I would like a formula that would find an average from two unsorted
lists.
One containing 12 months data and the other 3 months.


[a1]John [b1]26 [C1]Jack [D1]14
[a2]Fred [b2]21 [C2]John [D2]11
[a3]Jack [b3]32 [C3]Pete [D3]15
[a4]Pete [b4]24 [C4]Fred [D4]9

The averages should work out as:
John 18.5
Fred 15.0
Jack 23.0
Pete 19.5

many thanks for any help.


--
KevinE
------------------------------------------------------------------------
KevinE's Profile:
http://www.excelforum.com/member.php...nfo&userid=525
View this thread: http://www.excelforum.com/showthread...hreadid=395064



  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

KevinE -

The first formula I gave you works IF AND ONLY IF each name appears twice.
Unless that is an ironclad guarantee, use the second formula



"Duke Carey" wrote:

If each name appears in each list only once

=(SUMPRODUCT(--(A1:A4="John")*B1:B4)+SUMPRODUCT(--(C1:C4="John")*D1:D4))/2

If John can appear more than once per list

=(SUMPRODUCT(--(A1:A4="John")*B1:B4)+SUMPRODUCT(--(C1:C4="John")*D1:D4))/=(SUMPRODUCT(--(A1:A4="John"))+SUMPRODUCT(--(C1:C4="John"))


"KevinE" wrote:


Hello all,

I would like a formula that would find an average from two unsorted
lists.
One containing 12 months data and the other 3 months.


[a1]John [b1]26 [C1]Jack [D1]14
[a2]Fred [b2]21 [C2]John [D2]11
[a3]Jack [b3]32 [C3]Pete [D3]15
[a4]Pete [b4]24 [C4]Fred [D4]9

The averages should work out as:
John 18.5
Fred 15.0
Jack 23.0
Pete 19.5

many thanks for any help.


--
KevinE
------------------------------------------------------------------------
KevinE's Profile: http://www.excelforum.com/member.php...nfo&userid=525
View this thread: http://www.excelforum.com/showthread...hreadid=395064


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
plotted Average Micayla Bergen Charts and Charting in Excel 4 July 15th 05 12:13 PM
What is this kind of average called? havocdragon Excel Worksheet Functions 3 June 24th 05 05:10 PM
Average Formula with Criteria PW11111 Excel Discussion (Misc queries) 1 June 10th 05 02:22 PM
AVERAGE and STDEV functions with logic t-rung Excel Worksheet Functions 1 May 26th 05 07:11 PM
Average the Last Five Cells in a Column Warrior Princess Excel Worksheet Functions 3 March 16th 05 02:12 PM


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