+ Reply to Thread
Results 1 to 6 of 6

Extract data like filter by formulas

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Extract data like filter by formulas

    Hello everyone
    I have an attachment with two sheets one for data and the other for result

    In Data sheet there are names and for every names some values in different months
    In Result sheet I need to extract data based on specific month selected from cell H2 ..

    Thanks advanced for help
    Attached Files Attached Files
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Extract data like filter by formulas

    Any help about this topic please?
    Is there a way to transfer data based on the month name by array formulas

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,413

    Re: Extract data like filter by formulas

    I've put this formula in L4 of the Data sheet:

    =IF(INDEX($C$4:$J$26,,MATCH(Result!$H$2,C$3:J$3,0))<>"",MAX(Data!L$3:L3)+1,"")

    and copied it down (coloured blue). This identifies records in the chosen month which are not empty and gives each a unique sequential number.

    Then in A4 of the Results sheet I have this formula:

    =IF(COUNTIF(Data!$L$4:$L$26,ROWS($1:1)),INDEX(Data!A$4:A$26,MATCH(ROWS($1:1),Data!$L$4:$L$26,0)),"")

    which brings the appropriate data across from column A of the Data sheet. As you submitted an .xls file, I have made this formula compatible with versions 2003 and earlier - I would normally use an IFERROR around the INDEX/MATCH. A similar formula is in B4:

    =IF($A4<>"",INDEX(Data!B$4:B$26,MATCH(ROWS($1:1),Data!$L$4:$L$26,0)),"")

    although this tests to see if A4 is empty before bringing the corresponding data from column B of the Data sheet. In C4 I have this formula:

    =IF($A4<>"",INDEX(INDEX(Data!$C$4:$J$26,,MATCH($H$2,Data!C$3:J$3,0)),MATCH(ROWS($1:1),Data!$L$4:$L$26,0)),"")

    which brings the data from the chosen month. These three formulae are then copied down to the bottom of your table

    Just change the month using the drop-down in H2 to see the result change.

    Hope this helps.

    Pete
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-15-2015
    Location
    beirut
    MS-Off Ver
    2010
    Posts
    107

    Re: Extract data like filter by formulas

    my best friend Yasser
    look Please this file
    My friend Yasser.xlsx

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Extract data like filter by formulas

    Thanks a lot for this great and wonderful solution
    Thank you very very much

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: Extract data like filter by formulas

    Mr. Salim sorry I didn't notice your post
    Thanks a lot for sharing this great solution too

+ 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. Can I extract data to other sheet using Advance Filter
    By kisanvikas2015 in forum Excel General
    Replies: 2
    Last Post: 04-14-2015, 09:22 AM
  2. 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
  3. Extract all data to new workbook then filter and extract to new worksheets
    By graphicgoose in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2014, 08:18 PM
  4. best way to filter and extract data from large data list
    By boltonlad2k in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-19-2014, 11:26 AM
  5. [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
  6. Not Filter - maybe macro or query to extract data?
    By LHNOH in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-03-2012, 10:06 PM
  7. Macro to Filter & Extract Data to a New Workbook
    By foxluc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-05-2011, 10:53 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