+ Reply to Thread
Results 1 to 4 of 4

Auto Shorten a Data String

Hybrid View

  1. #1
    Alan
    Guest

    Auto Shorten a Data String

    I have 2 worksheets that I wish to perform Vlookup references from...
    the lookup data comprises of a 6 digit numeric value.
    My problem is that on one of the sheets the data string has been augmented
    by a 7th character and I am looking for a way to delete the last character in
    this string and allow me to do the lookup between 6 digit values ??

    ie. Worksheet 1 ... data 123456 .... Worksheet2 1234567 ...
    I wish to drop the 7 in this case

    Is there an automated way to do this as I have 10,000 entries ??

    Many Thanks

    Alan

  2. #2
    Registered User
    Join Date
    03-25-2004
    Posts
    57
    Assuming that 1234567 is in B1,B2,B3, etc. use the formula =left(B1,6) in C1 and copy down as far as you need to. Then copy (c1 to c10000, say) and paste special values in column B.

    Is this what you were after?

    Cheers
    free

  3. #3
    Registered User
    Join Date
    05-10-2005
    Posts
    16
    that would work, or if you're looking up on a 7-digit numbers to a list of 6-digits ones, use

    =VLOOKUP(LEFT(A1,6),Array,...)

  4. #4
    Alan
    Guest

    RE: Auto Shorten a Data String

    Please Ignore ... Found the LEFT Function and it does the trick

    Many thanks anyways

    Alan

    "Alan" wrote:

    > I have 2 worksheets that I wish to perform Vlookup references from...
    > the lookup data comprises of a 6 digit numeric value.
    > My problem is that on one of the sheets the data string has been augmented
    > by a 7th character and I am looking for a way to delete the last character in
    > this string and allow me to do the lookup between 6 digit values ??
    >
    > ie. Worksheet 1 ... data 123456 .... Worksheet2 1234567 ...
    > I wish to drop the 7 in this case
    >
    > Is there an automated way to do this as I have 10,000 entries ??
    >
    > Many Thanks
    >
    > Alan


+ 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