+ Reply to Thread
Results 1 to 3 of 3

Formula for calculating sequence number in third column based upon first 2 columns

  1. #1
    Registered User
    Join Date
    05-18-2013
    Location
    Basel
    MS-Off Ver
    Excel 2003
    Posts
    1

    Formula for calculating sequence number in third column based upon first 2 columns

    Dear Friends,

    I am facing an issue where I want to form a sequence in third column based upon the values in first 2 columns. More detailed description is given below:

    The numbering in column C should restart from 1 as soon as the value in column A changes. In the below example the value is changing from 100 to 101 and resetiing the value in C again to 1 as soon as there is a change in column A. Column B are subset of column A for which the sequencing in column C is required.
    A B C
    100 12 1
    100 15 2
    100 17 3
    100 19 4
    101 6 1
    101 8 2
    101 9 3
    101 10 4

    Many thanks for your help in advance.
    Arun

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Formula for calculating sequence number in third column based upon first 2 columns

    HI Arun,

    welcome to the forum.
    Try using below formula :-
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

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

    Re: Formula for calculating sequence number in third column based upon first 2 columns

    =countif($A$1:$A1,$A1)
    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.

+ 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