+ Reply to Thread
Results 1 to 25 of 25

Find unique names in certain range.

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Find unique names in certain range.

    Hello:

    Please refer to Attached File...
    I have employees clockIn-Out info in "Daily_Receipt" sheet in cell O66:EH111.
    Each day you may have different employees.
    I need a either a VB code or formula to list unique list of employees in column K, cell K66 downwards, aphabettically.

    I have manually entered in column K, Cell K66 downwards.

    Let me know if you have any questions.

    Thanks

    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 07-20-2014 at 12:33 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find unique names in certain range.

    Can the "names" really begin with numbers, as shown in O71??
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find unique names in certain range.

    In fact, if you can dump the digits... this array formula works. This is set up to put numbers then letters... I'm about to head out & won't be back for hours, so i'll not have a chance to see if I can get it to reverse the order of appearance (words, then numbers).
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find unique names in certain range.

    Sorted. Even with the numbers there. Should you want zero not to appear, you'll probably need to put an "if" formula round it all.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Glenn:

    That was something, great its working.
    Appreciate all your help.
    Will contact you if further help is need on this.
    Thanks
    Riz

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Glenn & Others:

    i think there is small misunderstanding.
    The formula is just doing the list for just one column O.
    I need to go to each column O, S,W (Every 4th column) and add all of the names and sort out unique names alphabetycally.
    Let me know if you have any questions.

    Riz
    Last edited by rizmomin; 07-20-2014 at 12:10 PM.

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    Hi Riz,
    try
    Please Login or Register  to view this content.

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem:

    Seems to work great.
    Can you help me modify the code so that if the range contains any number then ignore.
    Currently i see for example 0,11...Need to be ignored if cell have numbers.

    Let me know if you have any questions.
    Thanks
    Riz

  9. #9
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem or other:

    I need to modify the code to fit in my sheet.
    Basically i want to check the employee names in O601:O640, and then every 4th column. We may have blank cell content., ignore blank cells.
    Also i mentioned earlier need to ignore any numbers.
    We need a unique employee names only from all the column (4th Column from Column O and last column EE).

    Basically i think the code should do the below to come to result:
    1. Code needs to collect all names from Cell O601:O640,S401:S440, and so on.
    2. Search for blank cells, if it finds any blank cells then delete.
    3. Delete duplicate names.
    4. sort out alphabetically.
    5. Paste at K600.

    Let me know if you have any questions.

    Thanks
    Riz


    Let me know if you have any questions.
    Riz
    Last edited by rizmomin; 07-20-2014 at 05:18 PM.

  10. #10
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hello:

    Can someone help with this thread.
    Thanks

    Riz

  11. #11
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    maybe
    Please Login or Register  to view this content.

  12. #12
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Find unique names in certain range.

    Hi,
    Here's another suggestion, similar to nilem's but using the arraylistobject to store and sort the names :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Find unique names in certain range.

    Maybe this isn't elegant; but it does work; providing you can take a helper row. I need one to get a continuous named range. Currently it's on sheet1, but it can go anywhere. Just call the named range "List" and the array will work perfectly. I hope.
    Attached Files Attached Files

  14. #14
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hello Nilem & GC Excel:

    I have tried but I am getting error at
    Please Login or Register  to view this content.
    Please check at and let me know.
    Thanks
    Riz

  15. #15
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Glenn:

    I have tried your formula in my active sheet but for some reason its giving Circular Ref Error.
    Also the employee names will be for the whole month, does that mean that i will have to create "List" for full month...

    Let me know.
    Thanks
    Riz

  16. #16
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    Hi Riz
    here your file (look at the attachment)
    Attached Files Attached Files

  17. #17
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem:

    Below is the problem i am facing, i am attaching the excel file.
    Some days i may not have any data for ClockIn and ClockOut.
    We need to take account of that.
    Also the cells for Clockin and Clockout may be blank instead of zero.

    (Hi Nilem: This time please allow the employee name be number between 1 and 99)

    Please have a look and let me know.

    Thanks
    Riz
    Attached Files Attached Files
    Last edited by rizmomin; 07-21-2014 at 11:08 AM.

  18. #18
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    v3.0
    Please Login or Register  to view this content.

  19. #19
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Find unique names in certain range.

    Hello Riz,

    This macro works on the data you posted in your first post. The values have been changed to match with your requirements in post #9.

    There are 2 macros. The first macro compiles a list of unique employee names. A name must be at least 3 alpha characters. Anything else is ignored. This list is then copied to the worksheet.

    The second macro then sorts the names in ascending alphabetical order.

    Try this out and let me know the results.

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  20. #20
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hello Nilem:

    I am still seeing a small problem with the code.
    Please refer to attached file.

    I have added an employee in column O and then run the code.
    I have added "Danny" as employee in column O and run the code.
    This employee is not added as it should.
    Let me know if you have any questions.
    Riz
    Attached Files Attached Files

  21. #21
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    v3.1
    Please Login or Register  to view this content.

  22. #22
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem:

    This seems to work great.
    I will contact you if any problem.
    Thanks
    Riz

  23. #23
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem:

    What modification would i need to do to the code to allow employee names in numerical number like what we have as 11,12.
    Let me know if you have any questions.
    Thanks.
    Riz

  24. #24
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Find unique names in certain range.

    Hi Riz,
    instead of this line
    Please Login or Register  to view this content.
    try this
    Please Login or Register  to view this content.

  25. #25
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: Find unique names in certain range.

    Hi Nilem:

    I really appreciate all your help, it works.
    Thanks
    Riz

+ 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. Excel 2007 - Formula or VBA to find unique names and return values?
    By kjwaller in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2013, 09:09 PM
  2. [SOLVED] Find unique names and count their status
    By webstmonkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-14-2013, 01:17 AM
  3. [SOLVED] Challange - Need to count # of unique names in a range WITH A CONDITION
    By vij8y in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-11-2013, 05:14 PM
  4. [SOLVED] Find unique range number...
    By stewart08 in forum Excel General
    Replies: 6
    Last Post: 02-21-2009, 11:13 AM
  5. Find Unique Values In A Range
    By nevi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-10-2008, 04:40 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