+ Reply to Thread
Results 1 to 5 of 5

Using Multiple criteria search in same column, getting the opposite data that I'm requesti

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    garner, NC
    MS-Off Ver
    Excel 2010
    Posts
    10

    Using Multiple criteria search in same column, getting the opposite data that I'm requesti

    Good Evening,

    Right now I am trying to draw data based on two criteria in the same column. What I need to happen is, if any cell in column "K" reads "Random Patrol Tour Completed: Hammond Tour Pod 1E ", or"Random Patrol Tour Completed With Errors: Hammond Tour Pod 1E ", I need it to show the value of column "H", in the corresponding row. The formula I have so far is as follows:

    =IF(SEARCH(K:K="Random Patrol Tour Completed: Hammond Tour Pod 1E ",OR(K:K="Random Patrol Tour Completed With Errors: Hammond Tour Pod 1E ",)),H:H,"")

    now what is happening is it is returning the value for "H" for every cell that DOES NOT feature the two criteria listed above. What am I doing wrong in the formula?

    Attached is a sample of the fields i'm utilizing. I know its a lot of text but i'm really just concerned with columns "K" and "H". The rows that are highlighted in yellow are the ones in which i need the formula to pull the data from "H", if the two criteria are present in the same cell in column "K". Any help is greatly appreciated.

    Regards,

    jdsmith1895
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Using Multiple criteria search in same column, getting the opposite data that I'm requ

    The attached file is empty.

    Pete

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    garner, NC
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Using Multiple criteria search in same column, getting the opposite data that I'm requ

    Sorry about that.
    Attached Files Attached Files

  4. #4
    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,939

    Re: Using Multiple criteria search in same column, getting the opposite data that I'm requ

    if i understand you correctly, try this and see if it gives you what you need?3

    =IF(ISNUMBER(SEARCH("Random Patrol Tour Completed",K1,1)),H1,"")
    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

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,737

    Re: Using Multiple criteria search in same column, getting the opposite data that I'm requ

    Put this in U1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down.

    Hope this helps.

    Pete

+ 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