+ Reply to Thread
Results 1 to 2 of 2

How to format number with mixed number and text?

  1. #1
    nomail1983@hotmail.com
    Guest

    How to format number with mixed number and text?

    I put the following formula into a cell:
    =6.65+0.15&" lb". It did what I intended, namely:
    add the numbers and display the result with the
    tag, i.e. "6.8 lb".

    However, the Number format seems to have no effect
    on the displayed result. For example, if Decimal
    Places is 2, the above result is still "6.8 lb",
    not "6.80 lb". I get more decimal places only if
    they are "needed". For example, =6.65+0.1511&" lb"
    displays 4 decimal places, even if the Number
    format is 2 decimal places.

    How can I control the format of the numeric part
    of such "mixed" cell contents? Or is the lack of
    control simply the cost of mixing content?


  2. #2
    RagDyeR
    Guest

    Re: How to format number with mixed number and text?

    Number formats work *only* for numbers!

    Your " lb" converted your "number" to Text, no matter what the cell format
    says.

    So, try a *custom* format of:

    #.00" lb"
    --

    HTH,

    RD
    =====================================================
    Please keep all correspondence within the Group, so all may benefit!
    =====================================================

    <nomail1983@hotmail.com> wrote in message
    news:1130000849.344377.267140@g43g2000cwa.googlegroups.com...
    I put the following formula into a cell:
    =6.65+0.15&" lb". It did what I intended, namely:
    add the numbers and display the result with the
    tag, i.e. "6.8 lb".

    However, the Number format seems to have no effect
    on the displayed result. For example, if Decimal
    Places is 2, the above result is still "6.8 lb",
    not "6.80 lb". I get more decimal places only if
    they are "needed". For example, =6.65+0.1511&" lb"
    displays 4 decimal places, even if the Number
    format is 2 decimal places.

    How can I control the format of the numeric part
    of such "mixed" cell contents? Or is the lack of
    control simply the cost of mixing content?



+ 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