+ Reply to Thread
Results 1 to 9 of 9

Display multiple data in one cell without summing, whilst also excluding 0s

  1. #1
    Registered User
    Join Date
    09-26-2020
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    5

    Display multiple data in one cell without summing, whilst also excluding 0s

    I have attached an example of what I am trying to achieve. I have several rows of data, each having 3 columns of data, some with required figures, some with zeros. For each row, I would like to have one cell that shows the figures from the other three columns, next to each other, not added together, but would also like to exclude any zero values.
    30, 0, 0 would show as 30
    30, 34, 0 would show as 30,34 or 30/34
    30, 0 240 would show as 30,240 or 30/240
    Any suggestions gratefully received. Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    F2 cell array formula

    HTML Code: 
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-26-2020
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    5

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Thank you for your help, that is a great solution. Unfortunately my version of Excel does not have ConcatY so I am still struggling to get it to work.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Hi,
    In F2 and down, (for up to 3 numbers in a line >0):

    Please Login or Register  to view this content.

    How many figures to the maximum you may have in one line?
    Attached Files Attached Files
    Last edited by Limor_OP; 09-26-2020 at 07:14 AM.

  5. #5
    Registered User
    Join Date
    09-26-2020
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    5

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    I have just tried it on my work system where it does have Concat, and am thinking I need to remove the two {}, and also to remove the Y after Concat? Is that correct. By doing that, I have got the correct numbers, but they are not separated by a comma as on yours, do you have any idea what I am doing wrong? If I keep the Y after Concat, it results in #NAME? If I use the {}, it just copies the formula. I am fairly new to Excel and on a steep learning curve, so apologise if I ask stupid or obvious things. It is a real challenge, but I love learning these things.

  6. #6
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Quote Originally Posted by erinsjoy View Post
    I have just tried it on my work system where it does have Concat, and am thinking I need to remove the two {}, and also to remove the Y after Concat? Is that correct. By doing that, I have got the correct numbers, but they are not separated by a comma as on yours, do you have any idea what I am doing wrong? If I keep the Y after Concat, it results in #NAME? If I use the {}, it just copies the formula. I am fairly new to Excel and on a steep learning curve, so apologise if I ask stupid or obvious things. It is a real challenge, but I love learning these things.
    Textjoin and Concat only available in MS 365 and Excel 2019

    That is a custom function
    First Press Alt+F11 to open the Visual Basic Editor
    Then you will see the Code,You can copy the code to your worksheet

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

  7. #7
    Registered User
    Join Date
    09-26-2020
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    5

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Thank you so much for your help.

  8. #8
    Registered User
    Join Date
    09-26-2020
    Location
    [email protected]
    MS-Off Ver
    2010
    Posts
    5

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Thank you for your help, I have learned much from you :-)

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Taiwan
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,382

    Re: Display multiple data in one cell without summing, whilst also excluding 0s

    Response #8

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved

+ 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] VBA - Summing column excluding first cell
    By thisandthat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2017, 07:47 PM
  2. [SOLVED] Count duplicate text values in columns whilst ignoring/excluding certain values
    By adamwestwell in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-02-2017, 05:34 AM
  3. [SOLVED] Calculating data based on adjacent cell values whilst moving down a list.
    By Terry-J in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-28-2016, 11:01 AM
  4. Replies: 4
    Last Post: 05-12-2014, 06:58 PM
  5. [SOLVED] Create multiple rows from cell value whilst preserving other cell values
    By Kjellis85 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 11-15-2013, 03:47 AM
  6. Replies: 3
    Last Post: 09-30-2009, 10:50 AM
  7. Replies: 4
    Last Post: 12-24-2008, 02:53 AM

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