• Autofiltering on Two Columns (Excel)

    Author
    Topic
    #362890

    Hi All .. .

    I am using autofiltering. I would like to get all the rows that contain a certain word in either column E OR in column J. If I do a custom filter in Column E, I have limited my rows for the filter on Column J.

    Is there a way to get all the rows that meet this conditon:

    Custom Search on Column E OR Custom Search on Column J

    Thanks,

    Viewing 1 reply thread
    Author
    Replies
    • #552300

      Cat

      Sebastian says Hi, can you come out and play? rofl

      OK how about:
      1) Make a column with a Formula say something like:
      =IF(OR(E1=”Certain Word”,J1=”Certain Word”),1,0)
      This will give you 1s where you find your word in either column, or both, and 0 if you don’t, then…
      2) Filter on that column.

      Will that work for you?

      Wassim

      • #552302

        Hi Wassim,

        ummm, say “Hi” to Sebastian for me. Whose Sebastian?

        Yes, this will work great. I had tried to concatenate the two columns into another column, but one of the columns was pretty wordy — so, this was changing the rowheights causing the spreadsheet to not look too pretty. I like your method better.
        Thanks.

        • #552328

          Thanks Rory and Wassim,

          I ended up using this formula in a new column:

          =IF(ISERROR(FIND($B$1,E1)+FIND($B$1,J4)),0,1)

          The user then enters the word or phase in Cell B1, clicks on a macro button which filters on this hidden column for the 1s.

          Again, thanks.

        • #552342

          catoothaker

          Sebastian is my cute long-hair Persian cat who’s 6 months birthday is today…

          Wassim

    • #552301

      Hi Cat,
      I think you’ve got two basic choices here:
      1. Add an extra column that concatenates E and J and apply your custom autofilter (isn’t that a contradiction in terms?) to that column.
      2. Use advanced filtering rather than autofiltering.
      Hope that helps.

    Viewing 1 reply thread
    Reply To: Autofiltering on Two Columns (Excel)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: