ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Format numbers / Concatenate (https://www.excelbanter.com/excel-discussion-misc-queries/32138-format-numbers-concatenate.html)

dbizek

Format numbers / Concatenate
 
How can I get cell A1 to show trailing zeros?

I've entered =CONCATENATE(A1," inches")

When A1 equals 1.50 or .060 it displays 1.5 inches or .06 inches

I need those missing zeros!
THANKS

Barb R.

How about

=CONCATENATE(TEXT(A1,"0.000")," inches")

or

=TEXT(A1,"0.000") & " inches"

"dbizek" wrote:

How can I get cell A1 to show trailing zeros?

I've entered =CONCATENATE(A1," inches")

When A1 equals 1.50 or .060 it displays 1.5 inches or .06 inches

I need those missing zeros!
THANKS


Barb R.

Alternatively, you can format cell A1 as CUSTOM

Type - 0.000 "inches"

"Barb R." wrote:

How about

=CONCATENATE(TEXT(A1,"0.000")," inches")

or

=TEXT(A1,"0.000") & " inches"

"dbizek" wrote:

How can I get cell A1 to show trailing zeros?

I've entered =CONCATENATE(A1," inches")

When A1 equals 1.50 or .060 it displays 1.5 inches or .06 inches

I need those missing zeros!
THANKS


dbizek

That works, thanks! How about this? Is there a way to contol the number of
decimal places in that string? IE if its 1.500 i'd like to show 1.50 but if
it's .060 i'd like to show .060 any ideas?

"Barb R." wrote:

How about

=CONCATENATE(TEXT(A1,"0.000")," inches")

or

=TEXT(A1,"0.000") & " inches"

"dbizek" wrote:

How can I get cell A1 to show trailing zeros?

I've entered =CONCATENATE(A1," inches")

When A1 equals 1.50 or .060 it displays 1.5 inches or .06 inches

I need those missing zeros!
THANKS


Ron Rosenfeld

On Thu, 23 Jun 2005 09:56:04 -0700, dbizek
wrote:

That works, thanks! How about this? Is there a way to contol the number of
decimal places in that string? IE if its 1.500 i'd like to show 1.50 but if
it's .060 i'd like to show .060 any ideas?

"Barb R." wrote:


Yes there is, but you will first have to state the rules by which you want to
determine the number of decimal places in the result.


--ron


All times are GMT +1. The time now is 11:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com