Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Column A of my spreadsheet has several amounts formatted in either US$,
Pound Sterling, Euro, Swedish Krona, or Swiss Franc. (I used the Format - Number - Currency - Symbol for each amount. I am actually using the currency symbol rather than the ISO abbreviation for each currency, but I could switch to the ISO currency abbreviation if it makes things easier...) Now I want to create a formula in Column B that does something depending on the type of currency in each row of Column A. How do I detect the correct kind of currency that is in Column A so that I can build my formula correctly? (It will be an =IF() function.) Hopefully, this can be done without a macro as I have problems running them due to high security settings. Thanks. -- tb |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
There is no built-in function to retrieve currency type. Probably you can write an UDF which does this for some list of currencies, but I'm not sure this will be an excellent idea. Think about custom-defined currency formats p.e.! Another weak point in your approach is, that it will be very cumbersome to change the currency type for some record - you have to change the format for every cell individually, instead formatting the whole column at once. My advice is to go with 2 columns. In column A will be amounts (general or Numeric), and in column B you select according currency - use data validation list for this. Now in column C for row n you can have some formula of type =YourFormula(An,Bn) -- Arvi Laanemets ( My real mail address: arvi.laanemets<attarkon.ee ) "Tiziano" wrote in message ... Column A of my spreadsheet has several amounts formatted in either US$, Pound Sterling, Euro, Swedish Krona, or Swiss Franc. (I used the Format - Number - Currency - Symbol for each amount. I am actually using the currency symbol rather than the ISO abbreviation for each currency, but I could switch to the ISO currency abbreviation if it makes things easier...) Now I want to create a formula in Column B that does something depending on the type of currency in each row of Column A. How do I detect the correct kind of currency that is in Column A so that I can build my formula correctly? (It will be an =IF() function.) Hopefully, this can be done without a macro as I have problems running them due to high security settings. Thanks. -- tb |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I change currency format using a switch/formula | Excel Discussion (Misc queries) | |||
format cells for currency 2450 and have it format to $24.50? | Excel Worksheet Functions | |||
Change General Format to Currency Format | Excel Worksheet Functions | |||
Create formula for detecting duplicates | Excel Worksheet Functions | |||
why does currency format change to number format? | Excel Discussion (Misc queries) |