+ Reply to Thread
Results 1 to 5 of 5

Help filtering 2 columns silmutaneously.

  1. #1
    Registered User
    Join Date
    02-02-2021
    Location
    Malta
    MS-Off Ver
    365
    Posts
    2

    Help filtering 2 columns silmutaneously.

    screens.png

    Sorry for the bad picture, basically I want the full lists for the value "2020" in both columns. If I put the filter on both columns, it only returns one result as its trying to match them. However each column has a lot of results from the year 2020.

    I have tried to make a new column returning a true or false response to =OR(G1=2020,H1=2020) however is there another way?

    Thanks a lot.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Help filtering 2 columns silmutaneously.

    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-02-2021
    Location
    Malta
    MS-Off Ver
    365
    Posts
    2

    Re: Help filtering 2 columns silmutaneously.

    Quote Originally Posted by Glenn Kennedy View Post
    Hi there.

    A picture is worth 1,000 words. An Excel sheet is worth 1,000 non-editable pictures.

    Please read the yellow banner about sample worksheets, at the top of the screen. Act on its guidelines and post a SMALL sample sheet.
    Thanks, Attaching an example. Appreciate the help!
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Help filtering 2 columns silmutaneously.

    Did you mean AND or OR??

    This returns values where column E AND column F are 2020. There is only one matching result. Row 11.

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($D$2:$D$30)/((YEAR($D$2:$D$30)=2020)*(YEAR($E$2:$E$30)=2020)),ROWS(I$1:I1))),"")

    copied across and down.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Help filtering 2 columns silmutaneously.

    If you meant OR.... either column E OR column F amend to:

    =IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW($D$2:$D$30)/((YEAR($D$2:$D$30)=2020)+(YEAR($E$2:$E$30)=2020)),ROWS(I$1:I1))),"")

+ 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. Replies: 7
    Last Post: 08-11-2018, 02:20 AM
  2. Automate hiding columns, adding columns, inserting formulas, and filtering
    By hpatel517 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2016, 11:17 AM
  3. [SOLVED] VBA Filtering Columns based on Cell Value for multiple columns
    By MikeRoot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-31-2014, 08:07 AM
  4. [SOLVED] Filtering Columns when some adjacent columns are blank
    By rg1954 in forum Excel General
    Replies: 5
    Last Post: 04-16-2013, 10:00 AM
  5. Replies: 5
    Last Post: 10-01-2010, 05:00 AM
  6. Refreshing multiple pivots silmutaneously
    By flyingbanana in forum Excel General
    Replies: 8
    Last Post: 06-23-2008, 05:07 PM
  7. [SOLVED] Filtering columns within VB
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2006, 08:25 AM

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