+ Reply to Thread
Results 1 to 5 of 5

Removing Unwanted Characters & Moving Others

  1. #1
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Removing Unwanted Characters & Moving Others

    Hi all,

    I'm needing some code that will remove an open quotation mark from the numerical value found in column A. This will be for every row with a numercal
    value.

    example problem: "360015
    example answer: 360015

    All numbers will be 6 digits

    And I've got another issue with numerals in column C. To the left side of the Cell there maybe a Number or Letter. To The Right side of the cell
    there will be a single or double digit number. Both will be separted by some space (6-8 spaces). As in the examples below:
    (again what you see on each line is in one cell in col. C.

    R 59
    E 6
    0 4

    I need the value on the left side of the cell to be moved concenate/merge with the values in column B.


    There's will be approx 2000 rows that will need to be checked for this occurrance. Since there's so many rows,
    I'd really would like to use VBA and not formulas to accomplish this.

    Again, as always your help in resolving this is much appreciated.

    Thanks,

    BDB
    Last edited by bdb1974; 07-10-2009 at 10:25 AM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Removing Unwanted Characters & Moving Others

    Hello BDB,

    This macro starts at cell "A2" on the ActiveSheet and continues down to the last entry in column "A". In column "A" only cells that have a double quote at the beginning and 6 numbers are changed to to 6 numbers. Any cell in column "C" that starts with a letter or number and is followed by one or more spaces will have the first character concatenated to the end of the string in column "B" of the same row.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Removing Unwanted Characters & Moving Others

    Super!!!

    One small problem,which is my fault for not stating, the characters in the left side of cells in column "C" are not being removed after being concatenated to the cells in B. I've tried adding the following statement to the last routine and since not working, must not be written right.

    Please Login or Register  to view this content.
    - BDB

  4. #4
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Removing Unwanted Characters & Moving Others

    This works, but it's got to work for various lengths to the right.
    This is a Qty value which may vary from 1-10000.

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-10-2008
    Location
    Austin
    Posts
    660

    Re: Removing Unwanted Characters & Moving Others

    I think it works with this.
    Please Login or Register  to view this content.


+ 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