+ Reply to Thread
Results 1 to 10 of 10

Average duplicates

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Albuquerque
    MS-Off Ver
    Excel 2010
    Posts
    24

    Average duplicates

    I have a list of 7 cars, a drop down list where I can pick the color and an additional column where I can input the top speed.

    On the bottom I have a grid made for average. What I want those green cells to do is to automatically show the name of the color and average they're speed.

    Any advice?

    Happy holidays!
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Average duplicates

    A Pivot Table will do the job for you in 5 seconds

  3. #3
    Registered User
    Join Date
    10-29-2013
    Location
    Albuquerque
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average duplicates

    Want to show me how to do it?
    Never used a pivot table b4

  4. #4
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Average duplicates

    Hi

    Used this array formula to bring colour names only one time. Used helper column there too
    =IFERROR(INDEX($B$3:$B$9,SMALL(IF($D$3:$D$9=1,$A$3:$A$9,""),ROW(A1))),"")

    To average the colours
    =IFERROR(AVERAGEIF($B$3:$B$9,B11,$C$3:$C$9),0)
    Attached Files Attached Files
    Appreciate the help? CLICK *

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Average duplicates

    Quote Originally Posted by kraut View Post
    Want to show me how to do it?
    Never used a pivot table b4
    Click a cell on your data - Insert ribbon - Select Pivot Table - Place the PT in the same sheet - Select "colors" as row labels and "speed" as Totals. Change the Field value settings (right click)of Totals to "average"

  6. #6
    Registered User
    Join Date
    10-29-2013
    Location
    Albuquerque
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average duplicates

    AZ-XL,

    Thanks a lot! That's exactly the formulas I was looking for!!

  7. #7
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Average duplicates

    Quote Originally Posted by kraut View Post
    AZ-XL,

    Thanks a lot! That's exactly the formulas I was looking for!!
    You are welcome.

  8. #8
    Registered User
    Join Date
    10-29-2013
    Location
    Albuquerque
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average duplicates

    Pepe,

    Thanks to you too. I couldn't figure it out, but I'll do some practice with the Pivot Table

    Happy 2014!

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Average duplicates

    And you'll see that in this case it's much much easier than formulas

  10. #10
    Registered User
    Join Date
    10-29-2013
    Location
    Albuquerque
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Average duplicates

    Quote Originally Posted by AZ-XL View Post
    Hi

    Used this array formula to bring colour names only one time. Used helper column there too
    =IFERROR(INDEX($B$3:$B$9,SMALL(IF($D$3:$D$9=1,$A$3:$A$9,""),ROW(A1))),"")

    To average the colours
    =IFERROR(AVERAGEIF($B$3:$B$9,B11,$C$3:$C$9),0)
    Hello AZ-XL,

    When you have some time could you please explain me how did you come out with the row formula?
    Reason I ask is because I would like to change the CAR# from 1 to 7, to 101 to 107 or other numbers. And when I change those numbers the formula crushes.

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Macro to Calculate Average excluding Duplicates
    By dani_n88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2012, 07:55 PM
  2. [SOLVED] Average only the 1st item when there are duplicates in a list
    By JungleJme in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-08-2012, 06:18 AM
  3. Weighted rank- if duplicates rank the average
    By vlady in forum Excel General
    Replies: 3
    Last Post: 02-28-2012, 09:17 PM
  4. Replies: 3
    Last Post: 03-09-2011, 07:00 PM
  5. [SOLVED] Need Assistance: Average/Remove Duplicates
    By DigitalGM in forum Excel General
    Replies: 3
    Last Post: 06-22-2005, 08:05 PM

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