+ Reply to Thread
Results 1 to 8 of 8

Search Button with Data Return

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Search Button with Data Return

    I have a very large tool calibration spreadsheet with about 6000 rows of data. Im looking at created a Search feature which will return a few cells of information for ease of use. This spreadsheet is shared with about 100+ employees i know ctrl-f works but im just looking for a feature to make it quick and simple to look up tools.

    I would like to enter the reference number and have the calibration due date, location, and certificate hyperlink be returned. Ive done some searching on the forums but cant seem to find the proper code.

    Thanks Guys
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search Button with Data Return

    "calibration due date, location, and certificate hyperlink be returned"
    Where is the search to be done? Is it column B? If so, in which column are the returns to be copied?

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Search Button with Data Return

    Essentially B12 will be my input which will search [Reference Number] in table 1
    B13 will return the [Calibration Due Date] in table 1
    B14 will return the [Location] in table 1
    and B15 will return the [Cert] in table1

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search Button with Data Return

    I think you sheet cells are locked, can not see the rows below 14, so to get around this issue, I copied sheet1 in to sheet2 and can now see all the data. I have attached the code on to the search button on sheet2. I hope this would not create a huge problem.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-24-2013
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Search Button with Data Return

    Works wonders but on some items i try to look up on the actual database im getting


    Run-time error '9'
    Subscript out of range

  6. #6
    Registered User
    Join Date
    04-24-2013
    Location
    oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Search Button with Data Return

    Quote Originally Posted by ja1234 View Post
    Works wonders but on some items i try to look up on the actual database im getting


    Run-time error '9'
    Subscript out of range
    Appologies i did not change the sheetname on my actual database in the code.

    Works wonderfully thanks a bunch

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Search Button with Data Return

    Ja,
    You are welcome!
    Could you please now close (Mark) this thread as solved? Go in to the top right-hand side of this page, choose "Thread Tools" from the menu, then select "solved" from the drop down menu.

  8. #8
    Registered User
    Join Date
    05-17-2012
    Location
    Columbus, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    14

    Thumbs up Re: Search Button with Data Return

    Hey all - End of day and bored, So I put this together from the original sample file. Using a few formulas on the far left to find the best match (1 criteria, 2, or all 3), I then wrote a marco to find and hide any unmatched rows... I did this in two seperate macros, allowing to 'Reset' and unhide if wanted.

    Not sure if this is the solution you were looking for, but pretty user friendly with a ton of different applications. Check it out and let me know what you think.

    Paul
    Attached Files Attached Files

+ 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