+ Reply to Thread
Results 1 to 11 of 11

Generate unique next number

  1. #1
    Registered User
    Join Date
    07-01-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    37

    Generate unique next number

    Hi Experts,

    I need to generate the next alpha numeric number of a column which is not is sequence. Column A in the attachment represents the number which is formatted per country in Column B. when I select the country in Column E5, should check Column A and B and generate the next unique number for that country.

    Thanks,
    Senthil
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Generate unique next number

    UDF
    Use in cell F5
    =NextNumber([Country],Table2)
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-01-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    37

    Re: Generate unique next number

    Hi,

    Thanks and appreciate your quick reply. I am not getting the result. Could you please attach the file where you achieved the result?

  4. #4
    Registered User
    Join Date
    07-01-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    37

    Re: Generate unique next number

    I got it. thanks much

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Generate unique next number

    You are welcome.

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

  6. #6
    Registered User
    Join Date
    07-01-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    37

    Re: Generate unique next number

    Again. How to tackle these?

    1. Insert one more conditional column. Ex: Type as Column C. next number should number return based on Type A + Country
    2. If I have more columns in the sheet and these columns are available in random? how to refer these fields?

    Thanks

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Generate unique next number

    Upload a workbook with the data and the result that you want.

  8. #8
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Generate unique next number

    Hi all, here's another:
    Please Login or Register  to view this content.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  9. #9
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Generate unique next number

    Quote Originally Posted by sradjend View Post
    1. Insert one more...column...next number should [be] based on Type A + Country...
    This could lead to parallel numbers in different types. ie. Australia Type A ABN13999999511 and also Australia Type B ABN13999999511

  10. #10
    Registered User
    Join Date
    07-01-2017
    Location
    australia
    MS-Off Ver
    2013
    Posts
    37

    Re: Generate unique next number

    I want C5 in Sheet 3 to refer the table in sheet 2, Refer column I for Country selection + refer column M (contains string “Proxy”) and search for number in column J to generate the next number.
    Attached Files Attached Files

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,573

    Re: Generate unique next number

    C5 in Sheet3
    =GetNextNumber(Sheet2!$I$2:$M$29,2,1,[@Country],5,"*proxy*")

    Where;
    Sheet2!$I$2:$M$29 = Whole data range
    2 = relative "Number" column index in whole data range from the left
    After these, you can add as many conditions as you want.
    Such like
    1,[@Country] means 1st column of data should equal to [@Country] which is "AT" currently
    5,"*proxy*" means 5th column of data should contains "proxy"

    etc.
    Please Login or Register  to view this content.
    Last edited by jindon; 03-19-2018 at 01:13 AM.

+ 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. Generate unique record ID number from a userform
    By mark1955 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-26-2017, 04:28 AM
  2. How to generate unique number in each cell?
    By Machme in forum Excel General
    Replies: 2
    Last Post: 03-17-2015, 09:19 PM
  3. [SOLVED] Generate a unique reference number?
    By leondixon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 06:47 AM
  4. [SOLVED] Generate an unique ticket number and create a log
    By city in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-07-2012, 06:35 AM
  5. Generate unique number
    By adeleex in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-18-2011, 08:46 AM
  6. Generate a unique number of list
    By Terence Chan in forum Excel General
    Replies: 3
    Last Post: 09-14-2005, 02:48 AM
  7. [SOLVED] Generate a unique form number
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-18-2005, 09:05 AM

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