PC Review


Reply
Thread Tools Rate Thread

Currency Format within a Concatenation

 
 
quinnculver@gmail.com
Guest
Posts: n/a
 
      8th May 2007
Hello,

How can I change the format of a variable to currency within a
concatenation?

For example, suppose I have

cells(1,1).value="The total is " & s

but I want s to be formatted as currency.

Thanks.

 
Reply With Quote
 
 
 
 
JE McGimpsey
Guest
Posts: n/a
 
      8th May 2007
One way:

Cells(1, 1).Value = "The total is " & Format(s, "£0.00")

In article <(E-Mail Removed)>,
(E-Mail Removed) wrote:

> Hello,
>
> How can I change the format of a variable to currency within a
> concatenation?
>
> For example, suppose I have
>
> cells(1,1).value="The total is " & s
>
> but I want s to be formatted as currency.
>
> Thanks.

 
Reply With Quote
 
Niek Otten
Guest
Posts: n/a
 
      8th May 2007
cells(1,1).value="The total is " & Format (s,"$0.00")

Or a more comprehensive format code of your choice

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Hello,
|
| How can I change the format of a variable to currency within a
| concatenation?
|
| For example, suppose I have
|
| cells(1,1).value="The total is " & s
|
| but I want s to be formatted as currency.
|
| Thanks.
|


 
Reply With Quote
 
strive4peace
Guest
Posts: n/a
 
      8th May 2007
Hi Quinn,

try

cells(1,1) = "The total is " & format(s, "$#,##0.00")


Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



(E-Mail Removed) wrote:
> Hello,
>
> How can I change the format of a variable to currency within a
> concatenation?
>
> For example, suppose I have
>
> cells(1,1).value="The total is " & s
>
> but I want s to be formatted as currency.
>
> Thanks.
>

 
Reply With Quote
 
strive4peace
Guest
Posts: n/a
 
      8th May 2007
p.s.

I think you can also do this:

cells(1,1) = "The total is " & format(s, "currency")

Warm Regards,
Crystal
*
(: have an awesome day
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*



strive4peace wrote:
> Hi Quinn,
>
> try
>
> cells(1,1) = "The total is " & format(s, "$#,##0.00")
>
>
> Warm Regards,
> Crystal
> *
> (: have an awesome day
> *
> MVP Access
> Remote Programming and Training
> strive4peace2006 at yahoo.com
> *
>
>
>
> (E-Mail Removed) wrote:
>> Hello,
>>
>> How can I change the format of a variable to currency within a
>> concatenation?
>>
>> For example, suppose I have
>>
>> cells(1,1).value="The total is " & s
>>
>> but I want s to be formatted as currency.
>>
>> Thanks.
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add new currency Symbol in Format/Cell/Currency NOORZAD Microsoft Excel Misc 2 22nd Jun 2009 07:59 AM
Excel's financial currency format vs. Access currency format RoBo Microsoft Access Forms 0 4th Feb 2008 04:03 PM
Concatenation and Currency =?Utf-8?B?VGVkc2tp?= Microsoft Access Reports 1 28th Dec 2006 06:23 AM
Format concatenation Gene Hora Microsoft Access Reports 6 23rd Feb 2005 12:58 AM
Conversion from currency value to currency text format gdselva Microsoft Excel Programming 2 18th Aug 2004 10:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:45 AM.