+ Reply to Thread
Results 1 to 4 of 4

Counting equal numbers

  1. #1
    Registered User
    Join Date
    03-31-2011
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2007
    Posts
    19

    Counting equal numbers

    Hi!

    I have a range with many equal numbers, and I want to know how many I have of each one.

    F.ex.
    1
    1
    2
    3
    1
    3
    3
    3
    Result
    3

    Which formula can I use?

    Thanks in advance!
    Last edited by nitrone; 10-06-2011 at 08:22 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Counting equal numbers

    Assuming list is in A1:A8 try:

    =SUMPRODUCT((A1:A8<>"")/COUNTIF(A1:A8,A1:A8&""))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Counting equal numbers

    Try following array formula ( commit with Ctrl+Shift+Enter)

    =SUM(IF(MATCH(List1, List1, 0)>=(ROW(List1)-MIN(ROW(List1))+1), 1, 0))

    where List1 is your range

  4. #4
    Registered User
    Join Date
    03-31-2011
    Location
    Stavanger, Norway
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Counting equal numbers

    Thank you so much NBVC!

    It worked!

+ 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