+ Reply to Thread
Results 1 to 7 of 7

SEARCH Fails To Return All Data

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    SEARCH Fails To Return All Data

    The attached Excel worksheet outlines a simple search method. The coding is located in cells: B4, C4 & D4. Entering a search string into B2 and pressing enter activates the search function. Dilemma: The search function is not returning all possible data. Example: in B2 enter the search string "VK9" (NO QUOTES) and press enter. The returned data includes only two possibilities, when there should be a total of six. Cells D368 - D373 reflect the search function has located the six possible data items, but only two are being displayed above. I'm at a lost of what to do at this point - I'm stumped.

    Please help. Thanks !
    Attached Files Attached Files
    Last edited by Logit; 07-06-2016 at 01:08 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: SEARCH Fails To Return All Data

    Attachment?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SEARCH Fails To Return All Data

    looks like you forgot to attach the file?

    Check for leading/trailing spaces?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: SEARCH Fails To Return All Data

    Hi Logit,

    If you extend the ascending number range in column A (i.e. A6 = 3 etc) it pulls in the six possibilities you were expecting.

    Regards,

    Snook
    Attached Files Attached Files
    Last edited by The_Snook; 07-06-2016 at 01:30 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SEARCH Fails To Return All Data

    Here is another way to do this...
    For the helper column...
    =COUNTIF($E$4:E4,"*"&$B$2&"*")
    copied down

    For the extract...
    =IFERROR(INDEX(E:E,MATCH(ROW(A1),F:F,0)),"")
    copied down

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: SEARCH Fails To Return All Data

    BEAUTIFUL ! Its always the simplest things that are overlooked. Thank you !

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: SEARCH Fails To Return All Data

    Happy to help

+ 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 and Return Select Data
    By 90Shilling in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2013, 01:03 AM
  2. Search Button with Data Return
    By ja1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-29-2013, 05:53 PM
  3. Return Data via Input Search Box
    By RicktheBlade in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2012, 09:31 PM
  4. search 2 columns return data in different row
    By kermitchell in forum Excel General
    Replies: 1
    Last Post: 02-23-2012, 09:48 AM
  5. Replies: 0
    Last Post: 01-14-2012, 02:13 AM
  6. Can I return focus to a Textbox when Validation fails as part of a Sub?
    By D3Pratt in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-28-2009, 06:01 PM
  7. Code Inserts but Search Fails using Excel 2007
    By Viper200 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2008, 04:47 AM
  8. [SOLVED] Return of blank cell if lookup fails
    By TimM in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-23-2005, 12:40 PM

Tags for this Thread

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