Use Currency Code to define Formatting String

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
2,172
Office Version
  1. 365
Platform
  1. Windows
If a user selects a currency, say EUR for Euro, or USD of US Dollar, then the string to apply to the .NumberFormat parameter will be '[$€-x-euro2] #,##0.00' or '[$USD] #,##0.00'.

However, I want a user to simply select any valid currency code: GBP, BGN or RMB for example and then be able to find the relevant string to pass to .NumberFormat - but I can't find a list of all the valid format strings?

Any ideas gratefully received.

Regards
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
If you type 'Currency' into windows help you will be shown the popup from the above site that allows you to select for about 600 languages and the additional settings button shows a tab that holds their currency display.

Combining this site
Add a Free Quote Widget to your Website in Minutes (3-ltr abbreviation & numeric layout) with
Currency symbol - Wikipedia (Symbol)

would probably get you what you want.

Other refs:
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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