+ Reply to Thread
Results 1 to 6 of 6

Generate Numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    9

    Generate Numbers

    Hi
    i have added the comments to the attached spreadsheet but basically

    so if type was fire the first number would be F102.
    if fire was selected again the number would be F103 and so on etc
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,338

    Re: Generate Numbers

    You didn't have a dropdown box... so I added it for you. See file. i created the ID number using this:

    =IF(C2="","",VLOOKUP(C2,I:J,2,FALSE)&TEXT(COUNTIF(C$2:C2,C2),"000"))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Generate Numbers

    Thankyou that is perfect for what I need it to do

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,338

    Re: Generate Numbers

    Ooops. Should have been:

    =IF(C2="","",VLOOKUP(C2,I:J,2,FALSE)&TEXT(100+COUNTIF(C$2:C2,C2),"000"))

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,338

    Re: Generate Numbers

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  6. #6
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,329

    Re: Generate Numbers

    =IF(C2="","",VLOOKUP(C2,$I$1:$J$5,2,FALSE)&100+(COUNTIF(C$2:C2,C2)))
    You don't need the TEXT function
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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: 3
    Last Post: 02-28-2020, 12:40 PM
  2. generate n random numbers not duplicated for each id numbers with Vba
    By fatoom91 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-21-2019, 03:31 PM
  3. Replies: 7
    Last Post: 05-07-2016, 10:34 PM
  4. Is there any script that I generate 6 numbers of these numbers from the list?
    By dragon66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2014, 01:22 PM
  5. Replies: 1
    Last Post: 10-16-2013, 02:46 PM
  6. Replies: 4
    Last Post: 10-11-2010, 05:13 AM
  7. Random numbers to generate amount between two numbers
    By maverickbv80 in forum Excel General
    Replies: 2
    Last Post: 09-08-2010, 11:21 AM

Tags for this Thread

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