+ Reply to Thread
Results 1 to 8 of 8

Search Function or VLOOKUP

  1. #1
    Registered User
    Join Date
    07-21-2018
    Location
    North Wales
    MS-Off Ver
    2016
    Posts
    4

    Search Function or VLOOKUP

    Hi All, i'm trying to create a function in a spreadsheet and not sure on the best way to do it:

    I have a list which contains some data on sheet 1. On sheet 2, I want to create a search box that looks at the data on sheet 1, once ive search for it and clicked on the item I want, I want it to copy that row of data onto sheet 2 below the search box into a 'selected print area' then have the option to clear the search bar and search for another item. I could end up with as many as 10 line of data on my 'printable area'.

    I hope somebody can help and point me in the right direction.


    TIA

  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 2406
    Posts
    44,662

    Re: Search Function or VLOOKUP

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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

  3. #3
    Registered User
    Join Date
    07-21-2018
    Location
    North Wales
    MS-Off Ver
    2016
    Posts
    4

    Re: Search Function or VLOOKUP

    Hopefully that's attached, you will see that there is a formula on sheet 2 which affects the data on sheet 1.

    Hope that makes sense, thanks for the help.
    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 2406
    Posts
    44,662

    Re: Search Function or VLOOKUP

    That would require VBA. here's a much simpler alternative. Select the value in b7 to B10 and add the quantity at column A...

    Happy to explain
    Attached Files Attached Files

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

    Re: Search Function or VLOOKUP

    ... and spot the deliberate (!!) mistake. The formula in E7, copied down, should be

    =IFERROR(1/(1/(D7*A7)),"")

  6. #6
    Registered User
    Join Date
    07-21-2018
    Location
    North Wales
    MS-Off Ver
    2016
    Posts
    4

    Re: Search Function or VLOOKUP

    Thanks Glenn, that was another way I was thinking of doing it however my list will and could eventually contain over 100 items and that's a lot to scroll through to find the right one, hence why I'm trying to use a search function where if I type in 'Martin' I get all those options narrowed down.. Can I do this while using the drop down lists?

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

    Re: Search Function or VLOOKUP

    Sounds like what you need is this...

    Hyperlink to www is included in the file. can you take it from here? Enable macros on opening
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    07-21-2018
    Location
    North Wales
    MS-Off Ver
    2016
    Posts
    4

    Re: Search Function or VLOOKUP

    Just looking at this again, ive managed to do the searchable dropdown box, as per the link you sent me. Next question is how do I once ive searched for an item and clicked on it and it has pasted into the selected cell, how do I clear the searchbox and the next item I search for adds to the box below and so on and so forth?

    Can I do this or do I have to create a searchable drop down list for each row of text?

+ 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] Search function with Vlookup
    By ashokdd in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-11-2017, 03:32 PM
  2. VLOOKUP with Search/Match Function Help
    By Jdugan4 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2016, 06:13 PM
  3. [SOLVED] Vlookup with Search function in list
    By newbie4 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-13-2015, 11:40 PM
  4. Vlookup Search Function
    By overwilhelmed in forum Excel General
    Replies: 2
    Last Post: 09-19-2011, 06:04 PM
  5. Vlookup and Search function in one
    By triplescoop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2011, 08:21 AM
  6. Condensing vlookup and search function
    By pvo2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2008, 11:49 PM
  7. Vlookup & search function help
    By VBA Noob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2006, 07:37 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