dbTalk Databases Forums  

Excel Format Conversion

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Excel Format Conversion in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
risbudkedar@gmail.com
 
Posts: n/a

Default Excel Format Conversion - 11-29-2006 , 04:36 AM






Hi,

I am working on DTS. I am transforming data from Excel to SQL Server
through DTS. The problem I am facing right now is, in excel I have some
value as 0.10665 but that cell is formatted as to take up to 3 decimals
so its coming as 0.107 but while transformation I want 0.10665.
Simple solution to this problem is to change the excel cell format. But
I cannot change excel.
So can we write any activeX script by which we can change the format of
excel??? If yes where can I get this code.

Thanks in advance,
Kedar


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Excel Format Conversion - 11-29-2006 , 04:05 PM






Hello risbudkedar (AT) gmail (DOT) com,

You could write code to change Excel but you just said you can't do that.

As for the data that comes out of Excel.


How do you manage to have in the cell the value 0.10665 if the cell is formatted
to 3 decimal places. In my XL it gets pushed to 0.107



Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
Hi,

I am working on DTS. I am transforming data from Excel to SQL Server
through DTS. The problem I am facing right now is, in excel I have
some
value as 0.10665 but that cell is formatted as to take up to 3
decimals
so its coming as 0.107 but while transformation I want 0.10665.
Simple solution to this problem is to change the excel cell format.
But
I cannot change excel.
So can we write any activeX script by which we can change the format
of
excel??? If yes where can I get this code.
Thanks in advance,
Kedar



Reply With Quote
  #3  
Old   
risbudkedar@gmail.com
 
Posts: n/a

Default Re: Excel Format Conversion - 11-30-2006 , 12:51 AM



Hi Allan,

See at front, in the cell I am getting value as 0.107 but when u clicks
on that cell, in the formula bar u can see the actual value which is
0.10665. But I think DTS picks up the formatted value and not the
actual value. Can we some how pick up the actual value and not the
formatted value??? Please suggest.....

Thanks any ways for reply.
Kedar

On Nov 30, 3:05 am, Allan Mitchell <a... (AT) no-spam (DOT) sqldts.com> wrote:
Quote:
Hello risbudke... (AT) gmail (DOT) com,

You could write code to change Excel but you just said you can't do that.

As for the data that comes out of Excel.

How do you manage to have in the cell the value 0.10665 if the cell is formatted
to 3 decimal places. In my XL it gets pushed to 0.107

Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479http://www.konesans.com



Hi,

I am working on DTS. I am transforming data from Excel to SQL Server
through DTS. The problem I am facing right now is, in excel I have
some
value as 0.10665 but that cell is formatted as to take up to 3
decimals
so its coming as 0.107 but while transformation I want 0.10665.
Simple solution to this problem is to change the excel cell format.
But
I cannot change excel.
So can we write any activeX script by which we can change the format
of
excel??? If yes where can I get this code.
Thanks in advance,
Kedar- Hide quoted text -- Show quoted text -


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Excel Format Conversion - 11-30-2006 , 11:55 PM



Hello risbudkedar (AT) gmail (DOT) com,

I am not sure you can no. I think DTS will honour your formatting rules.


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
Hi Allan,

See at front, in the cell I am getting value as 0.107 but when u
clicks on that cell, in the formula bar u can see the actual value
which is 0.10665. But I think DTS picks up the formatted value and not
the actual value. Can we some how pick up the actual value and not the
formatted value??? Please suggest.....

Thanks any ways for reply.
Kedar
On Nov 30, 3:05 am, Allan Mitchell <a... (AT) no-spam (DOT) sqldts.com> wrote:

Hello risbudke... (AT) gmail (DOT) com,

You could write code to change Excel but you just said you can't do
that.

As for the data that comes out of Excel.

How do you manage to have in the cell the value 0.10665 if the cell
is formatted to 3 decimal places. In my XL it gets pushed to 0.107

Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479http://www.konesans.com
Hi,

I am working on DTS. I am transforming data from Excel to SQL Server
through DTS. The problem I am facing right now is, in excel I have
some
value as 0.10665 but that cell is formatted as to take up to 3
decimals
so its coming as 0.107 but while transformation I want 0.10665.
Simple solution to this problem is to change the excel cell format.
But
I cannot change excel.
So can we write any activeX script by which we can change the format
of
excel??? If yes where can I get this code.
Thanks in advance,
Kedar- Hide quoted text -- Show quoted text -



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.