Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Importing data. Problem with datatype in column

Hi

I'm importing data from a webpage. All data comes into the spreadsheet, and
most is fine, but I have a column for "status" that contains one or more
single-digit numbers. If what is imported is "1.2" (two statuses), Excel
interprets it as a date (1. February). If I change the datatype of the
column after import to Text I get the datevalue (39845).

How can I avoid this problem? Is it possible to force Excel just to leave
the data alone as it is and not interpret it?

I cannot change what's in the webpage or the database it is generated from.

Any help appreciated.

- Rolf

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 48
Default Importing data. Problem with datatype in column

On 26 Feb., 12:54, "Rolf Barbakken" wrote:
Hi

I'm importing data from a webpage. All data comes into the spreadsheet, and
most is fine, but I have a column for "status" that contains one or more
single-digit numbers. If what is imported is "1.2" (two statuses), Excel
interprets it as a date (1. February). If I change the datatype of the
column after import to Text I get the datevalue (39845).

How can I avoid this problem? Is it possible to force Excel just to leave
the data alone as it is and not interpret it?

I cannot change what's in the webpage or the database it is generated from.

Any help appreciated.

- Rolf


Is it possible to format e.g. the rows to the number format before you
import the data? That sometimes helps me

/Kasper
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Importing data. Problem with datatype in column

"Kasper" wrote in message
...

Is it possible to format e.g. the rows to the number format before you
import the data? That sometimes helps me



I tried this just now. I changed the format of the column to Number with two
decimals. This only caused the column to display 39845,00 where it
previously showed "1. February". A difference, but not a solution.

Thanks.

--
Rolf


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Importing data. Problem with datatype in column

You obviously missed the part where Kasper said "format e.g. the rows to the
number format before you import the data?"

"before", not "after".

Personally I would choose text, rather than number format, but you need to
ensure that the data comes in with that format, so if you are importing
external data you need to specify that format for the relevant columns in
the import dialogue. Once it is stored as a different format, changing the
display format will change only the display, not the stored value.
--
David Biddulph

"Rolf Barbakken" wrote in message
...
"Kasper" wrote in message
...

Is it possible to format e.g. the rows to the number format before you
import the data? That sometimes helps me



I tried this just now. I changed the format of the column to Number with
two decimals. This only caused the column to display 39845,00 where it
previously showed "1. February". A difference, but not a solution.

Thanks.

--
Rolf




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Importing data. Problem with datatype in column

I obviously didn't. I have tried changing the cell format to both Text and
Number before importing. Neither works.

What you are describing ("specify that format for the relevant columns in
the import dialogue") sounds like importing from a file, because you don't
get the option of changing column data types in the dialogue for import from
web.

What does work, though, is changing one little option in the Import from web
dialogue, called "Disable date recognition" which does what it says for the
entire dataset. That helps. Don't know why I didn't see that before.

Thanks, though.

--
-Rolf

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
You obviously missed the part where Kasper said "format e.g. the rows to
the number format before you import the data?"

"before", not "after".

Personally I would choose text, rather than number format, but you need to
ensure that the data comes in with that format, so if you are importing
external data you need to specify that format for the relevant columns in
the import dialogue. Once it is stored as a different format, changing
the display format will change only the display, not the stored value.
--
David Biddulph

"Rolf Barbakken" wrote in message
...
"Kasper" wrote in message
...

Is it possible to format e.g. the rows to the number format before you
import the data? That sometimes helps me



I tried this just now. I changed the format of the column to Number with
two decimals. This only caused the column to display 39845,00 where it
previously showed "1. February". A difference, but not a solution.

Thanks.

--
Rolf






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
Importing Data problem Testing Excel Discussion (Misc queries) 4 March 12th 07 12:56 PM
Problem Importing Fixed Width Data [email protected] New Users to Excel 7 September 15th 06 01:42 AM
Importing data to column from column with differnet names bey12 Excel Discussion (Misc queries) 1 August 4th 06 12:39 AM
Problem importing data from Access BT Connect Excel Discussion (Misc queries) 2 January 21st 06 04:07 PM
Problem importing external data Teresa Robinson New Users to Excel 0 October 13th 05 09:08 PM


All times are GMT +1. The time now is 10:16 PM.

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"