+ Reply to Thread
Results 1 to 7 of 7

Solved -Data input from scanner adds extra, how to remove

Hybrid View

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    23

    Thumbs up Solved -Data input from scanner adds extra, how to remove

    Mornng
    I have a spreadsheet where I want to scan a document them link that to data from a database and allow the other fields to lookup from another table. It works but the scanned result adds extra didgts how do I delete these. I have attached the workbook to look at.

    Colum c is the Scanned data I have left the last one as it is scanned in (row 10).

    Daily Sample test.xlsm
    thanks for the help
    Last edited by fionaby; 06-12-2012 at 09:21 AM. Reason: Solved

  2. #2
    Registered User
    Join Date
    05-30-2012
    Location
    St Paul, MN
    MS-Off Ver
    2010
    Posts
    51

    Re: Data input from scanner adds extra, how to remove

    I think I have an answer(s) for you, but I'm making some assumptions.

    If the PickSlip scanned in ALWAYS is supposed to be 6 characters, then you could use this formula in cell D10 to just use the first 6 characters:
    =IF(C10="","",VLOOKUP(left(C10,6),Table_ExternalData_1[#All],3,FALSE))
    If the Pickslip is always Numeric, with a varying number of digits, and the first 'junk' character is always non-numeric, then try this array formula in D10 (enter by pressing CONTROL-SHIFT-ENTER instead of just ENTER)
    =IF(C10="","",VLOOKUP(LEFT(C10,COUNT(--MID(C10,ROW(INDIRECT("1:" & LEN(C10))),1))),Table_ExternalData_1[#All],3,FALSE))

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Data input from scanner adds extra, how to remove

    OK still get a #NA error, Why control shift enter? Mine does not add anything if I use this method. BTW I am on Excel 2010.

  4. #4
    Registered User
    Join Date
    05-30-2012
    Location
    St Paul, MN
    MS-Off Ver
    2010
    Posts
    51

    Re: Data input from scanner adds extra, how to remove

    Whoops, I copied the wrong formula -- I forgot to coerce back to a number.
    Use this instead.
    =IF(C10="","",VLOOKUP(--LEFT(C10,COUNT(--MID(C10,ROW(INDIRECT("1:" & LEN(C10))),1))),Table_ExternalData_1[#All],3,FALSE))
    (the -- changes a text value to a numeric value)
    For an array formula to work, it Excel requires it to be entered with that keystroke combination. It should appear in the formula bar with curly brackets ( { =... } around it. Do not try entering these manually. Instead, copy/paste the formula into the formula bar and then press cse.

  5. #5
    Registered User
    Join Date
    06-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Data input from scanner adds extra, how to remove

    This worked a charm many thanks for your help now to perfect the timestamp issue. I have posted another post on that but perhaps will do my own with my example.

  6. #6
    Registered User
    Join Date
    06-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Data input from scanner adds extra, how to remove

    Yes it is always meant to be the 1st numeric numbers the items from the example +PK these are not needed so to strip those would work. Let me test your coded. Thanks for the rapid reply.

  7. #7
    Registered User
    Join Date
    06-05-2012
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: Data input from scanner adds extra, how to remove

    Thanks was just thinking I had something wrong

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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