Vlookup Question with formatted cells

dollyann

Board Regular
Joined
Jan 26, 2011
Messages
61
Please can someone help me with a problem?

I have a spreadsheet with some costs and they are both in Pounds and Euros, like below

London £3.00
France €2.10
Spain €50.00
London £21.00

I have a dashboard and when I select France i have set-up a vlookup to bring the value back (2.10), is there anyway that i can bring back value with the formatted cell with the Euro symbol €?

Would be very grateful if someone could help me :)

Many thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I'm not sure about excel 2007 & later, but earlier versions you can only do it using a macro that checks either the country or the formatting and then sets the formatting accordingly.

I don't know if you want to work with macros, it adds additional issues if the sheet is to be used by others
 
Upvote 0
Hi dollyann,

Perhaps you could modify this.....

=IF(D2<>"London",CHAR(128)&VLOOKUP(D2,A2:B4,2,0),CHAR(163)&VLOOKUP(D2,A2:B4,2,0))


Excel Workbook
ABCDE
1CountryAmount*CountryAmount
2France 200.00*London150
3Spain 250.00***
4London150.00***
Sheet7




CHAR(128) is the euro symbol and CHAR(163) is the £

The only problem with the above is that it will return the data as text and not as a number, but I'm sure there may be a way to convert it to a number.

Good look.

Ak
 
Upvote 0
create a table with the country names and the charachter that is their curency, then combine 2 vlookups based on the same criteria.

Excel Workbook
ABCDE
1CountryAmountCountryAmount
2France 200.00France200
3Spain 250.00
4London150.00
5USA$750.00
6
7FranceEuro
8SpainEuro
9Londonpound
10USADollar$
Sheet1
 
Upvote 0
Hi dollyann,

If you need the Vlookup result to be a true number so that you can calculate it etc, then perhaps some reformatting of your worksheet is a possible solution...


Excel Workbook
ABCDEFG
1CountryAmountSymbol*Country*Amount
2France 200.00*London 150.00
3Spain 250.00****
4London150.00****
Sheet7





You can hide column C or use a white font.

Good luck.

Ak
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,741
Members
452,940
Latest member
rootytrip

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