+ Reply to Thread
Results 1 to 8 of 8

Unique ID using Date,Name, Location, and a counter

  1. #1
    Registered User
    Join Date
    07-28-2014
    Location
    Boston
    MS-Off Ver
    Mac 2011
    Posts
    4

    Question Unique ID using Date,Name, Location, and a counter

    Hello All,
    I have been trying to solve this myself, but have not made any progress. I am trying to create a tracking system and and making a unique ID to do it. I am taking a person's name, their location, the date, and giving them a number at the end.

    For example:
    Doe,John, Boston, 23 July 2014, 001.
    I want the unique id to take the first two of last name (DO), first three of location (BOS), the date (140723), and give them a number, person 1 is 001, person 2 is 002. So I would like the outcome to read DOBOS140723001.

    I have been able to get the first part by using =UPPER(LEFT(C3,2)&LEFT(D3,3) but I cannot get the date to correct.

    Any help would help me tremendously.

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Unique ID using Date,Name, Location, and a counter

    Is all of that data in one cell? Separating it into columns would make it much easier to accomplish your objective.

  3. #3
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Unique ID using Date,Name, Location, and a counter

    Sorry, obviously you have it separated. If the date is in Column E, you can change to the desired format using the following:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-28-2014
    Location
    Boston
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: Unique ID using Date,Name, Location, and a counter

    You are awesome. It's been awhile since I've used excel. Do you know the easiest formula to use in order to count entries at the end of the current formula? So I have the current formula. What would be the best way to use the COUNT function or is there a better one to use?

  5. #5
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Unique ID using Date,Name, Location, and a counter

    Sorry, what exactly are you trying to count?

  6. #6
    Registered User
    Join Date
    07-28-2014
    Location
    Boston
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: Unique ID using Date,Name, Location, and a counter

    The number entry. So the first entry would be 001 then 002 then 003. Just looking to add a count feature to the end of the formula.

  7. #7
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: Unique ID using Date,Name, Location, and a counter

    It'd probably be more complicated than just concatenating the Column that lists the 001, 002, etc., which you can autofill by selecting the first few numbers, clicking on the bottom right-hand corner of the last cell, and dragging down.

  8. #8
    Registered User
    Join Date
    07-28-2014
    Location
    Boston
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: Unique ID using Date,Name, Location, and a counter

    Yeah, I was just looking for something other than doing the drag for the autofill, but it might be the easiest way.

+ 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. Determining unique data from multiple same strings based on counter
    By Nomad33 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-20-2013, 08:41 AM
  2. Unique values for each date and location
    By pat_johnson in forum Excel General
    Replies: 4
    Last Post: 11-17-2011, 02:49 AM
  3. Identifying Unique Location in Table from criteria?
    By DAVID1972 in forum Excel General
    Replies: 2
    Last Post: 05-06-2008, 02:36 PM
  4. Help, inconsistent results on Filter -> Unique, to new location.
    By jay in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2006, 05:10 PM
  5. Can somebody explain to me how Bob Phillips' unique record counter works?
    By Ken Johnson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-22-2005, 06:05 PM

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