Hi, I need to make the currency in a cell dependent on the country a user has selected.
It's possible to do that using an IF statement, with a handful of countries. However, there's a limit on the number conditions an IF statement can take.
Is there a way to do this, for all countries, using an alternative method or even using VBA?
For context, let's say that cell C2 was a data-validated cell that was based on a list of cells in H2:H100, and H2:H100 had a list of countries.
So if H2 had "USA" in it,
and H3 had "France" in it,
a user would be able to select "USA" from the drop-down in cell C2, and then the US Dollar (in Excel format) would appear in cell D2.
If they selected "France" in cell C2, then the Euro (in Excel format) would appear.
Has anyone done this before?
Thanks in advance.
It's possible to do that using an IF statement, with a handful of countries. However, there's a limit on the number conditions an IF statement can take.
Is there a way to do this, for all countries, using an alternative method or even using VBA?
For context, let's say that cell C2 was a data-validated cell that was based on a list of cells in H2:H100, and H2:H100 had a list of countries.
So if H2 had "USA" in it,
and H3 had "France" in it,
a user would be able to select "USA" from the drop-down in cell C2, and then the US Dollar (in Excel format) would appear in cell D2.
If they selected "France" in cell C2, then the Euro (in Excel format) would appear.
Has anyone done this before?
Thanks in advance.