Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Retain decimal places in a concatenate function

Hi,

I am trying to take quantity and price from 5 columns and merge them
into one cell:
From Columns Q-U:
67.40 3 192.96 5 288.85

To Column V:
67.4 3 192.96 5 288.85

However, I keep losing my two decimal places in #s like 67.40!
I used the function:
=Q2&" "&R2&" "&S2&" "&T2&" "&U2

How do I retain the two decimal places in my last column?

Thank you so much!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Retain decimal places in a concatenate function

Hi Tobey,

=TEXT(Q2,"0.00")&" "&TEXT(R2,"0.00")&" etc

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Tobey" wrote in message ...
| Hi,
|
| I am trying to take quantity and price from 5 columns and merge them
| into one cell:
| From Columns Q-U:
| 67.40 3 192.96 5 288.85
|
| To Column V:
| 67.4 3 192.96 5 288.85
|
| However, I keep losing my two decimal places in #s like 67.40!
| I used the function:
| =Q2&" "&R2&" "&S2&" "&T2&" "&U2
|
| How do I retain the two decimal places in my last column?
|
| Thank you so much!
|
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Retain decimal places in a concatenate function

How are Columns Q-U formatted? If they are formatted as text (in order to
keep the trailing zero on the 67.40 value), then your formula works fine for
me. If, on the other hand, you have Columns Q-U formatted to show two
decimal places on real (non-text) numbers, then those zeroes are not really
part of the value (they are part of the display only), and so they cannot be
part of the concatenation. You can change your formula to this and it will
work...

=TEXT(Q2,"0.00")&" "&TEXT(R2,"0.00")&" "&TEXT(S2,"0.00")&" "&
TEXT(T2,"0.00")&" "&TEXT(U2,"0.00")

Rick


"Tobey" wrote in message
...
Hi,

I am trying to take quantity and price from 5 columns and merge them
into one cell:
From Columns Q-U:
67.40 3 192.96 5 288.85

To Column V:
67.4 3 192.96 5 288.85

However, I keep losing my two decimal places in #s like 67.40!
I used the function:
=Q2&" "&R2&" "&S2&" "&T2&" "&U2

How do I retain the two decimal places in my last column?

Thank you so much!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retain decimal zeroes? Antony Excel Discussion (Misc queries) 5 September 8th 09 09:59 PM
function or format - remove decimal but retain value Geraldine Excel Programming 3 March 29th 08 12:16 AM
Decimal Places JHL Excel Discussion (Misc queries) 4 April 24th 07 06:44 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"