+ Reply to Thread
Results 1 to 12 of 12

Stock codes cleaning up

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Stock codes cleaning up

    if cell a is not in the format 000.000.00

    Delete the rows they are junk

    Once it has deleted those , it should
    create row between each series

    This means if it trims as required ,
    The result sheet will have 4 lines ,
    the header , one line with code 101
    than a empty row , than codes 102
    start , I have series 103 104 running to
    300 , and each series has e.g.

    103.000.01
    103.000.02
    and so on
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    In short i need a row between when each new series start

    100.000.01
    100.000.02

    101.000.01
    101.000.02

    103.000.01
    103.000.02
    103.000.03

    and so on

  3. #3
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    This is a macro
    Last edited by makinmomb; 06-09-2014 at 01:38 PM. Reason: start new thread while wait for macro

  4. #4
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    work data 7500 rows

  5. #5
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    separator in short

  6. #6
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    I have found the formula to clean unwanted
    codes , I thus only need a separator macro

  7. #7
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    I had not attached expected results prior

    In case this helps
    Attached Files Attached Files
    Last edited by makinmomb; 06-22-2014 at 12:43 AM. Reason: sentence change

  8. #8
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    The macro should find the first 101.000.
    then insert row
    then 102.000.
    then insert row
    and so on upto 300.000.

  9. #9
    Valued Forum Contributor
    Join Date
    03-22-2013
    Location
    Australia,NSW, Wirrimbi
    MS-Off Ver
    Excel 2013
    Posts
    1,057

    Re: Stock codes cleaning up

    Hi..

    A simple loop will do it..

    Please Login or Register  to view this content.
    Note: You could also use the Left function instead of Split.

  10. #10
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    Its not working when I press ALT F8 for run ?

    I have pasted your code through ALT F11 , insert module
    Last edited by makinmomb; 06-22-2014 at 10:17 AM. Reason: F11 correction

  11. #11
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    I don't know the abc of macros , thus
    I made a wild guess

    I edit the first line of the macro to

    Sub InsertRow()

  12. #12
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2013 PRO PLUS
    Posts
    3,733

    Re: Stock codes cleaning up

    Thanks apo , I needed it very badly
    finally i got the answer

+ 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. Missing stock codes checker
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-02-2014, 10:46 AM
  2. I need to put matching prices to stock codes.
    By calvr1ch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-11-2014, 10:48 PM
  3. [SOLVED] manipulating variable stock codes sold for month into cost centres
    By cooper-k in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2013, 08:05 AM
  4. Replies: 0
    Last Post: 10-28-2012, 07:22 AM
  5. Excel 2007 : Matching Stock Codes - SOLVED :)
    By SteveR2010 in forum Excel General
    Replies: 6
    Last Post: 10-21-2010, 06:33 AM

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