+ Reply to Thread
Results 1 to 10 of 10

Using Advanced Filter to Extract data from certain Columns

  1. #1
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Using Advanced Filter to Extract data from certain Columns

    I have Headers on sheet "Extract Specified Cols"

    I would like to know how to extract the data for these columns from sheet "Imported Data" based on criteria in AA1:AA2 (AA2 is blank as I would like to extract all the branches" , using advanced filter

    I have tried using advanced filter but can extract the data from the source sheet

    It would be appreciated if someone can provide the steps to achieve this
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    31,169

    Re: Using Advanced Filter to Extract data from certain Columns

    Please Login or Register  to view this content.
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Using Advanced Filter to Extract data from certain Columns

    Thanks for the help John

    I only want to copy the cols containing these headers below

    Stock Number Ref DESCRIPTION Amount Branch

  4. #4
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Using Advanced Filter to Extract data from certain Columns

    I managed to resolve the issue

    See my code below

    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,008

    Re: Using Advanced Filter to Extract data from certain Columns

    Imported Data

    A2=CHOOSECOLS('Imported Data'!A2:H10,1,2,6,7,4)

  6. #6
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Using Advanced Filter to Extract data from certain Columns

    Thanks Caracala, but unfortunately ChooseCols not available in office 2021

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,786

    Re: Using Advanced Filter to Extract data from certain Columns

    You can use this:

    =CHOOSE({1,2,3,4,5},'Imported Data'!A2:A10,'Imported Data'!B2:B10,'Imported Data'!F2:F10,'Imported Data'!G2:G10,'Imported Data'!D2:D10)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,008

    Re: Using Advanced Filter to Extract data from certain Columns

    Imported Data

    A2=IFERROR(INDEX('Imported Data'!$A$2:$G$10,,MATCH('Extract Specified Cols'!A$1,'Imported Data'!$A$1:$G$1,0)),"")

    Copy across

  9. #9
    Forum Contributor
    Join Date
    07-12-2018
    Location
    South Africa
    MS-Off Ver
    Office 2024
    Posts
    2,888

    Re: Using Advanced Filter to Extract data from certain Columns

    Thanks Ali. It works perfectly

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,786

    Re: Using Advanced Filter to Extract data from certain Columns

    Thanks for the rep.

+ 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] Advanced Filter to extract data from sheets 2 onwards
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-07-2022, 09:53 AM
  2. [SOLVED] Advanced FILTER Function to Extract Data Subject to Conditions
    By andrewc in forum Excel General
    Replies: 7
    Last Post: 02-02-2022, 03:55 AM
  3. [SOLVED] VBA to Extract Data using advanced Filter
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-26-2019, 10:01 AM
  4. Advanced Filter Extract Range Error
    By rob_h in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-30-2019, 06:50 PM
  5. Extract data using Advanced Filter and VBA
    By vadivel77 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-08-2015, 12:22 PM
  6. [SOLVED] Advanced Filter - extract data to new sheet
    By schnautza in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 01-28-2014, 02: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