+ Reply to Thread
Results 1 to 15 of 15

Creating a Filtered List

Hybrid View

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Creating a Filtered List

    Help please Guys!!

    I have a long list of cells that return different values in different cells based on some editable search criteria.

    The list is some 750 cells long but at any one time only 2 or 3 of these may have data in them. I am looking to create a simple way of collating the non blank values at the top of the list. I'll try to give a truncated example.


    This is how the data may appear in A10:B18

    A B
    10
    11 F25
    12 F26
    13
    14
    15 F27
    16
    17 F28
    18

    I would like a simple read out that would give me the result below in A1:B4

    A B
    1 F25
    2 F26
    3 F27
    4 F28


    I hope this makes sense.

    Thanks in advance.

    Ed Jones

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Creating a Filtered List

    Use Pivot Table


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Thanks, I'm working on trying that but I'm struggling to format it how I want and to get it to auto update.

    I'll keep at it - all suggestions are and have been gratefully received.

  4. #4
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by :) Sixthsense :) View Post
    Use Pivot Table
    Thanks, I'm working on trying that but I'm struggling to format it how I want and to get it to auto update.

    I'll keep at it - all suggestions are and have been gratefully received.

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    Hi,

    Not quite sure I understand. You say you want the returned results to go in A1:B4, but what are these results in the A column, then?

    Why is F25, for example, which has a corresponding value of 11 in your source list, suddenly paired with 1 in the results?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  6. #6
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by XOR LX View Post
    Hi,

    Not quite sure I understand. You say you want the returned results to go in A1:B4, but what are these results in the A column, then?

    Why is F25, for example, which has a corresponding value of 11 in your source list, suddenly paired with 1 in the results?

    Regards
    My fault. My formatting is terrible. Ignore column A, the data is listed in column B - i was trying to demonstrate that I want the data listed at the top of the sheet. The numbers are row references.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    Put this array formula** in B1 and copy down until you start to get blanks for the results:

    =IF(ROWS($1:1)>COUNTIF($B$10:$B$18,"<>"),"",INDEX($B$10:$B$18,SMALL(IF($B$10:$B$18<>"",ROW($B$10:$B$18)-MIN(ROW($B$10:$B$18))+1),ROWS($1:1))))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

  8. #8
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by XOR LX View Post
    Put this array formula** in B1 and copy down until you start to get blanks for the results:

    =IF(ROWS($1:1)>COUNTIF($B$10:$B$18,"<>"),"",INDEX($B$10:$B$18,SMALL(IF($B$10:$B$18<>"",ROW($B$10:$B$18)-MIN(ROW($B$10:$B$18))+1),ROWS($1:1))))

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    That seems to have worked perfectly. Thank you very very much. Many headaches saved!!

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    You're welcome.

  10. #10
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by XOR LX View Post
    You're welcome.
    This now works a treat but.......

    Is there a way of getting the same result but from 2 rows of data? ie examine the data in column B and C but return the results in one column only?

  11. #11
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    Could you post an example (preferably in an actual workbook this time!) including your expected results?

    Regards

  12. #12
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by XOR LX View Post
    Could you post an example (preferably in an actual workbook this time!) including your expected results?

    Regards
    Attached as requested.Base.xlsx

  13. #13
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    Thanks. Again, array formula:

    =IF(ROWS($1:1)>COUNTIF($A$14:$B$30,"<>"),"",INDIRECT(TEXT(SMALL(IF($A$14:$B$30<>"",ROW($A$14:$B$30)*10^6+COLUMN($A$14:$B$30)),ROWS($1:1)),"R000000C000000"),0))

    Regards

  14. #14
    Registered User
    Join Date
    03-21-2014
    Location
    Swadlincote
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Creating a Filtered List

    Quote Originally Posted by XOR LX View Post
    Thanks. Again, array formula:

    =IF(ROWS($1:1)>COUNTIF($A$14:$B$30,"<>"),"",INDIRECT(TEXT(SMALL(IF($A$14:$B$30<>"",ROW($A$14:$B$30)*10^6+COLUMN($A$14:$B$30)),ROWS($1:1)),"R000000C000000"),0))

    Regards
    Once again - works perfectly. Can't thank you enough for the help.

  15. #15
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Creating a Filtered List

    No worries. Glad I could help.

+ 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] Excel VBA - Issue in Naming Filtered Range on a Filtered List.
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 01:17 PM
  2. Replies: 3
    Last Post: 07-05-2013, 03:32 PM
  3. Creating a filtered populated list from another tab
    By Uvuriel03 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-07-2013, 12:15 PM
  4. Creating a sub list from filtered data
    By Morrythemonk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-24-2012, 04:24 AM
  5. Creating a filtered validation list based on selection of another
    By dgtwitch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-21-2010, 09:20 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