+ Reply to Thread
Results 1 to 3 of 3

Filtering sorting the data using excel formulas-arrays

  1. #1
    Registered User
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    8

    Filtering sorting the data using excel formulas-arrays

    Hi,

    I've been looking for an example of this solution.
    http://www.exceltactics.com/make-fil...l-using-small/

    I've tried to change it for the spreadsheet attached, but I can't get it to work. I'm not sure if I'm on the track.

    Data sheet contains information to replicate on the Report sheet, but filtered to just 'Outstanding'. So only rows with 'Outstanding' are listed with the data.

    Thanks

    If I can see example working, I will understand it quicker.
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Filtering sorting the data using excel formulas-arrays

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    Status
    Outstanding
    2
    ------
    ------
    ------
    ------
    ------
    3
    4
    Number
    Date
    ID
    Customer
    Comments
    5
    200
    2/1/2015
    3
    Fred Ltd
    Text 1
    6
    100
    3/1/2015
    4
    Ben plc
    Text 2
    7


    Enter this array formula** in A5:

    =IFERROR(INDEX(Data!A:A,SMALL(IF(Data!B$2:B$5=$B$1,ROW(Data!B$2:B$5)),ROWS(A$5:A5))),"")

    Enter this array formula** in B5 and copy across to E5

    =IFERROR(INDEX(Data!C:C,SMALL(IF(Data!$B$2:$B$5=$B$1,ROW(Data!B$2:B$5)),ROWS(B$5:B5))),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Format cell B5 as Date
    Format cell C5 as General

    Select the range A5:E5 and copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    2010
    Posts
    8

    Re: Filtering sorting the data using excel formulas-arrays

    Thanks very much Tony. I'll have a go later.

+ 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. Filtering/sorting the data using excel formulas/arrays
    By ExMAN999 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-09-2014, 07:45 PM
  2. [SOLVED] Sorting through arrays of data
    By engineernoob in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2013, 06:09 AM
  3. 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
  4. 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
  5. Data Filtering/Sorting
    By Jearnizck in forum Excel General
    Replies: 3
    Last Post: 06-11-2012, 08:31 PM
  6. 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
  7. Sorting/Filtering data ???
    By gws-mtc in forum Excel General
    Replies: 1
    Last Post: 04-11-2006, 04:36 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