+ Reply to Thread
Results 1 to 12 of 12

Unique ID Sequential Ref No

  1. #1
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Unique ID Sequential Ref No

    Hi, I need to create unique ID reference numbers if duplicates are found. Please see attached pic:

    urn.png

    Could I add a formula to compare Column D (generated Ref No) with Column E (All existing Ref Nos) to output a unique Ref no in Column F?

    A B C D E F
    1 REF INTIALS FIRST NAMES SURNAME GENERATED REF NO ALL REF NOS UNIQUE REF NO
    2 AW ADAM WILLIAMS AW-0000 AW-0001 AW-0007
    3 AW-0002
    4 AW-0003
    5 AW-0004
    6 AW-0005
    7 AW-0006

    The last for digits are numeric and I would like the numbers to increase sequentially.

    I'm a novice and would really appreciated the help.

    Thx

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Unique ID Sequential Ref No

    Enter this formula using Ctrl Shift and Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Thanks for the quick response. I'll give it a go and update the results here.

  4. #4
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Quote Originally Posted by mehmetcik View Post
    Enter this formula using Ctrl Shift and Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi, I tried your suggestion with a slight variation (as I've changed ref no format) and it appears to have worked. I've got one more issue, as I need it to search an existing list of URN's on worksheet URN with newly generated ones. So far it is producing the correct results. However if there are duplicates on the new list, then they are not generating as unique URN's.

    I've attached a test spreadsheet for you to have a look please http://www.excelforum.com/attachment...1&d=1484418273.

    I really appreciate all the help and value your time and effort.

    Thx

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Unique ID Sequential Ref No

    How can you have duplicates if you are after unique URNs

  6. #6
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Quote Originally Posted by mehmetcik View Post
    How can you have duplicates if you are after unique URNs
    SS2.png

    I've got two worksheets. Worksheet 1 has all existing URNs. Worksheet 2 Generates new URN's after Firstname and Surname are entered. As you can see on Worksheet 2 A2 and A15 have produced the same results. I need it change the last digit to the next number i,e. AH0003 and so on. Each month there will be a new worksheet and the URNs need to be added to worksheet 1 to populate a full list of all candidates that have been registered each month.

    The formula I used was: {=LEFT(TEXT(B2,"00"),1)&LEFT(TEXT(C2,"00"),1)&TEXT(MAX(IFERROR(VALUE(RIGHT(URN!A2:A300,4)),0))+1,"0000")}

    I hope that makes a bit more sense.

    Thx
    Last edited by Talibuddin; 01-15-2017 at 12:09 AM.

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Unique ID Sequential Ref No

    Try this array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Quote Originally Posted by JeteMc View Post
    Try this array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    Thanks you for your help. I'll give it a go and update the results here.

    Thx

  9. #9
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Quote Originally Posted by JeteMc View Post
    Try this array entered formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let us know if you have any questions.
    That worked a treat, fabulous. Thanks very much JeteMC for your superb help, and also to all who contributed to this thread. Keep up the good work.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Unique ID Sequential Ref No

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.

  11. #11
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    Quote Originally Posted by JeteMc View Post
    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools link above your first post. I hope that you have a blessed day.
    You too. Yes will mark thread as solved. Thx again.

  12. #12
    Registered User
    Join Date
    01-13-2017
    Location
    London
    MS-Off Ver
    2013
    Posts
    8

    Re: Unique ID Sequential Ref No

    I'm sorry I have just realised, I missed out adding text to the beginning of the generated URN i.e. There should be a set text auto added to the beginning of the generated URN as KSB. For example AH0002 is generated from the first name and surname and before that it should add 'KSB', such as KSBAH0002. So sorry to unresolve this thread. I really hope you can further help? Thx

+ 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. Generating sequential unique ID based on other value and date
    By Gallant Birch in forum Excel General
    Replies: 1
    Last Post: 08-27-2016, 02:58 PM
  2. [SOLVED] Sequential Numbering of Unique Entries
    By aaallday in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-04-2016, 12:28 PM
  3. [SOLVED] Help with assigning =sequential number to a unique entry
    By SunSpot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-17-2014, 11:21 AM
  4. Sequential Numbering and Unique Reference Codes
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-17-2014, 08:35 AM
  5. [SOLVED] Generating unique sequential numbers using VBA
    By onwell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2013, 11:15 AM
  6. Generating a unique sequential number in Excel
    By JPFreeman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2012, 08:31 PM
  7. [SOLVED] unique sequential number excel 2000
    By Ches in forum Excel General
    Replies: 0
    Last Post: 05-13-2005, 06: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