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)
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
You could manipulate the "format" of the cell and use that
where Cell format A1 = number with 2 decimals and![]()
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 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
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...
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks