Currency Conversion in Excel

I have an excel spreadsheet with a "Unit Price" column. Some of the prices are in Euro (e.g. €12.34) and some in US dollars (e.g.$45.67).

I want to create a new column containing all prices in US dollars.

By examining a cell, how can I determine whether the price is in Euro or US dollars
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rob HensonFinance AnalystCommented:
If the Euro or Dollar symbols are physically typed in rather than just from formatting, you can use the LEFT function to identify the symbol.


Rob H
jking1234Author Commented:
The Euro and Dollar symbols are derived from the formatting
Saurabh Singh TeotiaCommented:
Enclosed is the UDF which i wrote since you want to pick the same from the cell formating of the cell..This will only pick the dollar values which you are looking for...

Function getdollar(rng As Range)

    If InStr(1, rng.NumberFormat, "$#,##", vbTextCompare) > 0 Then

        getdollar = rng.Value
        getdollar = ""
    End If

End Function

Open in new window

Enclosed is the workbook for your reference...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Rob HensonFinance AnalystCommented:
How was the formatting decided on if you don't know what currency the values are?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.