+ Reply to Thread
Results 1 to 7 of 7

currency convertor issue

Hybrid View

isimpson currency convertor issue 09-30-2009, 05:01 AM
DonkeyOte Re: currency convertor issue 09-30-2009, 05:07 AM
isimpson Re: currency convertor issue 10-01-2009, 03:38 AM
DonkeyOte Re: currency convertor issue 10-01-2009, 03:46 AM
martindwilson Re: currency convertor issue 10-01-2009, 04:00 AM
rwgrietveld Re: currency convertor issue 10-01-2009, 04:35 AM
DonkeyOte Re: currency convertor issue 10-01-2009, 04:47 AM
  1. #1
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: currency convertor issue

    further to donkeyotes post there is xml.get.cell in the more functions addin
    http://download.cnet.com/Morefunc/30...-10423159.html
    used as =XLM.GET.CELL(7,A1)
    it would return [$$-409]#,##0.00
    for usd and
    [$€-83C]#,##0.00 euro (irish)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: currency convertor issue

    You could manipulate the "format" of the cell and use that
    12	=CELL("format",A1)
    12	=CELL("format",A2)
    	
    =IF(CELL("format",A1)=",2",A1*4,A1*5)	
    =IF(CELL("format",A2)=",2",A2*4,A2*5)
    where Cell format A1 = number with 2 decimals and
    where Cell format A2 = $ #,##0.00;$ #,##0.00
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: currency convertor issue

    I don't think that would work (in all scenarios) given it would be dependent upon client locale.

    For ex. this works for you because € is default system currency thus cells formatted as Euro's return a cell format of C# (where # is determined by decimals used) whereas all other currencies return ,#, however, in the UK given £ is default system currency both Euro and USD would return ,# and only £ would return C#

    Also given # you would probably want to revise the approach to check only for existence of C in format given the no. of decimals may vary.

    (If the client is set to use $ as system currency then (reversed) it could work of course)
    Last edited by DonkeyOte; 10-01-2009 at 04:53 AM. Reason: added in all scenarios as it could work in some for sure...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1