+ Reply to Thread
Results 1 to 5 of 5

How to format a number in a cell also containing text?

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    56

    How to format a number in a cell also containing text?

    How do I format a number in a cell containing mixed text and numbers (with or w/o a formula)?

    For example, say B1 contains the formula ="Total invoiced = "&SUM(A1:A10) and the result is Total invoiced = 12345.98765

    I specifically want the result formatted with 2 decimal places and a thousands (,000) separator so the result is Total invoiced = 12,345.98

    TIA for any help.

  2. #2
    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,933

    Re: How to format a number in a cell also containing text?

    Try this...
    ="Total invoiced = "&text(SUM(A1:A10),"#.00")
    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

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: How to format a number in a cell also containing text?

    formula = ="Total invoiced = "& text(SUM(A1:A10),"#,#.00")
    Last edited by ikboy; 01-18-2016 at 11:40 PM.

  4. #4
    Registered User
    Join Date
    02-04-2012
    Location
    CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    56

    Re: How to format a number in a cell also containing text?

    Quote Originally Posted by ikboy View Post
    formula = ="Total invoiced = "& text(SUM(A1:A10),"#,#.00")
    Perfect! Thanks much.

    @FDibbins - yours is close, just missing the thousands separator.

  5. #5
    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,933

    Re: How to format a number in a cell also containing text?

    oops missed the thousand sep, sorry

+ 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. Changing Cell Format from Text to Number
    By Kingswood in forum Excel General
    Replies: 2
    Last Post: 08-29-2013, 06:58 PM
  2. [SOLVED] Custom Cell Format - Number ending with text string
    By BeautyBlues in forum Excel General
    Replies: 4
    Last Post: 06-20-2013, 07:53 AM
  3. cannot change cell format from Text to Number
    By rpait in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 04-14-2013, 07:06 AM
  4. [SOLVED] Format number to a text cell
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-19-2013, 03:47 AM
  5. Replies: 2
    Last Post: 07-13-2012, 03:40 AM
  6. Format Number and text in 1 cell
    By nguyeda in forum Excel General
    Replies: 1
    Last Post: 02-18-2009, 03:04 AM
  7. change a text cell into a number format
    By chum in forum Excel General
    Replies: 5
    Last Post: 02-21-2007, 11:55 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