+ Reply to Thread
Results 1 to 11 of 11

Automatic Numbering

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Automatic Numbering

    Hi everybody. Is it possible to make an automatic numbering system (should be in sequence), with prefix at the start of the number depending on the choices?

    Prefix are as follows-
    COMMERCIAL = 01
    MEDICARE = 02
    MED PDP = 03
    GENERAL = 04

    for example:
    if i choose COMMERCIAL in B2 it should return me with a value of 01-001 in A2
    if i choose MEDICARE in B3 it should return me with a value of 02-001 in A3
    if i choose MED PDP in B4 it should return me with a value of 03-001 in A4
    if i choose GENERAL in B5 it should return me with a value of 04-001 in A5

    But if i choose again COMMERCIAL in B6, it will give me a value of 01-002 A6
    and same with the others.

    List should be dynamic, meaning i could change any inputs in cell B:B and their corresponding values in cell A:A will change also

    Pls see picture attached for reference, the outcome should be the same but i want the numbers to be automatically generated.

    Is this possible? any help will be appreciated.. plssss..
    Thanks
    Attached Images Attached Images
    Last edited by ruissu; 02-14-2016 at 06:26 PM.

  2. #2
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Automatic Numbering

    Im sorry . The last GENERAL in the picture should have a value of 04-002.

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Automatic Numbering

    assuming your data is starting from B2 and going down then in A2 you can try below
    =TEXT(IF(COUNTIF($B$2:$B2,B2)=1,ROW(A1),MATCH(B2,$B$2:B2,0)),"00")&"-"&TEXT(COUNTIF($B$2:B2,B2),"000")
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Automatic Numbering

    Hi Hemesh,

    Your formula is working but not the way i want it to be.

    Thank you.

  5. #5
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Automatic Numbering

    can you please let me know where it is not working accordingly

    find attached
    Attached Files Attached Files
    Last edited by hemesh; 02-14-2016 at 03:14 PM.

  6. #6
    Spammer
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2013
    Posts
    190

    Re: Automatic Numbering

    Something like Hemesh
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Automatic Numbering

    Hi Hemesh,

    Im sorry i forgot to say that my list should be dynamic. In case i change B3 to say, GENERAL then value in A3 should also change based on the corresponding prefix set. In this case GENERAL starts with 04. So the Value in A3 should be 04-001 since it is the first GENERAL entry.

  8. #8
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Automatic Numbering

    Jean.P28

    Thank you so so so much.. that is exactly what im looking for, you're heaven sent .. I'll just edit your formula because i actually have 8 categories in project type.

    Thanks again. Cheers

  9. #9
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Automatic Numbering

    in that case use below in
    A2 and drag down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Here E1 to E4 are
    commercial
    medicare
    med pop
    general

  10. #10
    Registered User
    Join Date
    01-04-2016
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    42

    Re: Automatic Numbering

    Thanks Hemesh.. Both of you are great help

  11. #11
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Automatic Numbering

    you are welcome and thanks for feeback

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. automatic numbering-how to use automatic numbering.
    By gjoy993 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-19-2007, 12:29 AM
  2. Automatic Numbering
    By MChuppe in forum Excel General
    Replies: 1
    Last Post: 01-18-2007, 12:10 PM
  3. Automatic Numbering.
    By Javster95 in forum Excel General
    Replies: 0
    Last Post: 04-30-2005, 03:06 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