+ Reply to Thread
Results 1 to 7 of 7

To retrieve plus sign (+) together with number from web

  1. #1
    Registered User
    Join Date
    05-31-2015
    Location
    HK
    MS-Off Ver
    2013
    Posts
    4

    To retrieve plus sign (+) together with number from web

    Thank you so much in advance for helping on this question related to importing data from web.

    I would like to import a table which contains cells showing "+1". But every time when the data is imported and shown in the spreadsheet, they become "1" automatically. The plus sign ("+") is left out as the value is recognised as positive 1 directly. How can I fully import the string "+1"? Pre-setting the cell format to Text before importing can't prevent the data to be auto-adjusted from "+1" to "1".

    Thanks a lot for your kind help.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: To retrieve plus sign (+) together with number from web

    Highlight the cells you want to have the + show in, then right click and select Format Cells, then under the number tab select Custom and enter +#,###;-#,### in the Type field.

    Edit* The problem with this format is that it shows ALL positive numbers as + in the cell.
    Last edited by gmr4evr1; 05-31-2015 at 09:43 AM. Reason: Corrected typo
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Registered User
    Join Date
    05-31-2015
    Location
    HK
    MS-Off Ver
    2013
    Posts
    4

    Re: To retrieve plus sign (+) together with number from web

    Thank you so much for your help. You're right - All positive numbers will have "+" added in front. Is there any way to fully import the original string (e.g. "+ 1") into the spreadsheet, without auto-adjusting the format?

    What's problematic is that the on-line source doesn't consider "+" as a positive indicator. It's simply a sign added before a number. So other sample values include "* 1" or simply "1". There's a need to distinguish "+ 1" and "1".

    Again, thanks a lot for joining the discussion.

  4. #4
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: To retrieve plus sign (+) together with number from web

    Are you suing code for the import?

  5. #5
    Registered User
    Join Date
    05-31-2015
    Location
    HK
    MS-Off Ver
    2013
    Posts
    4
    No, just wanna simply use the get external data button to retrieve data.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: To retrieve plus sign (+) together with number from web

    Try setting the format as text before you import.

    Note, that if this does work - or if any other method works for you - the results will probably no longer be numerocs, and you wont (easily) be able to run calcs on the,
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    05-31-2015
    Location
    HK
    MS-Off Ver
    2013
    Posts
    4

    Re: To retrieve plus sign (+) together with number from web

    Tried. All cells are set as Text before importing. After importing, those "+ 1" become "1", though the Format is still Text.

    Also tried to check/uncheck the "Preserve cell formatting" box, but the results are the same. The only difference is that the Format becomes General if the box is unchecked. Any way to stop Excel from auto-recognising "+ 1" as a number but text before importing?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Number sign
    By Kenyon in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 04-02-2015, 06:12 PM
  2. Minus sign at the end of number
    By cope in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2009, 01:13 PM
  3. Number Sign change
    By Marc A in forum Excel General
    Replies: 2
    Last Post: 04-09-2008, 02:20 PM
  4. Replies: 2
    Last Post: 10-07-2005, 05:05 PM
  5. Change negative sign from end of number to the beginning of the number.
    By GORDON SCALES via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2005, 04:07 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1