+ Reply to Thread
Results 1 to 8 of 8

VB Code to split data from Column A and put in Column B,C and D

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to split data from Column A and put in Column B,C and D

    Hello:

    Please refer to attached file.
    I will have data as shown in column A.
    I need VB code to split the data from column A into Column B,C,D and E as shown.
    Negative data will be column D as it is Disc/Sur.

    I have manually added data as shown in Orange highlighted field.

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VB Code to split data from Column A and put in Column B,C and D

    Hi Riz,
    maybe something like this
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to split data from Column A and put in Column B,C and D

    Hi Nilem:

    Please refer to attached file.
    Sheet2 is the result of the code.
    I need the result as shown in column B,C,D,E as shown in Sheet1.

    Let me know if you have any questions.
    Thanks.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to split data from Column A and put in Column B,C and D

    Hi Nilem:

    Looking at the data and your code, just a suggestion that first step would be find text and delete the space in the first word in column A.
    Example :

    Monthly Report make it to MonthlyReport
    Org Jul make it to OrgJul
    CHRG TIP make it to CHRGTIP
    GROS REVENUE make it GROSREVENUE
    C Card make it CCard
    and so on..
    Please let me know if you have any questions.
    Thanks.

    Riz

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VB Code to split data from Column A and put in Column B,C and D

    maybe so
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Last edited by nilem; 08-27-2016 at 12:12 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to split data from Column A and put in Column B,C and D

    Hi Nilem:

    That would work.
    B column should not have "-".
    If there is "-" in B column then need to be in column C.
    Please let me know if you have any questions.
    Thanks.

    Riz

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VB Code to split data from Column A and put in Column B,C and D

    Here try it, is it works for you?
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to split data from Column A and put in Column B,C and D

    Hi Nilem:

    Seems to work.
    Will try further and let you know if any problems.
    Thanks a lot
    Riz

+ 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. [SOLVED] How to split Data from column
    By toci in forum Access Tables & Databases
    Replies: 9
    Last Post: 04-19-2016, 11:34 AM
  2. Need Macro code to split data split in 7 sheets based on variable rows in column A
    By Alija_21 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-31-2015, 08:03 AM
  3. Split Data From Single Column Set Into Multiple Column Sets?
    By slavrenz in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-25-2014, 04:33 AM
  4. Replies: 1
    Last Post: 04-12-2014, 04:03 PM
  5. need vba code to split 3 column data as name of workbook into target folder
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2013, 05:29 AM
  6. Split data from column
    By shijiazhuang in forum Excel General
    Replies: 3
    Last Post: 09-22-2010, 08:31 AM
  7. Split data in column
    By Kat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-02-2005, 10:20 PM

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