+ Reply to Thread
Results 1 to 2 of 2

Searching for specific text within a cell

  1. #1
    Forum Contributor
    Join Date
    11-07-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    126

    Searching for specific text within a cell

    Hi all,

    I am using the below formula: -


    =IFERROR(INDEX('sheet1'!$D$1:$D$3000,SMALL(IF((ISNUMBER((SEARCH($B$60,'sheet1'!$AH$1:$AH$3000))))*(ISNUMBER((SEARCH($C$55,'sheet1'!$AH$1:$AH$3000))))*(ISNUMBER((SEARCH($C$56,'sheet1'!$AH$1:$AH$3000)))),ROW('sheet1'!$D$1:$D$3000),""),ROWS('sheet2'!$B$62:$B62))),"")

    The problem that I have it with the third condition (in bold and italics). So this condition could be a number of things selected from a dynamic list and for the majority of the time it is working. However, there are two values that could be selected in this cell that are very similar apart, for example: -

    Test Sub 1
    Sub 1

    When either of the above is selected in cell C56 it lists all values from column D that holds either of the above two values in column AH (rather than separating them - if that makes sense).

    Is there an amendment I can make to the formula that it needs to search for that specific text, that could be held anywhere within the cell?

    thanks for the help in advance.

  2. #2
    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,945

    Re: Searching for specific text within a cell

    Hard to tell what might be causing the error, without seeing samples of what you are working with.

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

+ 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] Searching a cell range for specific text from another cell
    By Caldog555 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-21-2018, 02:50 PM
  2. [SOLVED] Searching a Range for a Specific Text and put a different text in a different cell
    By AngelAzrael in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2013, 09:25 AM
  3. Searching if a cell contains a specific piece of text in an IF/OR formula
    By jshaw82 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-23-2013, 02:52 AM
  4. Replies: 19
    Last Post: 04-10-2013, 08:30 AM
  5. Replies: 1
    Last Post: 12-28-2012, 09:54 PM
  6. [SOLVED] Searching cell for text in specific location and pasting result in another cell
    By AWM1966 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2012, 12:02 AM
  7. Searching for specific text within a cell
    By plannerg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2006, 05:38 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