Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Unwanted Scientific Format With Web Query

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    My Excel application does a web query on a html file containing security cusip numbers having an "E" in the 8th position of the data. Excel formats the data as scientific; I need to have a text format. I have tried using a .txt extention on the file and preformatting the cell as text (prior to performing the web query), but nothing has
    worked so far. I am able to address this problem on a text import by using .TextFileColumnDataTypes = Array(2). Is there something similar for a Web Query?

  2. #2
    Board Regular
    Join Date
    Mar 2002
    Location
    London, UK
    Posts
    167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    have you tried prefixing the value with a '

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I'm sorry, I don't know how to prefix the data with a ' on a web query. By the time Excel completes loading the sheet, it has already changed the VALUE of the data as well as the format. I cannot add a ' to the html file as it is used for other purposes. Please explain how I can add a ' during the web query operation. Thanks!

  4. #4
    Board Regular
    Join Date
    Mar 2002
    Location
    London, UK
    Posts
    167
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    oh i see, sorry.

    Is the initial data source of this column always eight digits, that is, can you use a formula to convert these values back?


  5. #5
    New Member
    Join Date
    Mar 2002
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    No, these are US Treasury Notes, as well as other security CUSIPs, some are 6, some 7 characters in length.

    Thanks so much for your reply. I appreciate all suggestions!

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •