+ Reply to Thread
Results 1 to 13 of 13

Sequential numbering based on dropdown selection

  1. #1
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Sequential numbering based on dropdown selection

    Hi everyone,

    I have a table with 3 columns: A:ID, B:Type and C:Name. Column 'Type' is a dropdown menu that contains: P,T,S (short for Phase, Task and Subtask)
    I need a formula in column A that generates sequential numbers starting from 1 based on the selection in column B
    This is a sample table with the expected results in column A. As you can see, T (task) is a subset of P (phase) and S (subtask) is a subset of T.
    numbering.png
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    84,036

    Re: Sequential numbering based on dropdown selection

    Administrative Note:

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Re: Sequential numbering based on dropdown selection

    Thanks for noting this. I was using Office 2021 but now using Office 365.

  4. #4
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,132

    Re: Sequential numbering based on dropdown selection

    Try this in A2 and copy down.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,698

    Re: Sequential numbering based on dropdown selection

    IN D2 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 06-12-2024 at 05:04 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2405-17628.20102
    Posts
    1,421

    Re: Sequential numbering based on dropdown selection

    Here's another option:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If things don't change they stay the same

  7. #7
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Re: Sequential numbering based on dropdown selection

    Quote Originally Posted by windknife View Post
    Try this in A2 and copy down.

    Please Login or Register  to view this content.
    Thank you so much. its perfect. I appreciate your help.

  8. #8
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Re: Sequential numbering based on dropdown selection

    Quote Originally Posted by kvsrinivasamurthy View Post
    IN D2 copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you so much. This option works perfect as well.

  9. #9
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Re: Sequential numbering based on dropdown selection

    Quote Originally Posted by CheeseSandwich View Post
    Here's another option:
    Please Login or Register  to view this content.
    This is awesome. This option works perfectly. Thank you all for your help.

  10. #10
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    UK
    MS-Off Ver
    365
    Posts
    640

    Re: Sequential numbering based on dropdown selection

    Quote Originally Posted by CheeseSandwich View Post
    Please Login or Register  to view this content.
    CheeseSandwich, just curious, did you have any specific scenario in mind with the "x-x" expression that would yield a different outcome than just leaving those IF legs blank, i.e. defaulting to zero anyway?

  11. #11
    Forum Expert CheeseSandwich's Avatar
    Join Date
    12-22-2021
    Location
    Kent, England
    MS-Off Ver
    365 - 2405-17628.20102
    Posts
    1,421

    Re: Sequential numbering based on dropdown selection

    @RaulSerg

    No, not really - it is just the way my brain is working when creating the formula. I wanted to reset to zero so I did a value minus itself, not the most logical approach but then I am not always the most logical person.

    However, leaving it blank without the use of -- would bring an issue as you would get a FALSE rather than a zero, therefore the -- converts the FALSE to zero. the function 'N' in the last formula below, does the same as the --.

    It could also be written like this:
    Please Login or Register  to view this content.
    Or:
    Please Login or Register  to view this content.
    Or:
    Please Login or Register  to view this content.
    Or:
    Please Login or Register  to view this content.
    And probably many other ways.

    I make things up as I go along so sometimes I create things in a way that others may not think of and other times I create a load of rubbish. I am also self taught so do not always approach things in the right way.
    Last edited by CheeseSandwich; 06-12-2024 at 08:43 AM.

  12. #12
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,132

    Re: Sequential numbering based on dropdown selection

    You are welcome.
    -----------------------------------
    If that takes care of your original question, please click on "Thread Tools" from the menu link above and mark this thread as SOLVED.

  13. #13
    Forum Contributor
    Join Date
    04-26-2012
    Location
    New Jersey
    MS-Off Ver
    Office 365
    Posts
    222

    Re: Sequential numbering based on dropdown selection

    Thank you everyone. I really appreciate it.

+ 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. [SOLVED] Looking for non-array formula to do sequential numbering based on value on B1
    By bjnockle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-10-2024, 03:37 AM
  2. Sequential Numbering based on multiple criteria
    By kevindorward_dfsdanf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2020, 12:11 PM
  3. [SOLVED] Sequential numbering based on same event
    By rynny in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2020, 12:50 PM
  4. Automatically fill in a dropdown selection based on a previous dropdown
    By thanhthinh1234 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-24-2018, 08:10 PM
  5. Multiple Dropdown selection & Column Groupings based on dropdown selection
    By rabrol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 10:23 AM
  6. [SOLVED] Auto sequential numbering based on a cell text
    By GAG24 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2017, 07:34 AM
  7. Generate Sequential Numbering based on Combobox selection
    By MzBranch in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2015, 01:09 PM

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