+ Reply to Thread
Results 1 to 18 of 18

Combine the numbers from cells with comma

  1. #1
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Combine the numbers from cells with comma

    Hi, we have the following sheet and want to combine B2:C13 in D2 with comma

    for example 25000,3600,5014

    we have more data approx till C160, help pls

    we are using Excel 2010
    Attached Files Attached Files

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Combine the numbers from cells with comma

    Mau be Try

    D2=IF(D1="",B2,D1&","&B2)

    drag down
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Combine the numbers from cells with comma

    Hi ,

    The quickest way is :

    Enter in cell F2 the formula :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In cell F3 , enter the formula :
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Copy down as far as you want. Since Excel has a limit of 32,767 characters in a cell , there is a limit to how far you can go.

    Note that though a cell can contain 32,767 characters , only the first 1024 will be displayed.

    Narayan
    Last edited by NARAYANK991; 11-05-2019 at 01:43 AM.

  4. #4
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Thank you all, For B column data its working fine, you all have given a best way to do it, thanks for it but what about C column, we also need column C data in D2

    help pls
    Last edited by Ajay45822; 11-05-2019 at 01:57 AM.

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Combine the numbers from cells with comma

    May be try

    =IF(D12="",B13,D12&","&B13&","&C13)

  6. #6
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Quote Originally Posted by shukla.ankur281190 View Post
    May be try

    =IF(D12="",B13,D12&","&B13&","&C13)

    No, its not working

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: Combine the numbers from cells with comma

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Combine the numbers from cells with comma

    Do share expected result

  9. #9
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    HI AliGW, read the Forum Rule #3, from next time we will search that forum also and if find that anyone from my partner have asked the question we will post the url here,

    https://www.mrexcel.com/forum/excel-...ers-comma.html
    Last edited by AliGW; 11-05-2019 at 02:24 AM. Reason: Please don't quote unnecessarily!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,745

    Re: Combine the numbers from cells with comma

    Your 'partner'? OK ...

    Cross-posting in itself is NOT an offence: cross-posting without links is.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Combine the numbers from cells with comma

    Code for UDF
    Please Login or Register  to view this content.
    To paste the code
    Tab Developer -->Visual Basic
    VB window opens
    Insert --> Module
    Paste the code
    Close VB window
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  12. #12
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Quote Originally Posted by shukla.ankur281190 View Post
    Do share expected result


    Result:
    25000, 741, 3600, 7214, 5014, 60, 4608, 547, 9105, 7458, 4258 9516, 3214, 3514, 1246, 5, 1264777, 16547, 5248, 15410, 6194, 2001, 4376, 5014

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Combine the numbers from cells with comma

    Pl see post #11

  14. #14
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Hi kvsrinivasamurthy Ji, thanks for your attention

    In Sheet 11, column c data is not added

    Final Result will be:
    25000, 741, 3600, 7214, 5014, 60, 4608, 547, 9105, 7458, 4258 9516, 3214, 3514, 1246, 5, 1264777, 16547, 5248, 15410, 6194, 2001, 4376, 5014
    Last edited by Ajay45822; 11-05-2019 at 02:43 AM. Reason: sentance is incomplete

  15. #15
    Registered User
    Join Date
    12-03-2012
    Location
    CHENNAI , INDIA
    MS-Off Ver
    Excel 2007
    Posts
    93

    Re: Combine the numbers from cells with comma

    Hi ,

    In the first cell , say F1 , put in this formula :

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


    In F2 , enter this formula :

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


    Copy this down as far as your data extends.

    Narayan

  16. #16
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,586

    Re: Combine the numbers from cells with comma

    Change Range in formula
    Range can be selected as required.

    =JoinNumbers(B2:C130)
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 11-05-2019 at 04:03 AM.

  17. #17
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Thanks NARAYANK991 Ji for the help

  18. #18
    Forum Contributor
    Join Date
    10-30-2019
    Location
    Agra
    MS-Off Ver
    Office 2010
    Posts
    241

    Re: Combine the numbers from cells with comma

    Thanks kvsrinivasamurthy Ji,

    Problem solved, you helped me a lot

    Many thanks to you

+ 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. How to combine cells together by match seperated by comma
    By rajamdade in forum Excel General
    Replies: 1
    Last Post: 06-05-2019, 03:12 AM
  2. [SOLVED] Combine Text with numbers driven from a formula, and include a comma
    By Perk1961 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-23-2015, 10:54 AM
  3. Combine multiple cells into one and separate it by a comma
    By rose9812in in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 09-18-2015, 02:58 AM
  4. Split numbers in one cell deliminated by comma to separate cells
    By renix in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-27-2015, 02:07 PM
  5. Replies: 8
    Last Post: 12-08-2014, 09:27 PM
  6. [SOLVED] Compare two cells with comma delimited numbers and display the numbers that are NOT duplic
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 02:22 PM
  7. [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

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