+ Reply to Thread
Results 1 to 6 of 6

Problem with the extracted data

  1. #1
    Registered User
    Join Date
    04-28-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2013
    Posts
    3

    Problem with the extracted data

    Hi,

    I'm facing a problem in the data i extracted from a tool, i.e as below. At the end it should be 2015 not 2010. It looks correct in the tool but after extracting it is becomes as below. need your help. i'm using Excel 2013.

    2488153106302010
    2736223406302010
    8392047406082010
    4522092706062010
    4522092705062010
    2488153106302010
    2736223406302010
    8392047406082010
    4522092706062010
    4522092705062010

    Regards,
    Ravi.

  2. #2
    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
    52,926

    Re: Problem with the extracted data

    Hi, welcome to the forum

    Excel only allows 15-character values, so it is actually dropping the 5 and replacing it with a 0

    Where is the data coming from, and how are you pulling it in? Can you pull it in as text, instead of numeric?
    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

  3. #3
    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: Problem with the extracted data

    Maybe this will help

    in B1 and copy dowm

    =REPLACE(A1,LEN(A1),1,5)

    Row\Col
    A
    B
    1
    2488153106302010
    2488153106302015
    2
    2736223406302010
    2736223406302015
    3
    8392047406082010
    8392047406082015
    4
    4522092706062010
    4522092706062015
    5
    4522092705062010
    4522092705062015
    6
    2488153106302010
    2488153106302015
    7
    2736223406302010
    2736223406302015
    8
    8392047406082010
    8392047406082015
    9
    4522092706062010
    4522092706062015
    10
    4522092705062010
    4522092705062015
    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

  4. #4
    Registered User
    Join Date
    04-28-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Problem with the extracted data

    Hi Alkey,
    Thanks for the solution. But i've one question, the data is not in order, if i've apply this, i need to manually find it & then apply it. Please have a look at this workbook, Column B. https://app.box.com/s/s52i83k1k8bxo5c98fv8ny8nffj02vgi

  5. #5
    Registered User
    Join Date
    04-28-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Problem with the extracted data

    Hi FDibbins,

    Thanks, i'm pulling it from a legacy tool called Swan. No, i cannot pull it as text in this tool. Only CSV format. This is the link for the file: https://app.box.com/s/s52i83k1k8bxo5c98fv8ny8nffj02vgi

    Regards,
    Ravi.

  6. #6
    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: Problem with the extracted data

    Hi Ravi,

    Please see attached file with formula in column 'M'. This formula will check the last 4 characters and if it is 2010 it will replace the last character with '5' and if not it will return the the original cell content.


    =IF(RIGHT(B2,4)="2010",REPLACE(B2,LEN(B2),1,5),LEFT(B2,LEN(B2)))
    Attached Files Attached Files

+ 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. Formula to Use extracted from certain Data
    By noelb81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-07-2015, 11:50 PM
  2. Extracted Coding Much Faster When Isolated (Memory Problem?)
    By Doug Nguyen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2014, 05:04 AM
  3. Replies: 0
    Last Post: 10-25-2013, 12:14 PM
  4. Replies: 0
    Last Post: 02-21-2013, 09:07 AM
  5. Formatting Data being extracted from SQL D/B
    By Steven in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2006, 04:00 AM

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