+ Reply to Thread
Results 1 to 6 of 6

Filter with re arranged columns and rows

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Filter with re arranged columns and rows

    Hi all,
    I've been using the folllowing formula ;

    Index(range, {Rows to return},sequence(,,columns( range)))

    This works and brings back the re arranged rows and the columns in the range.#
    The problem is when I try to filter, I keep getting Calc error. If I have all the rows it all seems to work; so a formula like this
    (please see attachment.)

    FILTER(INDEX(range,SEQUENCE(ROWS(all rows)),SEQUENCE(,COLUMNS(all columns))),columns to filter on="criteria")

    I've attached a file and any help as to why I can't filter on the rearranged rows would be a help. I can filter on re arranged columns so don't see whey not.

    Richard.
    Attached Files Attached Files

  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
    43,986

    Re: Filter with re arranged columns and rows

    The formula array - {5;3;11;1} - seems a bit manual. Is there a criterion which defines the rows you choose (including the header row at the foot of the table??).
    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
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Re: Filter with re arranged columns and rows

    Hi Glenn,
    the order of rows is really irrelevant, I'm trying to figure a way to filter the rows after having rearranged them, if I re arrange rows I can filter on coluns and if I re arrange columns I can filter on rows . what I'm trying to do is figure a way to re arrange and then filter .
    If you want it dynamic you can nest a match function but it's not relevant to the problem.

    Richard.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Filter with re arranged columns and rows

    Is this what you are trying to do?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    608

    Re: Filter with re arranged columns and rows

    Thanks Fluff,
    I'll try it tomorrow, but it looks promising. I have found a way around the problem and that is to change the syntax to;
    Index(filter(range, criteria), { rows to return}, sequence(columns(, column range). Which does return what I was after.

    Richard.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Filter with re arranged columns and rows

    Thanks Fluff,
    I'll try it tomorrow,
    Ok, that's fine.

+ 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] Filter re arranged non adjacent columns
    By Dicken in forum Office 365
    Replies: 5
    Last Post: 11-02-2021, 10:18 AM
  2. [SOLVED] Symmetrical Data in Column to be arranged in Rows
    By haroonkhurshid in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2021, 12:29 PM
  3. [SOLVED] Large PDF File Needs to be arranged in Columns
    By pick44 in forum Excel General
    Replies: 5
    Last Post: 10-05-2019, 08:38 AM
  4. [SOLVED] Data from improperly arranged rows from different tables
    By LesliePrabakar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-27-2016, 04:44 AM
  5. Pivot table for data already arranged in columns
    By birdonawire in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-06-2015, 02:45 PM
  6. Replies: 0
    Last Post: 11-19-2013, 03:43 PM
  7. Multiple values in the columns should be re-arranged into rows
    By gulred21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2013, 11:19 PM

Tags for this Thread

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