Number formatting Question

cmmadn

Active Member
Joined
Aug 2, 2004
Messages
299
Dear sirs,

I am hoping someone can help, I am trying to correctly format my monetary value so that it shows any required 00's i.e £25.00 or £24.50. Using the code below the end zeros are dropped £25 or £24.5.

I am finding this desperately frustrating as I cannot solve this issue.

I would be most grateful to anyone who can point me in the right direction.

Code:
If rngCashBalance < 0 Then
   wskClientValuation.Range("b" & (intStartLine + 3)) = "Please send a cheque for " _
    & Application.RoundDown((rngClient.Offset(0, 16) - (rngClient.Offset(0, 16) * 2)) + rngClient.Offset(0, 18), 2) & " to cover the fees now due plus the amount overdrawn."
Else
   wskClientValuation.Range("b" & (intStartLine + 3)) = " As there is insufficient cash on your account, please forward a cheque for the remaining balance of " _
                        & Application.RoundDown(rngClient.Offset(0, 18) - rngClient.Offset(0, 16), 2)

Regards

Andrew
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try

Code:
If rngCashBalance < 0 Then
   wskClientValuation.Range("b" & (intStartLine + 3)) = "Please send a cheque for " _
    & WorksheetFunction.Dollar(Application.RoundDown((rngClient.Offset(0, 16) - (rngClient.Offset(0, 16) * 2)) + rngClient.Offset(0, 18), 2), 2) & " to cover the fees now due plus the amount overdrawn."
Else
   wskClientValuation.Range("b" & (intStartLine + 3)) = " As there is insufficient cash on your account, please forward a cheque for the remaining balance of " _
                        & WorksheetFunction.Dollar(Application.RoundDown(rngClient.Offset(0, 18) - rngClient.Offset(0, 16), 2), 2)
 
Upvote 0
Hi Vog,

Thanks for this, can you tell me how to get £ (GBP) rather than a $ (USD) sign

I have tried .Pound and .Sterling

Thanks

Andrew
 
Upvote 0
Hi

DOLLAR() should format with whatever your currency symbol is set to in Windows. For me it gives a £ sign.
 
Upvote 0
Sorry I don't know anything about MACs. Try this alternative

Code:
If rngCashBalance < 0 Then
   wskClientValuation.Range("b" & (intStartLine + 3)) = "Please send a cheque for £" _
    & Format(Application.RoundDown((rngClient.Offset(0, 16) - (rngClient.Offset(0, 16) * 2)) + rngClient.Offset(0, 18), 2), "0.00") & " to cover the fees now due plus the amount overdrawn."
Else
   wskClientValuation.Range("b" & (intStartLine + 3)) = " As there is insufficient cash on your account, please forward a cheque for the remaining balance of £" _
                        & Format(Application.RoundDown(rngClient.Offset(0, 18) - rngClient.Offset(0, 16), 2), "0.00")
 
Upvote 0

Forum statistics

Threads
1,214,853
Messages
6,121,935
Members
449,056
Latest member
denissimo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top