Results 1 to 6 of 6
  1. #1
    Lounger
    Join Date
    Jun 2002
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Autofiltering on Two Columns (Excel)

    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,

  2. #2
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Autofiltering on Two Columns (Excel)

    Cat

    Sebastian says Hi, can you come out and play? <img src=/S/rofl.gif border=0 alt=rofl width=15 height=15>

    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
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  3. #3
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: Autofiltering on Two Columns (Excel)

    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.
    Regards,
    Rory

    Microsoft MVP - Excel

  4. #4
    Lounger
    Join Date
    Jun 2002
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autofiltering on Two Columns (Excel)

    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.

  5. #5
    Lounger
    Join Date
    Jun 2002
    Posts
    44
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Autofiltering on Two Columns (Excel)

    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.

  6. #6
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Autofiltering on Two Columns (Excel)

    catoothaker

    Sebastian is my cute long-hair Persian cat who's 6 months birthday is today...

    Wassim
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •