Use Currency Code to define Formatting String

pjmorris

Well-known Member
Joined
Aug 2, 2012
Messages
1,988
Office Version
  1. 2016
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
 

Some videos you may like

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

pbornemeier

Well-known Member
Joined
May 24, 2005
Messages
3,889
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:
 

Watch MrExcel Video

Forum statistics

Threads
1,127,117
Messages
5,622,827
Members
415,934
Latest member
adstocking

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
Top