+ Reply to Thread
Results 1 to 16 of 16

Need help creating search function of list

  1. #1
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Need help creating search function of list

    Hi everyone! I am new to this forum. I would really appreciate your help!

    See below for my example (comments further help to explain what I am trying to do; link to image also at very bottom). I am trying to program a search function in F4. When a user inputs a last name into this cell, the formulas (starting in F6 and continuing downward) should read the cells in C5 downward. Each time the last name matches, the list on right will display the project name the person is working on (i.e. what corresponds in column B).

    This is to help me keep track of projects we have assigned to various people, and to see what projects people are working on. Again, would really appreciate your help.

    Lastly, I want to do this without using VBA.

    THANK YOU!

    Example.jpg
    Last edited by romeogbs19; 10-25-2012 at 10:21 AM.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: HELP! Need help creating search function of list

    romeogbs19,

    Welcome to the forum!
    Is there any reason you wouldn't just use the filter you have on your headers? Click the filter drop-down, use the "Text Filters" -> "Contains" option
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: HELP! Need help creating search function of list

    The reason that won't work is because he needs "*Jordan" and "Jordan*" entries to appear.
    If you could post what you have in excel form a simple vlookup using wildcards and helper columns should work.
    Please click the * icon below if I have helped.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: HELP! Need help creating search function of list

    Melvin, The Text Filters -> Contains will show all entries with Jordan, regardless of other text in the cell.

    Attached is an example workbook showing both solutions. The first sheet is called 'Filter Solution' and shows what the filter looks like after using "Text Filter" -> "Contains" -> Type "Jordan" -> OK

    Then second sheet is called 'Formula Solution' and is a mirror of the picture shown in the original post.
    In that sheet, cell F6 and copied down to cell F22 is this formula:
    Please Login or Register  to view this content.
    I still believe there's no reason to use the formula solution though.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: HELP! Need help creating search function of list

    My mistake.
    I couldn't access my excel, and was making an educated guess.

  6. #6
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: HELP! Need help creating search function of list

    THANK YOU SO MUCH, tigeravatar! This works beautifully!

    I didn't even know about the filter version :-) I'm still glad to use the formula version though; it might be easier for others to use.

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: HELP! Need help creating search function of list

    @ romeogbs19

    Welcome to the forum.

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  8. #8
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: HELP! Need help creating search function of list

    Hi everyone:

    Quick question - I noticed that for the example provided me by tigeravatar that it was capturing "Dan" even for "JorDAN".

    Can anyone help fix that?

    Cutter - Sorry about that - switched to not solved quite yet :-)

    Thanks!!!

  9. #9
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: HELP! Need help creating search function of list

    If you include a "Space" prior, it should take care of that (ex. " Dan" instead of "Dan").

  10. #10
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: HELP! Need help creating search function of list

    Thanks for the suggestion, Melvinrobb. That doesn't seem to work, though.

  11. #11
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: HELP! Need help creating search function of list

    It should work. I just tested with this simple example:

    Please Login or Register  to view this content.
    If you filter for dan then both are coming up. If filter for space before dan (e.g. " dan" instead of "dan" without the quotation marks) then only the second is shown.

    abousetta

    P.S. Also can you please modify your title by removing " HELP! Need help " as this does not add anything to your title. Thanks.
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  12. #12
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: HELP! Need help creating search function of list

    Unfortunately, this still doesn't seem to work.

    While placing the "Space" before "Dan" cuts down the list, it doesn't seem to work when you have more than 1 variation. If you use the spreadsheet from tigeravatar and search for " Dan", only one project will appear even though Dan is part of other projects.

    Is there any way to do this without running into this problem? Really appreciate everyone's help here :-)

    BTW, abousetta - changed the title ;-)

  13. #13
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need help creating search function of list

    romeogbs19,

    Can you post an example workbook that is experiencing the issue?

  14. #14
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Need help creating search function of list

    In this case you can use the advanced options for the filter by clicking on "Text Filters" >>

    Please Login or Register  to view this content.
    without the quotes.
    Last edited by abousetta; 10-25-2012 at 11:36 AM. Reason: put the space in the right place

  15. #15
    Registered User
    Join Date
    10-18-2012
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Need help creating search function of list

    Hi tigeravatar -- actually, if you type in "Dan" on the spreadsheet you so kindly shared above, it will list those with "JorDAN", too.

    Thank you again for looking into this!

  16. #16
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Need help creating search function of list

    Using the exammple workbook I provided, you can adjust the formula in cell F6 to the following, and then copy down:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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