Format cell with currency informed in other cell using a single formula

Tahitipit

New Member
Joined
Feb 3, 2015
Messages
5
HI,

I cell B1 I have a drop down list to select the currencies that are written in the ISO currency code (EUR, USD,....)
cell C1 I have the qty
Cell D1 the unit value
Cell E1 is C1*D1

I am looking for a formula to format the cell E1 as currency using the currency informed in B1

I have found solutions with conditional formating, with concatenation and also with macro , but cannot figure out a formula that would use B1 as argument to set the cell format as currency and using the currency in B1

Any idea ?

Thanks
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Have a lookup table (F1:G3 in this example) that you can define the currency formats for each ISO code. Then use a VLOOKUP within a TEXT function to format the value.

[TABLE="width: 148"]
<tbody>[TR]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD="align: left"]US[/TD]
[TD="align: left"]$#,##0.00[/TD]
[/TR]
[TR]
[TD="align: left"]EU[/TD]
[TD="align: left"]#,##0.00 €[/TD]
[/TR]
[TR]
[TD="align: left"]UK[/TD]
[TD="align: left"]£#,##0.00[/TD]
[/TR]
</tbody>[/TABLE]

=TEXT(C1*D1,VLOOKUP(B1,F1:G3,2,0))
 
Last edited:
Upvote 0
Another way is,


Excel 2013/2016
ABCDEF
1C-ListQuantityUnit ValueNetValidation
2USD212.525.00$USD
3EUR
4GBP
5YEN
Sheet11
Cell Formulas
RangeFormula
D2=TEXT(SUM(B2*C2),"#,##0.00"&IF(A2="USD",CHAR(36),IF(A2="EUR",CHAR(128),IF(A2="GBP",CHAR(163),IF(A2="YEN",CHAR(165))))))
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
Members
453,021
Latest member
Justyna P

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