Results 1 to 7 of 7

Thread: FILTER and extract a column

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,970
    Headers (S1):
    =CHOOSECOLS(Table1[#Headers],1,H2)

    databody (S2):
    =FILTER(CHOOSECOLS(Table1,1,H2),Table1[AAA]=G2,"No "&G2)

    and in one (V1):
    =LET(ColmAFltr,G2,ColmNo,H2,VSTACK(CHOOSECOLS(Table1[#Headers],1,ColmNo),FILTER(CHOOSECOLS(Table1,1,ColmNo),Table1[AAA]=ColmAFltr,"No "& ColmAFltr)))

    full lambda (not needed but for development) (Y1):
    =LAMBDA(ColmAFltr,ColmNo,VSTACK(CHOOSECOLS(Table1[#Headers],1,ColmNo),FILTER(CHOOSECOLS(Table1,1,ColmNo),Table1[AAA]=ColmAFltr,"No "& ColmAFltr)))(G2,H2)

    Put the red part as a name into Name Manager leaving you with (AB1):
    =MyNewTable(G2,H2)
    Attached Files Attached Files
    Last edited by p45cal; 04-15-2025 at 12:53 PM.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

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