Can i change the "£" , "$" etc before an amount according to the currency in the column next to it?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,194
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

I have two columns
in column H i have the curencys
and in column I i have the amounts,

I need the amounts to remain numbers so i guess using either custom formating or conditional formating i'd like to show what currency the amounts are in,
So for example My data starts in H22

USD
GBP
EURO
SAR

So if H22 = USD for example I22 is foramted as $10,000.00 ,but if its GBP it shows as £10,000.00

I dont mind how this is done, even vba is fine, but it would be handy to have.
Please help if you can.

Thanks

Tony
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You can do that with conditional formatting using a formula like
Excel Formula:
="H22="USD"
and set the number format to suit.
 
Upvote 0
You need a conditional formatting rule for each currency

  1. Select range I22:I24
  2. On the Ribbon's Home tab, click Conditional Formatting, then click New Rule
  3. Click Use a Formula to Determine Which Cells to Format
  4. For the formula, enter
    =$H22="USD"
  5. Click the Format button.
  6. Select Custom. For Type enter:
  7. $#,##0;-$#,##0
  8. Click OK, click OK
  9. Repeat the steps for each currency



varios 30jun2021.xlsm
HI
22USD$123
23GBP£456
24EURO€897
Hoja10
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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