+ Reply to Thread
Results 1 to 5 of 5

Filtering/sorting the data using excel formulas/arrays

  1. #1
    Registered User
    Join Date
    10-29-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Filtering/sorting the data using excel formulas/arrays

    Hi everyone,

    Been googling for too long. Need a way to filter data without using filters or sort function. Instead I need a function/formula/array formula that would copy the rows which meet particular condition IF in specific column. No VBA.

    I have a dataset, people's profiles, with the column Status among others. When Status is "1" I'd like the profile (or row) to be copied to the specified area. I tried INDEX, MATCH, ROW, SMALL, COUNTIF, VlOOKUP, SEARCH functions, I am desperate. Please, any help would be massively appreciated.

    I attached a file and the HELP file which I found really useful, but with a flaw (it doesn't copy one-condition files). My best guess it will be array (Ctrl+Shift+Enter) functions with some high-tech INDEX and MATCH functions.

    Sources already used:
    http://www.excelforum.com/excel-gene...sing-sort.html (FORUM)
    http://www.get-digital-help.com/2009...gories-part-2/ (ATTACHED FILE, GREAT FORMULA)

    https://forum.openoffice.org/en/foru...ic.php?t=38056
    http://chandoo.org/wp/2008/10/22/sor...sing-formulas/

    Thank you in advance!

    Attached files could be found here
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Filtering/sorting the data using excel formulas/arrays

    Try this ARRAY formula, copied down and across...
    =IFERROR(INDEX(A$2:A$16,SMALL(IF($D$2:$D$16=1,ROW($A$2:$A$16)-1),ROWS($A$1:A1))),"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Filtering/sorting the data using excel formulas/arrays

    A non-ARRAY method would use a helper column (I used F) with this copied down...
    =IF(D2=1,F1+1,F1)

    Then for the answers, use this, copied down and across...
    =IFERROR(INDEX(A$2:A$16,MATCH(ROW(A1),$F$2:$F$16,0)),"")

  4. #4
    Registered User
    Join Date
    10-29-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Filtering/sorting the data using excel formulas/arrays

    Thank you very much! What I was looking for!

    Also this array formula: =IFERROR(INDEX($A$2:$E$16,SMALL(IF($D$2:$D$16=1,MATCH(ROW($D$2:$D$16),ROW($D$2:$D$16)),""),ROW(B2)),COLUMN(B2)),"")

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Filtering/sorting the data using excel formulas/arrays

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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] Sorting through arrays of data
    By engineernoob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 06:09 AM
  2. Sorting data into groups using formulas in excel
    By KazumaX122 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2013, 02:04 PM
  3. Question sorting text to columns & fetching data from arrays.
    By J-Style in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2012, 07:20 AM
  4. Data Filtering/Sorting
    By Jearnizck in forum Excel General
    Replies: 3
    Last Post: 06-11-2012, 08:31 PM
  5. Excel 2007 : Sorting arrays in vba for excel 2007
    By sunita in forum Excel General
    Replies: 7
    Last Post: 06-03-2010, 03:00 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