+ Reply to Thread
Results 1 to 5 of 5

Searching for multiple terms in multiple cell columns

  1. #1
    Registered User
    Join Date
    03-18-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Searching for multiple terms in multiple cell columns

    Hi There,

    I am quite new to excel and would really appreciate some help with a homework question I have to prepare for a presentation next week. I have just imported a query from Microsoft access into EXCEL and need some help finding relationships between two different cell columns. I have attached the file. What I am trying to do is If the word "TRUE" displays in column B AND word "Visa" appears in column C, than for a letter "A" to appear in column E. I have been experimenting with the IF(ISNUMBER(SEARCH) function but can only seem to search for one word (played around with that in column D). Any help would be really appreciated, thank you!
    Attached Files Attached Files

  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,938

    Re: Searching for multiple terms in multiple cell columns

    It is against forum policy to do your homework for you (although that does not seem to be what you are asking)

    Looking at your file though, 2 things you need to consider...
    because you use TRUE in col B, you need to search for TRUE, not "true" because that is a reserved word in excel
    if you need to test for 2 condtitions that need to be met, you need to use the AND() function
    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

  3. #3
    Registered User
    Join Date
    03-18-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Searching for multiple terms in multiple cell columns

    perfect thank you i figured it out and used this equation

    =IF(AND(ISNUMBER(SEARCH("TRUE",B:B)),ISNUMBER(SEARCH("Visa",C:C))),"A","")

  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,938

    Re: Searching for multiple terms in multiple cell columns

    OK seeing as you have an answer, this is what I worked out...

    =IF(AND(B2=TRUE,C2="visa"),"A","") copied down

  5. #5
    Registered User
    Join Date
    03-18-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Searching for multiple terms in multiple cell columns

    wow that's a much easier equation thank you

+ 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 for multiple terms in a cell
    By hermanblau in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-10-2013, 09:30 AM
  2. Replies: 12
    Last Post: 02-01-2013, 03:05 PM
  3. finding multiple broad terms in columns then pasting entire rows to new sheet
    By thirdcoast in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-01-2010, 03:19 AM
  4. Multiple terms in same cell?
    By ml20080424 in forum Excel General
    Replies: 8
    Last Post: 04-30-2008, 03:47 PM
  5. Searching multiple columns on multiple sheets
    By jonhunt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2007, 12:25 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