LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default fomatting the display of a cell without using the format menu

I have a JSP that generates an Excel Worksheet dynamacly using.

<%
response.setContentType("application/vnd.ms-excel");
%

This worksheet contains cells containing Excel formulas the
result of which are used by other formulas in other cells.
I need to retain the full value for the other calculations
but display the data in the cell as rounded to two places.
Is there a way to do that?

Sample fromulas:

<td bgcolor=white valign=top align=center nowrap height=12
<font
size=-2=IF(O<%=currentRow%=0,0,U<%=currentRow%*Q<%=cu rrentRow%/$D$11)
</td
<td bgcolor=white valign=top align=center nowrap height=12
<font
size=-2=IF($Z$<%=lastRow%$Y$<%=lastRow%,((Z<%=curren tRow%*$O<%=currentRow%)/$M<%=currentRow%),($Y<%=currentRow%*$O<%=current Row%)/$M<%=currentRow%)
</td
 
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
How to display minute format for a cell? Eric Excel Discussion (Misc queries) 10 July 27th 09 05:17 PM
Custum Cell Format - display 0 (zero) when cell is empty willemeulen[_15_] New Users to Excel 8 May 21st 09 04:03 AM
Drop down menu display based on the value of different cell Alex3020 Excel Discussion (Misc queries) 2 May 30th 08 01:13 PM
Cell Editing (Fomatting) Sean DeBruler Excel Discussion (Misc queries) 1 October 27th 06 10:05 AM
Cell format, want 100 to display as 1.00 gliebetronics Excel Discussion (Misc queries) 4 June 13th 05 09:30 PM


All times are GMT +1. The time now is 12:00 AM.

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"