+ Reply to Thread
Results 1 to 11 of 11

Repetition

  1. #1
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Repetition

    I have four columns where each cell in these columns have numbers.
    I would like to know which lines have the same numbers, and which line is the line that repeats, and how many reps I have in four columns.

    see Attachment
    Attached Files Attached Files
    Last edited by marreco; 04-29-2012 at 06:57 PM.
    "No xadrez nem sempre a menor dist?ncia entre dois pontos ? uma linha reta" G. Kasparov.

    If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select b from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repetition

    so are you saying that you are ONLY looking to find instances where all cells in a row match?...row 2, row 6 and row 11?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Repetition

    yes!!
    thank you!!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repetition

    im still working on how to put all instances of a match in F2, but i added the following to a helper column in E to give me row numbers. you could use this with a filter to find your matches...

    =IF(SUM(A2:D2)/COUNT(A2:D2)=D2,D2&" @ Row "&ROW(),"")

    Modify this if you want, it returns an answer that gives you..."1 @ Row 2"

  5. #5
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Repetition

    I found very interesting but I do not know how to continue.

  6. #6
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Repetition

    Você consegue fazer isso pelo VBA.

    Acho que eu não informei direito.

    os números da linha A1:D1 tem que ser igual a outras linhas.

    os números precisam estar na mesma ordem.



    linha 1.....1-2-3-2 This*line 1*is repeated*and 3

    linha 2.....2-2-3-1

    linha 3.....1-2-3-2 This*line 1*is repeated*and 3

    linha 4.....6-1-3-2

    linha 5.....5-2-3-2

    linha 5.....1-6-3-2

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repetition

    ok try the attached. If you need to move stuff around, make sure you adjust the references in the indirect() part of the calcs. you can hide what you dont need to be seen...
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,521

    Re: Repetition

    Try the attached

    Repetition.xlsm

  9. #9
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Repetition

    something is not right.
    try to put these numbers in line 6

    2 3 4 5
    then in row 3 and 6 should the line shown in their formula

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Repetition

    ok i did...and it worked fine. gave 2 rows of duplicates...row 2 and row 11

    you said it needs to check ONLY if all numbers in that row were the same, thats what it does

  11. #11
    Valued Forum Contributor marreco's Avatar
    Join Date
    07-02-2011
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    1,862

    Re: Repetition

    jindon, I downloaded attachment, was very good, thank you very much!

    Thank you all

+ 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