+ Reply to Thread
Results 1 to 12 of 12

Filter names with first 4 letters

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Filter names with first 4 letters

    hello list,

    attached is a sample document
    the NAMES sheet gives the data. first we must fill in the data in NAMES sheet. the ACTUAL LIST is the one that we chose who will make up the team.
    what i want is to type the first 4 letters and get a drop down filtered list of the names and chose the correct person. once the person is chosen automatically other columns get filled in. in the ACTUAL LIST sheet, only the NAMES column should have the feature to select the names of person appearing in the NAMES sheet. other columns should be grayed.

    hope you can assist me and thank you in advance for same

    best regards
    rizvi
    Attached Files Attached Files

  2. #2
    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: Filter names with first 4 letters

    Hello RIZVI,

    After downloading your workbook, I fail to see how it's contents relate to your question. I think you may have downloaded the wrong workbook. Please check it.
    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!)

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Filter names with first 4 letters

    where is the data in the attached file, I guess u have uploaded wrong workbook, please check and provide sample workbook with desire output
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    dear all,

    YES, i have attached the wrong file for which i apologies. here goes the correct one!

    rizvi
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Filter names with first 4 letters

    Hi Rizvi

    need small clarification, what ever the names will come in Names Sheet in Name Column that all always unique only or any duplicate name will come

  6. #6
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    hi naveed,

    sorry for late reply.

    1. there can be duplicate names having same details as per other columns in the NAMES sheet. this may occur due to an oversight duplicated entry from our side. the NAME sheet is used like data entry. we type all the details of the workers in it's designated columns.
    2. BUT, the ACTUAL NAMES sheet cannot have any duplicate names. however if the same name is selected then it should check for the passport number as the passport number cannot be duplicated. well many can have the same name but with different passport numbers of course.
    3. my idea is that when the cursor is placed in the names column of the ACTUAL NAMES sheet, the full list as appearing in the names column of the NAMES sheet should appear, something like a drop down list (if we do data validation then we need to select the arrow but this is not what i want). then when the 4th letter is typed, automatically it gives a list of the names having those letters (the 4 letters could be from the first name of the last name or the middle name etc etc). then i select the appropriate name and press ENTER? then automatically the full details (entire row) of that person will appear. then i move to the next row of the name column in the ACTUAL NAMES sheet and continue........
    4. may be we can use data validation but not sure about it

    look forward to hear from you

    many thanks
    rizvi

  7. #7
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    hi naveed,

    sorry for late reply.

    1. there can be duplicate names having same details as per other columns in the NAMES sheet. this may occur due to an oversight duplicated entry from our side. the NAME sheet is used like data entry. we type all the details of the workers in it's designated columns.
    2. BUT, the ACTUAL NAMES sheet cannot have any duplicate names. however if the same name is selected then it should check for the passport number as the passport number cannot be duplicated. well many can have the same name but with different passport numbers of course.
    3. my idea is that when the cursor is placed in the names column of the ACTUAL NAMES sheet, the full list as appearing in the names column of the NAMES sheet should appear, something like a drop down list (if we do data validation then we need to select the arrow but this is not what i want). then when the 4th letter is typed, automatically it gives a list of the names having those letters (the 4 letters could be from the first name of the last name or the middle name etc etc). then i select the appropriate name and press ENTER? then automatically the full details (entire row) of that person will appear. then i move to the next row of the name column in the ACTUAL NAMES sheet and continue........
    4. may be we can use data validation but not sure about it

    look forward to hear from you

    many thanks
    rizvi

  8. #8
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Filter names with first 4 letters

    Hi RIZVI

    please find the attached file and I hope this will work perfect as u want

    steps
    1. type character how much u want ( 1 , 2 , 3 , 4 ............) and press enter , userform list box will open with some list of names related to that characters u entered along with passport nbr.
    2. double click on it which one u want , that data will copied to your actual list sheet

  9. #9
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    my friend,
    it works beautifully! thank you! just what i needed..... now my question would be how do i get this code into my working sheet? the NAMES sheet is stowed in a different location in my computer and it got about say 2000 names entered in it.

    thank you in advance naveed.....

    regards
    rizvi

  10. #10
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Filter names with first 4 letters

    Hi RIZVI

    u can do one thing make that file which I uploaded as Macro Template , Just dump your original data in NAMES Sheet and use it

    one more thing, if u satisfy with the solution then please mark the thread as SOLVED and click on *Add Reputation to say thanks

  11. #11
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    hello naveed,

    further to my last posting, my intention is to place the NAMES sheet in dropbox so that one or more persons can perform data entry whilst placing the ACTUAL NAMES sheet in each desktop. i prefer to place both in drop box BUT i guess the ACTUAL NAMES sheet will not function properly.

    regards
    rizvi

  12. #12
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Filter names with first 4 letters

    hi naveed,

    first, i already did the add reputation part. that was important over others as you have already helped.....
    sorry but i am totally new to this VB stuff. i did all along simple formulas and created stuff but VB is something that i am learning after joining your forum.

    best wishes
    rizvi

+ 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] Changing names to all Capital letters
    By Canoga56 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-15-2014, 01:06 AM
  2. VBA Get all the names same the 3 starting letters
    By mcmunoz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2013, 10:02 PM
  3. Changing column names to letters
    By esa in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 05-02-2010, 11:48 PM
  4. Extracting letters from names
    By christopherp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2007, 02:47 AM
  5. [SOLVED] Have 2 columns of names - need to filter out names not duplicated
    By Jill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-20-2006, 04:10 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