+ Reply to Thread
Results 1 to 16 of 16

Two staff with the same names

  1. #1
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Two staff with the same names

    We have two agency drivers with the same first and second names but they do have different middle names.

    The sheet we use picks up certain drivers and adds a comment of 'YES' into a column so we know what drivers have a class 2 licence.

    The sheet also sorts and removes drivers middle names to make sheets easier to read.

    This has not been a problem until we have two with the same name 'Leslie Miller'.

    I would like to pick up Leslie Thomas Miller so it adds the YES comment but can't work out how to do this if anyone can help please?

    I have added an attachment to show how I pick up the information now.Excelforum.docx

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Two staff with the same names

    Attach example Excel file

    In attached Excel file try not to use:
    • merged cells
    • password protection
    • unnecessary formatting like: colours, borders, aligning another than default, etc...
    • unnecessary zooming/grouping/freezeing
    You have words to logically describe the problem

    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  3. #3
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    TRG Sheets - Excelforum.xlsmExample of TRG.xlsx

    The sheet TRG is the one we use to sort the information we get and produce sheets and put it into the style etc we want.

    The example sheet is how we are sent the information.

    I need it to pick up that Leslie Thomas Miller is a class 2 driver and adds the 'YES' comment. Leslie Lee Miller should have the comment 'X'

  4. #4
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    Should have added that the drivers will be in different rows each day depending on their start times and days off etc.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Two staff with the same names

    You can add unique ID for each driver then define Class 2 there where you want
    There are middle names so ???
    also I don't know where you want insert "Class 2" so I did it in column G on sheet1
    and if Leslie Thomas Miller got Class 2 , another Leslie doesn't need "X"
    Attached Files Attached Files
    Last edited by sandy666; 04-08-2018 at 08:41 PM.

  6. #6
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    Sandy,

    If you copy and paste the information from 'Example of TRG' into the one named 'TRG Sheets' and then go from there it hopefully shows it better?

    'Example of TRG' is an attachment we are sent, we run through 'Remove false start times' then 'Remove drivers middle names' then 'Sort into time order' this removes anything we don't need/use.

    'Front desk to 07:00' and 'Front desk from 07:00' are the sheets we use and these have to show if a driver is class 2 or class 1 licence.

    Your column assigning an id to each driver would work if that information was in column B on the TRG sheets on the Sort TRG tab if it can pick up from that to add the comment in column H??

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Two staff with the same names

    If you change the names on your Class2 Drivers list as they appear in the Example of TRG (full names with middle names) and replace the remove middle names code with this
    Please Login or Register  to view this content.
    it should work just fine.
    Attached Files Attached Files
    Last edited by bakerman2; 04-08-2018 at 10:43 PM. Reason: Added example file
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  8. #8
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    'Full' names could be a problem? Depending on who prepares the information we are sent the drivers names can change, Melvin Dudley is sometimes Mel Dudley etc

  9. #9
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    Is it possible to change the code for remove middle names to reduce middle names to just an initial? Leslie Thomas Miller would be Leslie T. Miller

  10. #10
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Two staff with the same names

    Yes it is but that doesn't account for Melvin sometimes changing to Mel.
    You should really try to find some uniformaty in the way data is handed over because that are things you can't solve with code.

  11. #11
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    If i change Melvin/Mel to just M Dudley it still works.

    They should all work if its not a common name combination going forward.

    Les T Miller works fine if i can work out how to concatenate the names to change middle names to an initial only? This would pick up he is class 2 and thats all I need it for.

  12. #12
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    Bakerman,

    What should really happen is we tell the agency to sort all this out for us!

  13. #13
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Two staff with the same names

    Please Login or Register  to view this content.
    Last edited by bakerman2; 04-09-2018 at 12:56 AM.

  14. #14
    Forum Contributor
    Join Date
    02-03-2018
    Location
    Edinburgh
    MS-Off Ver
    Office Professional Plus 2016
    Posts
    161

    Re: Two staff with the same names

    That works Bakerman!!!

    A BIG thank you to everyone with this, it was the last thing that was causing problems....... now fixed

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,672

    Re: Two staff with the same names

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  16. #16
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Two staff with the same names

    Thanks for feedback and rep+.

+ 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. [SOLVED] Automatically add a comment next to certain staff members names?
    By GHI1968 in forum Excel General
    Replies: 5
    Last Post: 02-05-2018, 01:10 PM
  2. [SOLVED] Staff clock data conversion into time table per staff member
    By PhilSkil1609 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2017, 04:33 PM
  3. [SOLVED] Count the number of staff working between times based on staff position
    By sparky1978 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-03-2016, 08:10 AM
  4. Replies: 3
    Last Post: 06-26-2014, 12:13 AM
  5. [SOLVED] Macro to update Score Card Summary when the new staff add-in or existing staff deleted
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-12-2014, 02:43 PM
  6. Staff Planner - How To Set Up UserForm to Generate Data into Staff & Date Spreadsheet
    By Marie Snell in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-19-2013, 11:04 PM
  7. Macro to list staff names automatically
    By craig.jenkins in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-26-2008, 05:01 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