Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Export asp to excel Format number

Hello
I am using asp for my page of prices and I am exporting the data and
Image(OWC) to EXCEL.
I need to export the data with number format with two decimals and i need to
make calculations or operations with the numbers exported in excel.
First I used the following code:
<TD STYLE="vnd.ms-excel.numberformat:#,##0.00<%=RS2("PRECIO")% &nsbsp;</TD

but, it exports 34,1 29,04 it doesn't respect the format of two decimals, it
omits the zeros and I cannot make operations for the coma.

Then I made a test with the following code:
<TD <%=Response.write
Replace(FormatNumber(RS2("PRECIO"),2,-1,-1,0),",","."%</TD

I use the replace to put point instead of comas, since excel only can make
operations with points.
This last code show me perfectly the format like I need it, 22.01 22.00
22.01 but I can not make operations in excel.

it exports it to me as text, and I need it as number.

Thanks

an excuse for my English


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Export asp to excel Format number

You posted this question on 11/30/2004 and it appears as though no one
responded to your inquiry. If you are still attempting to solve the problem
of "Export asp to excel Format number", then re-post your question in this
NewsGroup and one of us will take a fresh look at it. On your original
posting, you should click the YES or NO buttons to close out that entry on
the system.

Steve in Ohio


"Lilia" wrote:

Hello
I am using asp for my page of prices and I am exporting the data and
Image(OWC) to EXCEL.
I need to export the data with number format with two decimals and i need to
make calculations or operations with the numbers exported in excel.
First I used the following code:
<TD STYLE="vnd.ms-excel.numberformat:#,##0.00<%=RS2("PRECIO")% &nsbsp;</TD

but, it exports 34,1 29,04 it doesn't respect the format of two decimals, it
omits the zeros and I cannot make operations for the coma.

Then I made a test with the following code:
<TD <%=Response.write
Replace(FormatNumber(RS2("PRECIO"),2,-1,-1,0),",","."%</TD

I use the replace to put point instead of comas, since excel only can make
operations with points.
This last code show me perfectly the format like I need it, 22.01 22.00
22.01 but I can not make operations in excel.

it exports it to me as text, and I need it as number.

Thanks

an excuse for my English


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
How to export excel file in dbf format Andrew Excel Discussion (Misc queries) 1 December 19th 06 09:59 AM
how do I export excel to a monthly calendar format? Victoria Vassallo Excel Discussion (Misc queries) 0 August 22nd 05 04:45 PM
underscore between name in excel csv format to export names into o Biochemist Excel Worksheet Functions 3 May 17th 05 07:11 PM
VBA export excel to .txt, number format problem Dave Peterson[_5_] Excel Programming 0 November 23rd 04 08:27 PM
import- export XML in excel without loosing XML format Edwin[_2_] Excel Programming 0 January 31st 04 12:31 AM


All times are GMT +1. The time now is 08:04 PM.

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

About Us

"It's about Microsoft Excel"