+ Reply to Thread
Results 1 to 8 of 8

How to return list from values skipping blanks

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    How to return list from values skipping blanks

    I have a list of items in column A and a list of their status in Column B. I would like to return a separate list that just shows which items have a specific status. I would like this list to be just as long as items that meet the criteria, meaning no blank rows. Attached is an example. Here the status is either blank or says "ATTENTION" I would like to have a list of products that just say attention. Any help is MUCH appreciated.

    List Function.xlsx

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to return list from values skipping blanks

    You can sort by Col B and delete the blank rows
    or
    Use the filter to do the same

  3. #3
    Valued Forum Contributor Melvinrobb's Avatar
    Join Date
    06-19-2012
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2013
    Posts
    1,128

    Re: How to return list from values skipping blanks

    Is the attached what you are looking for?
    Attached Files Attached Files
    Please click the * icon below if I have helped.

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

    Re: How to return list from values skipping blanks

    Enter this array formula** in D2:

    =IFERROR(INDEX(A:A,SMALL(IF(B$2:B$19="Attention",ROW(B$2:B$19)),ROWS(D$2:D2))),"")

    ** 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.

    Copy down until you get blanks.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    Fort Lauderdale, Florida
    MS-Off Ver
    Excel 2011
    Posts
    46

    Re: How to return list from values skipping blanks

    Thank you so much everyone, solved!

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

    Re: How to return list from values skipping blanks

    You're welcome. Thanks for the feedback!

  7. #7
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: How to return list from values skipping blanks

    Hello Tony,

    could you do the same but for values along a row rather than down a column?

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

    Re: How to return list from values skipping blanks

    The forum owner would prefer that you start your own thread rather than asking your question in someone elses thread.

    If you start a new thread and I see it I will gladly assist you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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