+ Reply to Thread
Results 1 to 10 of 10

Trying to create a formula that will display items in a clean list

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Utah
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Trying to create a formula that will display items in a clean list

    I am trying to create a more sophisticated formula that will do the following:

    Formula in Column C that will check Column B for the word "TRUE". If a cell in Column B contains "TRUE", then display the content in the corresponding cell in Column A.

    For example: =IF(B2=TRUE,"A2","")

    Screen Shot 2013-04-25 at 3.59.55 PM.png

    The only problem with the function above is it only checks one specific cell, rather than the entire column. Also, If I drag this formula down across several rows, It leaves a Blank where the result is False.

    I would like to find a formula that will search the entire Column B... and for every cell that contains the word TRUE, List the items from Column A, but without spaces. So Column C will contain only the TRUE items in a clean, "space free" list.

    For example:

    Screen Shot 2013-04-25 at 4.01.24 PM.png

    I would appreciate any help or suggestions you can give me!

    Thanks,
    JNLONG

  2. #2
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Trying to create a formula that will display items in a clean list

    Hi jnlong

    Try the following array formula in C1, to commit: CTRL + SHIFT + ENTER and copy down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  3. #3
    Registered User
    Join Date
    04-25-2013
    Location
    Utah
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Re: Trying to create a formula that will display items in a clean list

    Kevin,

    Thanks for the quick reply! I pasted the above formula in cell C1 and then clicked Command + Enter (for mac) and copied the formula down through 8 rows. The result shows only the name "Jared" in each of the cells in Column C. See attached.

    Screen Shot 2013-04-25 at 4.41.34 PM.png

    I'm unsure what the key combination is for... COMMAND + ENTER. Perhaps I'm doing it wrong?

    Any additional help would be greatly appreciated

    Thanks,
    JNLONG

  4. #4
    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,929

    Re: Trying to create a formula that will display items in a clean list

    Please do not upload pictures when you have a sample workbook to upload instead. Pictures are impossible to edit here, and not every-one can upload then (firewalls and stuff)
    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

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

    Re: Trying to create a formula that will display items in a clean list

    Try this...

    Array entered in C1:

    =IFERROR(INDEX(A:A,SMALL(IF(B$1:B$8,ROW(B$1:B$8)),ROWS(C$1:C1))),"")

    I use a PC and array formulas are entered using the key combo of CTRL, SHIFT, ENTER. Don't know what the key combo is in a Mac.

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

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Trying to create a formula that will display items in a clean list

    Hi jnlong

    When i logged off yesterday, I thought again and it came to my mind that there were no duplicate values in column A. After taking another look at your file you do not need that formula I posted in post #2. use the following in C1 and copy down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    To commit ctrl + shift + enter.

    Try the following to enter a array formula on a Mac: CMD+SHFT+RETURN or CTRL+SHFT+RETURN

  7. #7
    Registered User
    Join Date
    04-20-2013
    Location
    europe
    MS-Off Ver
    Excel 2016
    Posts
    12

    Re: Trying to create a formula that will display items in a clean list

    Thank you !
    I was looking for the same thing as jnlong. It works perfectly.

  8. #8
    Registered User
    Join Date
    04-25-2013
    Location
    Utah
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Re: Trying to create a formula that will display items in a clean list

    Worked like a charm. Thank you Kevin UK!

  9. #9
    Registered User
    Join Date
    04-25-2013
    Location
    Utah
    MS-Off Ver
    Excel for Mac 2011
    Posts
    7

    Re: Trying to create a formula that will display items in a clean list

    Thank you Tony, this formula works great!

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

    Re: Trying to create a formula that will display items in a clean list

    You're welcome. Thanks for the feedback!

+ 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