Extract currency code from another cell to include in a cell's number format ?

pennep

New Member
Joined
Apr 7, 2015
Messages
14
Hi,

I searched a lot for this but I couldn't find a solution for this. I wonder if you could help.. To explain my problem, I have created this example. Please see the table below.

I am given Travel cost, Logistic cost and Accommodation cost in GBP (£1200, £1000, £1000 respectively)

These costs needs to be converted into a other currencies using the Exchange Rate as shown in the table. While doing so, Currency Codes from the first cell in each row needs to be included in other cells' (Travel cost, Logistic cost, Accommodation cost and Total). The cost cells are in number format so that figures in these cells could be used for other purposes. (concatenation would make the cell value a TEXT)

I could make it work using conditional formatting, but there are more than 80 currencies and it requires lots of rules.. Is there any smarter way of doing this?

Price in GBP1200100010003200
Currency (LCU)Exchange RateTravel CostLogistic costsAccommodation costsTotal
AED4.8356AED 5802.72AED 4835.6AED 4835.6AED 15473.92
ALL163.3421ALL 196010.52ALL 163342.1ALL 163342.1ALL 522694.72
AOA218.2238AOA 261868.56AOA 218223.8AOA 218223.8AOA 698316.16
ARS19.8267ARS 23792.04ARS 19826.7ARS 19826.7ARS 63445.44
AUD1.7514AUD 2101.68AUD 1751.4AUD 1751.4AUD 5604.48
BAM2.3173BAM 2780.76BAM 2317.3BAM 2317.3BAM 7415.36
BGN2.3173BGN 2780.76BGN 2317.3BGN 2317.3BGN 7415.36
BHD0.4951BHD 594.12BHD 495.1BHD 495.1BHD 1584.32
BOB9.1245BOB 10949.4BOB 9124.5BOB 9124.5BOB 29198.4
BRL4.322BRL 5186.4BRL 4322BRL 4322BRL 13830.4
CAD1.735CAD 2082CAD 1735CAD 1735CAD 5552
CDF1293.545CDF 1552254.48CDF 1293545.4CDF 1293545.4CDF 4139345.28
CHF1.2823CHF 1538.76CHF 1282.3CHF 1282.3CHF 4103.36
CLP868.2831CLP 1041939.72CLP 868283.1CLP 868283.1CLP 2778505.92
CNY8.7569CNY 10508.28CNY 8756.9CNY 8756.9CNY 28022.08
COP4078.906COP 4894686.96COP 4078905.8COP 4078905.8COP 13052498.56
CRC721.2774CRC 865532.88CRC 721277.4CRC 721277.4CRC 2308087.68
CZK32.0273CZK 38432.76CZK 32027.3CZK 32027.3CZK 102487.36
DKK8.8121DKK 10574.52DKK 8812.1DKK 8812.1DKK 28198.72
DOP60.5124DOP 72614.88DOP 60512.4DOP 60512.4DOP 193639.68
DZD144.8937DZD 173872.44DZD 144893.7DZD 144893.7DZD 463659.84
EGP11.6888EGP 14026.56EGP 11688.8EGP 11688.8EGP 37404.16
EUR1.1848EUR 1421.76EUR 1184.8EUR 1184.8EUR 3791.36
GBP1GBP 1200GBP 1000GBP 1000GBP 3200

Thank you very much for your effort in advance.

Kind regards,
PB
 
Last edited by a moderator:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Are you talking about number formatting? You can format the cells as currency using different monetary symbols.

Jeff
 
Upvote 0
Yeah, I am talking about number formatting, but I would like different currency code in each row. The currency code for a row is learnt from the first cell of each row.

I hope I am clear.
 
Upvote 0
Having the cells in the same row change with any numeric formatting is not possible. A macro could be created that do that. It would be run with a button or something each time you made a change to the table.
 
Upvote 0
Thank you Jeffrey for conforming that. I brought this issue here just in case there was a clever method (except using VBA) of doing it.
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,031
Members
448,940
Latest member
mdusw

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