+ Reply to Thread
Results 1 to 8 of 8

Adding cells contain numbers separated by comma in each cell

  1. #1
    Registered User
    Join Date
    04-04-2018
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    15

    Smile Adding cells contain numbers separated by comma in each cell

    I would like to be able to add different cells horizontally and vertically as well. Each cell contain numbers separated by comma. I don't want to add the value of those numbers but the count of them. I attached example for your ref.

    Special Func.png

    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Adding cells contain numbers separated by comma in each cell

    You can use this formula in E2:

    =LEN(B2&IF(B2="","",",")&C2&IF(C2="","",",")&D2&IF(D2="","",","))-LEN(SUBSTITUTE(B2&IF(B2="","",",")&C2&IF(C2="","",",")&D2&IF(D2="","",","),",",""))

    then copy down. A similar formula in B6:

    =LEN(B2&IF(B2="","",",")&B3&IF(B3="","",",")&B4&IF(B4="","",",")&B5&IF(B5="","",","))-LEN(SUBSTITUTE(B2&IF(B2="","",",")&B3&IF(B3="","",",")&B4&IF(B4="","",",")&B5&IF(B5="","",","),",",""))

    copied across.

    Hope this helps.

    Pete

  3. #3
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Adding cells contain numbers separated by comma in each cell

    I hope you learned that this is an impractical way to compile data in a spreadsheet.

    Yes, this can be done because there are commas between numbers in the same cell. Essentially, count nonblank cells and commas.

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


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

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

    Re: Adding cells contain numbers separated by comma in each cell

    B6 cell , drag right
    HTML Code: 
    E7 cell , drag down
    HTML Code: 

  5. #5
    Registered User
    Join Date
    04-04-2018
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    15

    Re: Adding cells contain numbers separated by comma in each cell

    Thank you so much guys you are geniuses!!
    I didn't know how to do the same for all months. I attached the original file .. appreciate your help again
    Attached Files Attached Files

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

    Re: Adding cells contain numbers separated by comma in each cell

    #4 The formula will do
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-04-2018
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    15

    Re: Adding cells contain numbers separated by comma in each cell

    Thank you so much guys, I really appreciate your help!! this is wonderful place to get support and you are so fast as well!



    Regards

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,695

    Re: Adding cells contain numbers separated by comma in each cell

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 7
    Last Post: 09-17-2020, 05:16 AM
  2. Average of comma separated numbers from multiple cells
    By engineer_infinity in forum Excel General
    Replies: 7
    Last Post: 04-03-2020, 04:48 PM
  3. Replies: 4
    Last Post: 12-23-2019, 02:32 PM
  4. [SOLVED] AVERAGE of comma separated numbers in a single cell
    By EchoPassenger in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-25-2017, 09:42 AM
  5. [SOLVED] Loop through numbers separated by comma in a single cell
    By vpan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2017, 10:02 AM
  6. [SOLVED] Counting number of occurrences in cells with numbers separated by a comma
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-02-2013, 09:44 AM
  7. Counting numbers within a cell separated by comma
    By hactic in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 07-15-2011, 09:37 PM

Tags for this Thread

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