+ Reply to Thread
Results 1 to 6 of 6

Count average number of times unique values appear

  1. #1
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Count average number of times unique values appear

    Hey all,

    I am looking to average the number of times unique values appear in a list using a formula. For example, if there are three numbers in the list: 1,2,3, and the number one shows up 1 time, number two should up three times, and number three shows up two times, the average number of instances of each value would be 2.

    I have included an example in the attached.

    One of the challenges is that the list in my actual document is quite long, and you don't know how many unique instances there will be, or how many times each will be duplicated.

    Cheers,
    B
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count average number of times unique values appear

    Ues this in C3 copied down:

    =IF(COUNTIF($B$3:$B$15,$B3)>COUNTIF($B$3:$B3,$B3),"",COUNTIF($B$3:$B$15,$B3))

    and then average the whole column.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count average number of times unique values appear

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  4. #4
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Count average number of times unique values appear

    Hi Ali,

    thanks for the response. Do you know if it is possible to solve the problem with one formula based on either of the two columns that are there? Adding a column to the file I am working on will be a challenge because the data is a bit of a mess, and I need the "instance" column to be there.

    B

  5. #5
    Registered User
    Join Date
    12-23-2013
    Location
    Calgary, Alberta
    MS-Off Ver
    Excel 2010
    Posts
    85

    Re: Count average number of times unique values appear

    Nevermind! Got it from what you posted!

    Thanks!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Count average number of times unique values appear

    You're welcome!

+ 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. Replies: 6
    Last Post: 04-04-2017, 04:30 PM
  2. [SOLVED] Count unique names only, not the number of times it appears
    By amyp22x3 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-04-2013, 01:32 PM
  3. [SOLVED] Count unique names only, not the number of times it appears
    By amyp22x3 in forum Excel General
    Replies: 7
    Last Post: 04-04-2013, 11:37 AM
  4. Help with using VBA to count number of times different values appear in a column
    By compto in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-06-2012, 12:47 PM
  5. Sort Unique Values in Combobox By Number Of Times Used In Range
    By trenars in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2012, 10:19 AM
  6. [SOLVED] Count number of times two columns have desired values
    By Gavin Deveau in forum Excel General
    Replies: 2
    Last Post: 06-16-2006, 01:35 PM
  7. [SOLVED] Can an Array formula count unique values and report no. of times for each?
    By Father Guido in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-21-2005, 02:06 AM

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