ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Need help with displaying 0's after decimals (https://www.excelbanter.com/new-users-excel/240787-need-help-displaying-0s-after-decimals.html)

Mike

Need help with displaying 0's after decimals
 
Hi,
I have 2 cells. One with the number that has 2 decimals and one with text.
When I use the "&" function to combine the 2 into 1 cell, all of the numbers
with the 0 at the end disappear. Example: cell 1: 3.80, cell 2: +80.
cell1&cell2 resulted in 3.8 +80 instead of 3.80 +80.
Any help would be appreciated.
mike

Dave Peterson

Need help with displaying 0's after decimals
 
You'll have to provide the formatting:

=text(a1,"0.00")&...
same with dates and times, too
=...&text(a2,"mm/dd/yyyy")





mike wrote:

Hi,
I have 2 cells. One with the number that has 2 decimals and one with text.
When I use the "&" function to combine the 2 into 1 cell, all of the numbers
with the 0 at the end disappear. Example: cell 1: 3.80, cell 2: +80.
cell1&cell2 resulted in 3.8 +80 instead of 3.80 +80.
Any help would be appreciated.
mike


--

Dave Peterson

Mike

Need help with displaying 0's after decimals
 
Thank you so much Dave.
I worked really well.
Mike

"Dave Peterson" wrote:

You'll have to provide the formatting:

=text(a1,"0.00")&...
same with dates and times, too
=...&text(a2,"mm/dd/yyyy")





mike wrote:

Hi,
I have 2 cells. One with the number that has 2 decimals and one with text.
When I use the "&" function to combine the 2 into 1 cell, all of the numbers
with the 0 at the end disappear. Example: cell 1: 3.80, cell 2: +80.
cell1&cell2 resulted in 3.8 +80 instead of 3.80 +80.
Any help would be appreciated.
mike


--

Dave Peterson



All times are GMT +1. The time now is 06:43 PM.

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