+ Reply to Thread
Results 1 to 15 of 15

Import from web page, alphanumeric as TEXT only

  1. #1
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Import from web page, alphanumeric as TEXT only

    while importing text from web page (to be refreshed later on), the alphanumeric values (0321418U, 04776181, 0876129P, 01242109) get converted to numeric (0321418U, 4776181, 0876129P, 1242109) ie prefix zero is removed.
    i want it as text only with zero prefixed.

    the text have variable length and needs to be refreshed frequently
    Last edited by anil.kut; 07-09-2016 at 11:05 AM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Import from web page, alphanumeric as TEXT only

    Try this
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 0321418U 0321418U
    2 4776181 04776181
    3 0876129P 0876129P
    4 1242109 01242109
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Import from web page, alphanumeric as TEXT only

    there is always a zero in front of the valua or how do you determine if there has to be a O in front?

    Show the expected result in a small exell file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Import from web page, alphanumeric as TEXT only

    0321418U 00321418U
    4776181 04776181
    0876129P 00876129P
    1242109 01242109
    1826v 01826v

    b1="0"&A1

  5. #5
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    this may not work as i have to use vlookup with column B, and the real data to which it is to be matched is real text, not just appears like text.
    why can't we get alphanumeric imported as text (alphanumeric) in excel

  6. #6
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Import from web page, alphanumeric as TEXT only

    You get 2 answers, so it is usefull to who you are replying.

  7. #7
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Import from web page, alphanumeric as TEXT only

    I don't know to whom you replying to. If you referring to post #2 the TEXT function actually writes text values to the cell and it is not just formatting.

  8. #8
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    Dear oeldere,
    both answer give the same result, number appears to be prefixed with zero but not in reality as when i used vlookup error message appeared.
    moreover the length of text is variable too and data are in thousands, how to deal with it
    Last edited by anil.kut; 07-09-2016 at 11:45 AM.

  9. #9
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    Oeldere sir, you are right, vlookup applies correctly, but how to deal with variable length.

  10. #10
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    sir, you are right, vlookup applies correctly, but how to deal with variable length.

  11. #11
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    Alkey sir, you are right, vlookup applies correctly, but how to deal with variable length.

  12. #12
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    Alkey sir,

    the data is to be refreshed frequently and linked with other sheet with expandable no. of records.

    It will be better if we can get alphanumeric imported as text (alphanumeric) in excel, without adding any more column or so.

  13. #13
    Registered User
    Join Date
    11-06-2014
    Location
    India
    MS-Off Ver
    7
    Posts
    19

    Re: Import from web page, alphanumeric as TEXT only

    anyhow this will suffice but i am not satisfied.

    thanks

  14. #14
    Forum Contributor
    Join Date
    03-21-2013
    Location
    Corvallis, OR
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: Import from web page, alphanumeric as TEXT only

    Depending on what you mean exactly by "importing", I've had a lot of experience with this problem dealing with importing lists of alphanumeric serial numbers and UPC numbers with leading zeros from the web into excel spreadsheets, and it is definitely frustrating to say the least... The only viable solutions I found were VBA based controls of incoming text and simultaneous control of user input, mostly limiting the user's ability to access paste functionality. Excel deals with leading zeros badly. Even when the cells receiving the incoming data are formatted as text, it can still convert numbers with leading zeros into numerical values instead of their original layout, especially when the end user isn't familiar with excel's special pasting abilities. Depending on your scenario, neither of these solutions will function all the time. For example, if you have varying string lengths and some numbers with more than one leading zero (which your example does), you will end up with incorrect data with one or both of these options. So, any real solution is completely scenario based; i.e., very specific to your situation and your workbook(s). If you're trying to copy/paste data from the web it can be tricky, but doable with VBA. If you're importing directly somehow, please tell me more...
    If I helped, please click on Add Reputation.

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Import from web page, alphanumeric as TEXT only

    Request in 3

    Show the expected result in a small exell file.

    Oeldere sir, you are right, vlookup applies correctly, but how to deal with variable length.
    the answer in #4 is a solution with a variable length.

+ 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. Seperate alphanumeric text from a line text in excel
    By Dipti Sajit in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-29-2016, 06:52 AM
  2. Trying to extract text only from a alphanumeric string
    By hemesh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-24-2015, 10:27 AM
  3. How to extract 7 alphanumeric character from Text
    By hiteshkumar21483 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2014, 03:43 AM
  4. [SOLVED] How to lookup a code prefix from another page and autofill with an alphanumeric sequence
    By knitterjen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-25-2014, 04:47 AM
  5. [SOLVED] EXtract ALphanumeric from text string
    By Ellice16 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-30-2013, 03:34 AM
  6. [SOLVED] Import text file from VBA code; import all numbers as text
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-19-2012, 05:19 PM
  7. get Numbers From Alphanumeric Text
    By mkim41 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-01-2010, 10:02 PM

Tags for this Thread

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