+ Reply to Thread
Results 1 to 4 of 4

How to Search Excel Cells for Multiple Text Comparison

  1. #1
    Forum Contributor
    Join Date
    10-25-2010
    Location
    Phoenix, Arizona, USA
    MS-Off Ver
    O365
    Posts
    202

    How to Search Excel Cells for Multiple Text Comparison

    I have several text criteria for a range that I need to hide the corresponding rows if found.

    I have tried the following:
    Please Login or Register  to view this content.
    The code works, but takes a fairly significant amount of time to complete.

    Is there a more efficient way of accomplishing this?

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: How to Search Excel Cells for Multiple Text Comparison

    have you tried combining all the IF (TEST1) ELSEIF (TEST2) ELSEIF (TEST3) .... code into a single IF (TEST1) OR (TEST2) OR (TEST3) ... style already?

    Please Login or Register  to view this content.
    BTW, I'm not sure if this will speed up the code or not. I'm hoping it would improve slightly.

  3. #3
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: How to Search Excel Cells for Multiple Text Comparison

    Does your data really go to J15000?

    If not, the first thing you should do is narrow the search range down to the actual range with data.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: How to Search Excel Cells for Multiple Text Comparison

    Use AdvancedFilter like
    Please Login or Register  to view this content.
    Assuming header in J2.

+ 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] enter text based on search of multiple cells
    By akamexcel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2015, 04:47 PM
  2. [SOLVED] comparison of cells with text input
    By r.gieruszczak in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2014, 04:55 PM
  3. [SOLVED] SumIfs with multiple criteria (search column for cells w/ text containing)
    By jerrydiaz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2013, 01:06 PM
  4. [SOLVED] COUNTIF search range of cells for multiple specific text.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 06:38 PM
  5. Search multiple cells and return text from corresponding match
    By middy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-01-2011, 05:00 PM
  6. Problems searching Excel cells for InStr text comparison, cant get cell values ...
    By BaLLZaCH in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-27-2008, 05:52 AM
  7. Text comparison between multiple columns
    By phanh in forum Excel General
    Replies: 1
    Last Post: 03-16-2008, 03:24 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