+ Reply to Thread
Results 1 to 55 of 55

Average from 2 unsorted lists

  1. #1
    Registered User
    Join Date
    09-06-2003
    Posts
    3

    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.

  2. #2
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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. #3
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  4. #4
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  5. #5
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  6. #6
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  7. #7
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  8. #8
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  9. #9
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  10. #10
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  11. #11
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  12. #12
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  13. #13
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  14. #14
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  15. #15
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  16. #16
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  17. #17
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  18. #18
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  19. #19
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  20. #20
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  21. #21
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  22. #22
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  23. #23
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  24. #24
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  25. #25
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  26. #26
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  27. #27
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  28. #28
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  29. #29
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  30. #30
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  31. #31
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  32. #32
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  33. #33
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  34. #34
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  35. #35
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  36. #36
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  37. #37
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  38. #38
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  39. #39
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  40. #40
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  41. #41
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  42. #42
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  43. #43
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  44. #44
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  45. #45
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  46. #46
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  47. #47
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  48. #48
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  49. #49
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  50. #50
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  51. #51
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  52. #52
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    > >
    > >


  53. #53
    Biff
    Guest

    Re: Average from 2 unsorted lists

    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" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >




  54. #54
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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
    >
    >


  55. #55
    Duke Carey
    Guest

    RE: Average from 2 unsorted lists

    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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1