+ Reply to Thread
Results 1 to 14 of 14

List from a Table

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    List from a Table

    I'd like to pull a list of names from column 1 where "pst" exists in column 5.

    In this instance the list would look something like this :

    column 5
    beverly
    ginger

    jame pst pst
    beverly pst pst pst
    ginger pst pst pst

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: List from a Table

    in Column 6, enter =IF(UPPER(TRIM(B4))="PST",$A4,""). Just change the reference to B1 if your list starting from A1

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    =IFERROR(INDEX($A$2:$A$5,SMALL(IF($E$2:$E$5="pst",ROW($A$2:$SA$5)-ROW($A$2)+1),ROWS($A$1:$A1))),"")

    confirmed wit CTRL+SHIFT+ENTER not just ENTER and copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    How would it change if I was trying to look at range, say based on the instances of "pst" in both column 4 and 5?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    =IFERROR(INDEX($A$2:$A$5,SMALL(IF($D$2:$D$5="pst",IF($E$2:$E$5="pst",ROW($A$2:$SA$5)-ROW($A$2)+1)),ROWS($A$1:$A1))),"")

  6. #6
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    Can I use defined Names? Like such:

    =IFERROR(INDEX(SMCatMerchs,SMALL(IF(CycleA="pst",ROW(SMCatMerchs)-ROW('2013'!$C$18)+1),ROWS('2013'!$C$1:$C1))),"")

    ---------- Post added at 09:57 AM ---------- Previous post was at 09:55 AM ----------

    I suppose it'd be helpful to point out that I want the List to generate on a separate tab.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    Yes as long as the named ranges are all same size...

    =IFERROR(INDEX(SMCatMerchs,SMALL(IF(CycleA="pst",ROW(SMCatMerchs)-MIN(ROW(SMCatMerchs))+1),ROWS($C$1:$C1))),"")

    CSE confirmed.

  8. #8
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    Apologies. I can't seem to get this to work.

    Here's an example of what I'm trying to do :
    Attached Files Attached Files

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    Your named range for the managers is Managers... not SMCatMerchs

    Try:

    =IFERROR(INDEX(Managers,SMALL(IF(CycleA="pst",ROW(Managers)-MIN(ROW(Managers))+1),ROWS($C$1:$C1))),"")

    Also, your CycleA is 3 columns wide, so this will return the names in pst is any of those 3 columns... (assumes once max per row)

  10. #10
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    Unfortunately, I keep getting a "false" reponse.

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    After entering the formula, are you holding the CTRL and SHIFT keys down, then pressing ENTER? You should see curly { } brackets appear around the formula.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    I see the brackets, but All I retrieve on the list pafe is a "false"
    Attached Files Attached Files

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: List from a Table

    You've got several formulas in one cell.

    Expand the formula bar up top and you will see... remove all except the correct one, then do the CSE confirmation... I posted a workbook in my last post.

  14. #14
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: List from a Table

    Excellent Stuff. Thank you! Now to work on the Data Validation link and it's money.

+ 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