Results 1 to 4 of 4

Adding Trailing Zeroes

Threaded View

jomili Adding Trailing Zeroes 12-29-2009, 11:25 AM
MickG Re: Adding Trailing Zeroes 12-29-2009, 11:47 AM
mikerickson Re: Adding Trailing Zeroes 12-29-2009, 11:51 AM
jomili Re: Adding Trailing Zeroes 12-29-2009, 12:08 PM
  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    4,065

    Adding Trailing Zeroes

    I need a macro to do a comparison between two spreadsheets, and one part of it is throwing me, as I need to compare apples to oranges. Here's the situation:

    Sheet A has the data noted like this:
    PAC
    11000
    11100
    11500, etc.
    All data should have 5 digits, and my numbers range from 11000 to 87028, though quite a few are skipped.

    Sheet B has data like this:
    PAC
    110
    110-CBS
    11000
    11100-ING
    112
    11500-L

    How can I change sheet B to:
    1) Drop off the dash and anything following?
    2) Add trailing zeroes to make sure all numbers are 5 characters in length?


    Thanks in advance for any help. I don't have any code to poste on this because I'm just about to start writing it, but need this part first.
    Last edited by jomili; 12-29-2009 at 12:09 PM. Reason: Solved

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