+ Reply to Thread
Results 1 to 3 of 3

Return the instance of the value in the column in the next cell

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    went ighboado
    MS-Off Ver
    Excel 2010
    Posts
    8

    Question Return the instance of the value in the column in the next cell

    Hi all,

    This is simple logic i guess.... but m missing something somewhere.

    There are list of values (text) in one column some of them repetitive.
    I want a macro which returns the instance of that value in the column.
    Ex:

    Column1 Column2
    high ------ 1
    low ------ 1
    idiot ------ 1
    high ------ 2
    high ------ 3
    low ------ 2
    idiot ------ 2
    low ------ 3
    high ------ 4


    I have searched for this question but all answers were not as i wanted.

    Thanks in advance
    Last edited by witcomm; 02-21-2012 at 04:59 AM. Reason: to change the Prefix to Solved

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: Return the instance of the value in the column in the next cell

    Hi,

    Assuming your data starts in cell A1, use this formula in B1

    =COUNTIF($A$1:A1,A1)

    and copy it down the length of your data.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    went ighboado
    MS-Off Ver
    Excel 2010
    Posts
    8

    Thumbs up Re: Return the instance of the value in the column in the next cell

    You are awesome @sweep....

    Thanks a ton!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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