Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hsg hsg is offline
external usenet poster
 
Posts: 40
Default Problem in displaying number

Having problem in displaying number!

A1=25.25 (outcome of some calculations, formatted as
number with two decimal places)

In A10, I am trying to display

Please pay a sum of Rs. 25.25 only

I am using the formula A10="Please pay a sum of Rs. "&A1&" only"

Problem is coming with amounts like 25.00 or 25.50, the cell displays
for 25.50 ---- Please pay a sum of Rs. 25.5 only (what I want is 25.50)
for 25.00----- Please pay a sum of Rs. 25 only (what I want is 25.00)

separating Integar and Fraction part is not of help. Using =right(a1,1) also
does not work.

Help will be appreciated, preferably with use of functions only!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Problem in displaying number

Try it like this...

="Please pay a sum of Rs. "&TEXT(A1,"0.00")&" only"

--
Biff
Microsoft Excel MVP


"hsg" wrote in message
...
Having problem in displaying number!

A1=25.25 (outcome of some calculations, formatted as
number with two decimal places)

In A10, I am trying to display

Please pay a sum of Rs. 25.25 only

I am using the formula A10="Please pay a sum of Rs. "&A1&" only"

Problem is coming with amounts like 25.00 or 25.50, the cell displays
for 25.50 ---- Please pay a sum of Rs. 25.5 only (what I want is
25.50)
for 25.00----- Please pay a sum of Rs. 25 only (what I want is
25.00)

separating Integar and Fraction part is not of help. Using =right(a1,1)
also
does not work.

Help will be appreciated, preferably with use of functions only!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Problem in displaying number

On Wed, 24 Feb 2010 10:01:01 -0800, hsg wrote:

Having problem in displaying number!

A1=25.25 (outcome of some calculations, formatted as
number with two decimal places)

In A10, I am trying to display

Please pay a sum of Rs. 25.25 only

I am using the formula A10="Please pay a sum of Rs. "&A1&" only"

Problem is coming with amounts like 25.00 or 25.50, the cell displays
for 25.50 ---- Please pay a sum of Rs. 25.5 only (what I want is 25.50)
for 25.00----- Please pay a sum of Rs. 25 only (what I want is 25.00)

separating Integar and Fraction part is not of help. Using =right(a1,1) also
does not work.

Help will be appreciated, preferably with use of functions only!


You need to use the TEXT function to properly format the value within the
string. e.g.

="Please pay a sum of "&TEXT(A1,"""Rs. ""#0.00") & " only"

--ron
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Problem in displaying number

="Please pay a sum of Rs. "& TEXT(A1,"0.00") &" only"

--
Gary''s Student - gsnu201001


"hsg" wrote:

Having problem in displaying number!

A1=25.25 (outcome of some calculations, formatted as
number with two decimal places)

In A10, I am trying to display

Please pay a sum of Rs. 25.25 only

I am using the formula A10="Please pay a sum of Rs. "&A1&" only"

Problem is coming with amounts like 25.00 or 25.50, the cell displays
for 25.50 ---- Please pay a sum of Rs. 25.5 only (what I want is 25.50)
for 25.00----- Please pay a sum of Rs. 25 only (what I want is 25.00)

separating Integar and Fraction part is not of help. Using =right(a1,1) also
does not work.

Help will be appreciated, preferably with use of functions only!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
hsg hsg is offline
external usenet poster
 
Posts: 40
Default Problem in displaying number

It works!
So simple, but looked so difficult,

Thanks a lot!


"Gary''s Student" wrote:

="Please pay a sum of Rs. "& TEXT(A1,"0.00") &" only"

--
Gary''s Student - gsnu201001


"hsg" wrote:

Having problem in displaying number!

A1=25.25 (outcome of some calculations, formatted as
number with two decimal places)

In A10, I am trying to display

Please pay a sum of Rs. 25.25 only

I am using the formula A10="Please pay a sum of Rs. "&A1&" only"

Problem is coming with amounts like 25.00 or 25.50, the cell displays
for 25.50 ---- Please pay a sum of Rs. 25.5 only (what I want is 25.50)
for 25.00----- Please pay a sum of Rs. 25 only (what I want is 25.00)

separating Integar and Fraction part is not of help. Using =right(a1,1) also
does not work.

Help will be appreciated, preferably with use of functions only!

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
Problem is displaying formula Sathisc[_7_] Excel Discussion (Misc queries) 5 May 5th 09 06:21 PM
Problem displaying color mgossard Excel Discussion (Misc queries) 0 February 9th 08 05:15 PM
i am having problem displaying the custom properties [email protected] Excel Discussion (Misc queries) 1 November 30th 06 04:27 PM
Problem displaying recordsets in Excel Format David Alexander Excel Discussion (Misc queries) 2 February 27th 06 04:52 PM
Problem in displaying the chart ramkumar_cpt Charts and Charting in Excel 1 November 17th 05 12:16 PM


All times are GMT +1. The time now is 06:47 AM.

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"