+ Reply to Thread
Results 1 to 8 of 8

average for unique values

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    average for unique values

    Hello. If I have a list of customers with years for example customer 1, year 1-3....customer 2, year 1-2....etc. How can I average amounts for each customer?

    Example: A1:A3= Customer 1 A1:A3= 1, 2, 3 (years)

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: average for unique values

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: average for unique values

    Hahaha. That works but I need the average for each customer and not all customers have the same # of years and there are 1000's of customers. I need a conditional statement I think.

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: average for unique values


  5. #5
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: average for unique values

    I've posted an example. I need a formula that will give me those average values in 1000's of rows.
    Attached Files Attached Files

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: average for unique values

    In F5 and copy down.

    =IF(C6<>C5,AVERAGEIF($C$5:$C$14,C5,$E$5:$E$14),"")

    C
    D
    E
    F
    4
    Customer Year #
    5
    1
    1
    1
    6
    1
    2
    2
    7
    1
    3
    3
    2
    8
    2
    1
    4
    9
    2
    2
    1
    2.5
    10
    3
    1
    2
    11
    3
    2
    3
    12
    3
    3
    4
    13
    3
    4
    1
    14
    3
    5
    2
    2.4
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: average for unique values

    Another method.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Re: average for unique values

    @alkey. That worked perfectly. Thanks.
    Last edited by ammartino44; 09-16-2014 at 05:45 PM.

+ 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. [SOLVED] A formula to return the average of unique values only
    By simonlblea in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-06-2023, 08:25 AM
  2. Copy and paste unique values from column, and use countif function to calculate average
    By michaeldaniel25 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2013, 07:56 AM
  3. [SOLVED] count unique values based on unique values
    By neetu.aggarwal in forum Excel General
    Replies: 13
    Last Post: 10-23-2012, 04:00 AM
  4. Replies: 0
    Last Post: 03-08-2012, 12:18 PM
  5. scaling an exisiting macro for unique values of X for Unique values of Y.
    By widodude in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2011, 09:33 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