+ Reply to Thread
Results 1 to 5 of 5

text and number combined in a cell

  1. #1
    TimN
    Guest

    text and number combined in a cell

    If in cell A1 I have "The total as of March 1st was"
    And in cell D1 I have a numerical formaula that shows March's total, say
    $1,438.14877.

    If I do a formula in cell A1 and say = & D1
    I get the result of .... The Total as of March 1st was 1438.14877

    How can I get this to show ..... The Total as of March 1st was $1,438
    In other words format the number so it has $ and coma and no decimal places?

    Thanks!

  2. #2
    Trevor Shuttleworth
    Guest

    Re: text and number combined in a cell

    ="The total as of March 1st was " & TEXT(D1,"$0")

    Regards

    Trevor


    "TimN" <[email protected]> wrote in message
    news:[email protected]...
    > If in cell A1 I have "The total as of March 1st was"
    > And in cell D1 I have a numerical formaula that shows March's total, say
    > $1,438.14877.
    >
    > If I do a formula in cell A1 and say = & D1
    > I get the result of .... The Total as of March 1st was 1438.14877
    >
    > How can I get this to show ..... The Total as of March 1st was $1,438
    > In other words format the number so it has $ and coma and no decimal
    > places?
    >
    > Thanks!




  3. #3
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    =a1 & " " & Dollar(d1,0)

    or if you are putting this in A1, ="The total as of March 1st was " & Dollar(d1,0)

    You don't want to use text because the comas won't show.
    Google is your best friend!

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Thumbs up

    Quote Originally Posted by TimN
    If in cell A1 I have "The total as of March 1st was"
    And in cell D1 I have a numerical formaula that shows March's total, say
    $1,438.14877.

    If I do a formula in cell A1 and say = & D1
    I get the result of .... The Total as of March 1st was 1438.14877

    How can I get this to show ..... The Total as of March 1st was $1,438
    In other words format the number so it has $ and coma and no decimal places?

    Thanks!
    Hi TimN,

    Try this

    =A1&" $"&LEFT(LEFT(D1,5)*1,1)*1&","&RIGHT(LEFT(D1,5)*1,3)*1

    oldchippy

  5. #5
    Trevor Shuttleworth
    Guest

    Re: text and number combined in a cell

    Or maybe better:

    ="The total as of March 1st was " & TEXT(D1,"£#,##0")

    Regards

    Trevor


    "Trevor Shuttleworth" <[email protected]> wrote in message
    news:[email protected]...
    > ="The total as of March 1st was " & TEXT(D1,"$0")
    >
    > Regards
    >
    > Trevor
    >
    >
    > "TimN" <[email protected]> wrote in message
    > news:[email protected]...
    >> If in cell A1 I have "The total as of March 1st was"
    >> And in cell D1 I have a numerical formaula that shows March's total, say
    >> $1,438.14877.
    >>
    >> If I do a formula in cell A1 and say = & D1
    >> I get the result of .... The Total as of March 1st was 1438.14877
    >>
    >> How can I get this to show ..... The Total as of March 1st was $1,438
    >> In other words format the number so it has $ and coma and no decimal
    >> places?
    >>
    >> Thanks!

    >
    >




+ 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