As long as you DON'T try to do any calculations with cell B5 (for the
reason explained by Paul) you would use the following formula in cell
B5:

=IF(B1="USD K",CONCATENATE("USD ",TEXT(B11,"#,###")),CONCATENATE("INR
",TEXT(B10,"#.#")))

If you do need to do calculations with the value in cell B5 I would
suggestion using a different cell to do the calculation with. You
could e.g. use cell C5 and place your own formula in it:

=If(B1="INR Crs",B10,B11)

In case it troubles you (or the users of your workbook) to see cell C5
you could turn it invisible e.g. by choosing white as the font
color...

Hope this helped,
Rolf

On Oct 9, 4:09 am, Radhe Sham L <radhes...@gmail.com> wrote:
> Hi ,
>
> I have a requirement for a solution regarding the display of decimal place
>
> I have a report which displays data in 2 currencies - USD K & INR Crores
>
> Based on the Currency selected from the drop box. The Value in the
> respective currency is required to be displayed in the same cell
>
> for example
> The drop Box for currency selection is in cell B1 (with options "INR Crs" &
> "USD K"
>
> The data is to be displayed in cell B5
>
> The INR value(INR Crs) is stored in cell B10 -> 6.1
> The USD value(USD K) is stored in cell B11 -> 1220
>
> The formula i would use is =If(B1="INR Crs",B10,B11).
>
> Now, what is required is when the currency is INR Crs, the display has to be
> 1.6 (ie with one decimal place) else if it is USD the the display should be
> 1,220 (ie without a decimal place)
>
> Tried using "Fixed" formula , but though it seems to solve my problem by
> what is displayed, the data is in text format due to which calculations are
> not possible
>
> Can any one kindly help me in giving a formula which would display a number
> with one decimal place for "INR Crs" and with no decimal place for USD K
>
> Many thanks in advance
>
> Best regards
> Radhe

--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 6,500 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to