+ Reply to Thread
Results 1 to 13 of 13

Unique ID For Customer Table

  1. #1
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Unique ID For Customer Table

    Hello,

    Is there a way to auto generate ID numbers for the Customers sheet that will remain with the Customer? I think this might have to be done with VBA. I tried with formulas but when sorting the table the numbers don't stay with the customer. I have the ID numbers in column A and the other columns have typical customer information.

    I appreciate any help or advice

    Thanks

  2. #2
    Forum Contributor
    Join Date
    03-08-2018
    Location
    Denmark
    MS-Off Ver
    2016 for Windows
    Posts
    413

    Re: Unique ID For Customer Table

    Sorting should not change data in a Row.
    Upload a sample worksheet, this should be an easy fix

  3. #3
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: Unique ID For Customer Table

    Thank you here is the file I am starting.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,466

    Re: Unique ID For Customer Table

    The ID formula is this:

    =@ROW(1:1)+100

    It works using the row number, therefore will update if the list is sorted.

    You would be better generating a customer ID number based on the contact details.

    However, the safest way is to use a bit of VBA for this.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow

    Hi !

    Quote Originally Posted by bj90 View Post
    I tried with formulas but when sorting the table the numbers don't stay with the customer.
    Just replace the formulas by the values before any sort …

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,466

    Re: Unique ID For Customer Table

    That's a good idea, however, if multiple people are using the form, probably not a practical solution unless it happens automagically.

  7. #7
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: Unique ID For Customer Table

    Thank you all for the help.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,466

    Re: Unique ID For Customer Table

    Do you not want a solution? I am sure that Marc or one of our other VBA experts will be able to offer a piece of code to solve this.

  9. #9
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: Unique ID For Customer Table

    I was going to try your formula but maybe code is better. I don't want to be trouble.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,466

    Re: Unique ID For Customer Table

    The formula isn't mine - it's what is in your workbook. I was explaining why it will not work if the table is sorted differently.

    You are not being trouble! This is a help forum. As I said, if you would like a bit of code to help solve this for you, one of our experts will be delighted to help you. We understand that you are probably a coding novice - nobody is going to expect you to work it out for yourself.

  11. #11
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: Unique ID For Customer Table

    Your are very kind thank you. I have to tend to a family member now and will return soon.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,466

    Re: Unique ID For Customer Table

    OK - I suggest you have a look at this recent thread: https://www.excelforum.com/excel-gen...numbering.html

    If you have issues, post back here for help.

    Also, remove the solved tag from this thread.

  13. #13
    Registered User
    Join Date
    07-05-2019
    Location
    USA
    MS-Off Ver
    2010
    Posts
    157

    Re: Unique ID For Customer Table

    I checked that thread but it doesn't seem to apply to my situation thanks though.

+ 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 a separate staff customer list based on larger customer table
    By CARROLLJP in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2018, 04:40 PM
  2. unique customer
    By stephme55 in forum Excel General
    Replies: 2
    Last Post: 05-18-2016, 01:18 PM
  3. Find unique customer ID
    By amartino44 in forum Excel General
    Replies: 1
    Last Post: 10-11-2013, 08:07 PM
  4. Replies: 0
    Last Post: 10-25-2012, 09:52 AM
  5. Replies: 11
    Last Post: 10-25-2012, 12:26 AM
  6. help counting items unique to a day/customer combination
    By bigalm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2010, 07:20 AM
  7. Breaking down Unique customer code.
    By Clash in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2007, 10:17 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