Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Webpage conversion

I am importing a webpage via webquery (using: WebFormatting=None). My
problem is that some of the text values are in Exponential notation
(ie: 2E9, 0E7, etc). These values are actually text values (Airport
Identification codes) but get converted to numeric. How can I prevent
them from getting converted to numeric values? Thanks for any help.
-pb
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,344
Default Webpage conversion

Hi,

You didn't show us an example of the actual codes that are being imported so
if the numbers are less than 15 digit you can simply reformat the cells in
Excel to a Number format.

--
Thanks,
Shane Devenshire


"cubbybear3" wrote:

I am importing a webpage via webquery (using: WebFormatting=None). My
problem is that some of the text values are in Exponential notation
(ie: 2E9, 0E7, etc). These values are actually text values (Airport
Identification codes) but get converted to numeric. How can I prevent
them from getting converted to numeric values? Thanks for any help.
-pb

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,344
Default Webpage conversion

Hi,

Sorry, I guess you did. I assumed you were telling us how they looked in
Excel.

If all the value are coming back in exactly this format one could use a
formula like this to handle it:

=LEFT(A1)&"E"&LEN(A1)-1

However, I suspect the the returned data is a lot more complicated. Is it
all in one column? Give us some more examples of what's being returned.
Stuff that isn't causing a problem for example. Because to develop a formula
solution I need to know all the possibilities.



--
Thanks,
Shane Devenshire


"cubbybear3" wrote:

I thought I did?!? On the webpage, the value is "2E9" but that gets
converted to "2.00E+09" (exponential notation) in my spreadsheet. And
likewise, "0E7" get converted to "0.00E+07".
-pb

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 do i design my own webpage? Donna New Users to Excel 1 December 19th 08 08:54 AM
VBA in a webpage aclay Excel Programming 0 August 11th 08 08:10 PM
Publishing Webpage? mpenkala Excel Discussion (Misc queries) 0 June 3rd 08 01:52 PM
SAVE AS: Webpage Cazk88 Excel Discussion (Misc queries) 0 March 12th 08 01:07 PM
Excel on Webpage Caz Excel Discussion (Misc queries) 0 March 1st 08 03:50 AM


All times are GMT +1. The time now is 10:51 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"