+ Reply to Thread
Results 1 to 5 of 5

Sequential Numbers Depending on Another Column

  1. #1
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Sequential Numbers Depending on Another Column

    Hi!

    I have Cities Name in column B

    Cities Name
    Aurangabad
    Aurangabad
    Aurangabad
    Aurangabad
    Bangalore
    Bangalore
    Bangalore
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Hyderabad
    Vijaywada
    Vijaywada
    Vijaywada
    Vijaywada
    Vijaywada
    Vijaywada


    Now what i want to give the Number in column A

    Expected Result

    S.No Cities Name
    1 Aurangabad
    2 Aurangabad
    3 Aurangabad
    4 Aurangabad
    1 Bangalore
    2 Bangalore
    3 Bangalore
    1 Hyderabad
    2 Hyderabad
    3 Hyderabad
    4 Hyderabad
    5 Hyderabad
    6 Hyderabad
    7 Hyderabad
    8 Hyderabad
    9 Hyderabad
    10 Hyderabad
    11 Hyderabad
    12 Hyderabad
    13 Hyderabad
    1 Vijaywada
    2 Vijaywada
    3 Vijaywada
    4 Vijaywada
    5 Vijaywada
    6 Vijaywada


    Thanks in Advance

    Hardeep kanwar

  2. #2
    Forum Contributor
    Join Date
    07-24-2009
    Location
    Valrico, FL USA
    MS-Off Ver
    Excel 2016
    Posts
    358

    Re: Sequential Numbers Depending on Another Column

    If the city names begin in cell B2:
    Enter 1 in cell A2
    Enter the following formula in cell A3 then copy it down:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Sequential Numbers Depending on Another Column

    Quote Originally Posted by ncmay View Post
    If the city names begin in cell B2:
    Enter 1 in cell A2
    Enter the following formula in cell A3 then copy it down:

    Please Login or Register  to view this content.
    Perfect!!!!!!!!!!!!!!

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sequential Numbers Depending on Another Column

    =COUNTIF($B$1:B1,B1) dragged down
    then it wouldnt matter if your list was sorted ,grouped together or not.
    Last edited by martindwilson; 12-06-2009 at 07:33 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Sequential Numbers Depending on Another Column

    Quote Originally Posted by martindwilson View Post
    then it wouldnt matter if your list was sorted ,grouped together or not.
    Oh Yes,

    Both Works Perfect!!!!!!!!!!

+ 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