+ Reply to Thread
Results 1 to 3 of 3

Filter function; Filter both rows and columns

Hybrid View

  1. #1
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    861

    Filter function; Filter both rows and columns

    I have a pretty large data set that I am trying to than use a Filter Function to both filter the Rows (for specific regions) and also the columns for both specific period and and specific expense item.

    I can use the Filter Function to filter and display either the filtered rows or the filtered columns. But I can't get it to do both in the formula?

    Can anyone see where I am maybe going wrong with the below?

    This will filter the rows, but returns all of the columns
    =FILTER('TTM Stats'!A27:AIZ676,('TTM Stats'!E27:E676=P39))
    This will filter the columns, but not all of the rows
    =FILTER('TTM Stats'!A27:AIZ676,('TTM Stats'!A26:AIZ26="CY "&P12)*('TTM Stats'!A23:AIZ23=P40))
    But when I try either of the below to filter both the rows and the columns, it gives a #Value error?
    =FILTER('TTM Stats'!A27:AIZ676,('TTM Stats'!E27:E676=P39)*('TTM Stats'!A26:AIZ26="CY "&P12)*('TTM Stats'!A23:AIZ23=P40))
    =FILTER('TTM Stats'!A27:AIZ676,('TTM Stats'!E27:E676=P39)+('TTM Stats'!A26:AIZ26="CY "&P12)*('TTM Stats'!A23:AIZ23=P40))

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Filter function; Filter both rows and columns

    Hello,
    can you please upload a small sample file? please see the yellow banner at the top of the page for further instructions.

  3. #3
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,142

    Re: Filter function; Filter both rows and columns

    maybe this:
    =FILTER(FILTER('TTM Stats'!A27:AIZ676,'TTM Stats'!E27:E676=P39),('TTM Stats'!A26:AIZ26="CY "&P12)*('TTM Stats'!A23:AIZ23=P40))
    EDIT:

    or this:
    =FILTER(
    FILTER('TTM Stats'!A27:AIZ676,('TTM Stats'!A26:AIZ26="CY "&P12)*('TTM Stats'!A23:AIZ23=P40)),'TTM Stats'!E27:E676=P39)
    Last edited by janmorris; 05-02-2022 at 05:12 PM.
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

+ 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. Excel 2016 Filter Sorting Columns With No Filter
    By klavierkatze in forum Excel General
    Replies: 5
    Last Post: 05-13-2019, 11:01 PM
  2. [SOLVED] Filter data by Columns (a,b,c etc) and mark the top 3 items for each filter.
    By margetc in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 04-15-2018, 04:18 AM
  3. Replies: 5
    Last Post: 11-24-2014, 11:58 AM
  4. Replies: 6
    Last Post: 10-16-2014, 08:42 AM
  5. VB CODE OR FUNCTION FOR FILTER IN Columns /Rows
    By master sachin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2014, 01:42 PM
  6. Delete Rows hidden by either Auto Filter and Advanced Filter
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:29 AM
  7. [SOLVED] Filter function based on rows and columns
    By dj_420 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-06-2012, 10:43 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