+ Reply to Thread
Results 1 to 7 of 7

Find result what is times of value of repeat for same repeated values

  1. #1
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Find result what is times of value of repeat for same repeated values

    Dear expert i have country name in column a:a

    i want find the occurance of country name in column a result in column b as values 1 for one tiime
    2 for second repeat 3 for thrid repeat

    for e.g if usa repeat first time in column a result in column b as 1
    if usa repeat second time in 5 th row result in column b 5th row as 2
    if usa repeat third time in 12 th row result in column b 12 th row as 3

    find the attachment
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Find result what is times of value of repeat for same repeated values

    any buddy help on this?

  3. #3
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Find result what is times of value of repeat for same repeated values

    try
    Please Login or Register  to view this content.
    You did ask this in the programming section of the forum, but probably easier to just enter
    =COUNTIF($A$2:A2,A2)
    in B2 and fill down.
    Last edited by kalak; 08-01-2013 at 10:15 PM.

  4. #4
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Find result what is times of value of repeat for same repeated values

    Dude It works perfectly but
    I want change on Same code work for "value not repeat more than once " result as "O"



    Dim c As Range
    With CreateObject("scripting.dictionary")
    For Each c In Range("A1").CurrentRegion.Resize(, 1)
    .Item(c.Value) = .Item(c.Value) + 1
    c.Offset(, 1) = .Item(c.Value)
    Next c
    Range("B1") = "Expected Result"
    End With
    End Sub

    Please find the attachment......
    Attached Files Attached Files
    Last edited by johnodys; 08-05-2013 at 04:40 AM.

  5. #5
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Find result what is times of value of repeat for same repeated values

    any one help on this?????????

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Find result what is times of value of repeat for same repeated values

    so, maybe like this
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    07-23-2013
    Location
    bangalore
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    143

    Re: Find result what is times of value of repeat for same repeated values

    Thanks Dude Perfect Code !!!!! Keep touch with me dude!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

+ 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. Validating repeated values, then bring the result to another cell
    By souza.eq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 05:19 AM
  2. Replies: 12
    Last Post: 08-10-2012, 05:11 PM
  3. Find out aplhanumeric value repeated maximum times in an excel
    By parulg in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2010, 05:21 AM
  4. Macro Loop – Find Specific Times, Extract Date, Average Values of Times
    By ExcelQuestFL in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-25-2010, 02:50 PM
  5. find out number repeated max. times in column.
    By vimivijay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2005, 06:59 AM

Tags for this Thread

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