+ Reply to Thread
Results 1 to 5 of 5

Excel progression of nrs

  1. #1
    Registered User
    Join Date
    04-27-2016
    Location
    Amsterdam
    MS-Off Ver
    2016 excel
    Posts
    3

    Excel progression of nrs

    Hi there,
    I have an excel problem which I hope you guys can help me with

    Oke the situation is as follows

    I have a colum with random numbers. I have another colum where is shown which number is unique and which is repeating with respect to the previous numbers. Now I want to create a colum where I want 1 to progress with 1 each time a repeating nr comes. When a unique nr comes I want the number to be distracted with 1, hence -1. Furthermore the number can not become smaller than 1. See example

    I created the unique repeating formula with:=IF(COUNTIF($B$3:B3,B4),"Repeater", "Unique")

    Now I need the formula for the progression

    Your help is greatly appreciated!

    Random Unique/repeat Progression
    37 Unique 1
    17 Unique 1
    22 Unique 1
    9 Unique 1
    0 Unique 1
    21 Unique 1
    37 Repeater 2
    33 Unique 1
    14 Unique 1
    13 Unique 1
    5 Unique 1
    24 Unique 1
    4 Unique 1
    17 Repeater 2
    31 Unique 1
    19 Unique 1
    32 Unique 1
    22 Repeater 2
    14 Repeater 3
    9 Repeater 4
    10 Unique 3
    5 Repeater 4
    12 Unique 3

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel progression of nrs

    With the numbers starting in A2, and not using the helper column
    with nothing in B1
    In B2 copied down
    =IF(COUNTIF($A$1:$A1, A1)>1, B1+1, MAX(B1-1,1))
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel progression of nrs

    Please read the forumrules, especialy the ones about crossposting.

    http://www.mrexcel.com/forum/excel-q...l-problem.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Registered User
    Join Date
    04-27-2016
    Location
    Amsterdam
    MS-Off Ver
    2016 excel
    Posts
    3

    Re: Excel progression of nrs

    Wow amazing that worked right away. Thanks a lot!

  5. #5
    Registered User
    Join Date
    04-27-2016
    Location
    Amsterdam
    MS-Off Ver
    2016 excel
    Posts
    3

    Re: Excel progression of nrs

    Sorry for cross posting, did not know it was not allowed.
    Here is the link for those who are interested

    http://www.mrexcel.com/forum/excel-q...ml#post4504534

+ 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. Replies: 4
    Last Post: 02-03-2014, 08:53 PM
  2. [SOLVED] Numerical progression
    By JakeMann in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-04-2013, 07:15 AM
  3. Progression.....
    By bluelord in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-20-2010, 03:32 PM
  4. Geometric Progression in Excel
    By Any- in forum Excel General
    Replies: 8
    Last Post: 01-08-2010, 09:38 PM
  5. Job phase progression
    By famdamly in forum Excel General
    Replies: 0
    Last Post: 02-24-2006, 11:06 PM
  6. Replies: 2
    Last Post: 03-29-2005, 09:06 AM
  7. [SOLVED] How do i get Excel 2003 to have a progression bar in the adjacent.
    By Ravi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-08-2005, 05:06 AM

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