Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 25
Default Formula for Detecting Currency Format

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default Formula for Detecting Currency Format

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I change currency format using a switch/formula djdacct Excel Discussion (Misc queries) 0 December 5th 06 10:19 AM
format cells for currency 2450 and have it format to $24.50? Karen C Excel Worksheet Functions 0 October 13th 05 03:21 PM
Change General Format to Currency Format Freshman Excel Worksheet Functions 3 July 8th 05 03:42 AM
Create formula for detecting duplicates Courtneyf04 Excel Worksheet Functions 1 June 7th 05 09:47 PM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM


All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"