+ Reply to Thread
Results 1 to 21 of 21

Strange Formating problem with text and formula in same cell

  1. #1
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    272

    Strange Formating problem with text and formula in same cell

    Hello, I am trying to do something for work where I need text and a formula in the same cell, and I have a formula that works, see below:

    "at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"

    But the problem is if the value the formula is pulling in is something like $34.10 per hour, (where the second decimal digit is a zero) the result shows:

    at the rate of $34.1 per Hour

    I don’t want it to show $34.1 as the value, I need it to show $34.10, I need that zero on the end.

    I have spent an hour trying to make it work to no avail, does anyone have any suggestions? Is there a FORMAT function I can stick on there?

    Thanks a bunch!!!

  2. #2
    Forum Contributor
    Join Date
    06-21-2005
    Location
    Cambridge, England
    Posts
    118
    try

    "at the rate of $"&fixed(('[RATE.xls]Rate1'!$L$954),2)&" per Hour"


    R

  3. #3
    Forum Contributor
    Join Date
    08-03-2005
    Posts
    272
    awesome!! thanks

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    This works:

    "at the rate of "&DOLLAR('[RATE.xls]Rate1'!$L$954)&" per Hour"

    Regards,
    Ron

  5. #5
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  6. #6
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  7. #7
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  8. #8
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  9. #9
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  10. #10
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  11. #11
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  12. #12
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  13. #13
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  14. #14
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  15. #15
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  16. #16
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  17. #17
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  18. #18
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  19. #19
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  20. #20
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

  21. #21
    Ron Rosenfeld
    Guest

    Re: Strange Formating problem with text and formula in same cell

    On Wed, 3 Aug 2005 18:35:57 -0500, caliskier
    <caliskier.1t7qme_1123113935.0338@excelforum-nospam.com> wrote:

    >"at the rate of $"&('[RATE.xls]Rate1'!$L$954)&" per Hour"


    You could use the TEXT worksheet function.

    Something like:

    "at the rate of "&TEXT([RATE.xls]Rate1!$L$954),"$#,##0.00")&" per Hour"

    or, if you wanted the result to be a number that you could use in other cells,
    you could use the formula: ='[RATE.xls]Rate1'!$L$954

    and the custom format of:

    "at the rate of "$#,##0.00" per hour"


    Format/Cells/Number/Custom Type: "at the rate of "$#,##0.00" per hour"





    --ron

+ 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