+ Reply to Thread
Results 1 to 4 of 4

Formula to count number of repetitions in a table

  1. #1
    Registered User
    Join Date
    12-05-2011
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    46

    Question Formula to count number of repetitions in a table

    I need Formula to count number of repetitions in a table
    FOr the example, let's say it is LOTTO

    1 5 14 40 43
    10 13 33 45 48
    3 5 14 20 22
    20 22 25 48 50
    5 7 14 40 41
    9 10 13 33 45
    2 3 5 23 27
    etc


    Example Result
    How many times 20 and 22 show up in the same line 2
    How many times 5 and 14 show up in the same line 3
    How many times 10, 13 and 33 show up in the same line 2

    I have attached a file Loto.xlsx
    Please help! I was using countif and Hlookup but I'm messing it up.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Formula to count number of repetitions in a table

    hi virtualdark. i suggest you put the individual numbers in the cells instead of putting them in H5. say 20 & 22 are in I5 & J5, then do this array formula in N5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    i allowed a possibility of 5 numbers. if you want to do it manually without separating the numbers, then it looks like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    change those in red. 1st one referring to the number combinations you want. 2nd one is how many numbers are there

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    12-05-2011
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Formula to count number of repetitions in a table

    Thank you... the first one works...
    The one with:
    =SUM(IF(FREQUENCY(IF(ISNUMBER(MATCH($A$1:$E$7,{20,22},0)),ROW($A$1:$E$7)),ROW($A$1:$E$7))=2,1))
    doesn't! Do you know why?

  4. #4
    Registered User
    Join Date
    12-05-2011
    Location
    Porto, Portugal
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: Formula to count number of repetitions in a table

    Haaaa... it didn't work with this example, But I have tried in my file and it works... soooo... it's solved :-D
    Thank you Benishiryo :-D

+ 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. Count repetitions of occurences of value
    By TRGert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 12:35 AM
  2. Counting number of repetitions of a number in a column?
    By festacc77 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2013, 11:13 AM
  3. Counting number of repetitions of a number in a column?
    By webazoid in forum Excel General
    Replies: 5
    Last Post: 12-21-2011, 01:33 PM
  4. number repetitions highlighted
    By librababy in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 11-27-2010, 10:28 PM
  5. compare and count value repetitions
    By ElmerS in forum Excel General
    Replies: 6
    Last Post: 02-10-2010, 05:30 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