+ Reply to Thread
Results 1 to 15 of 15

Any data splitting experts out there? Seeking help to split columns data

  1. #1
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Any data splitting experts out there? Seeking help to split columns data

    Hi, I currently maintain a spreadsheet with numerous columns, basically I am looking to split the data whilst retaining the first column.

    Simplified version
    North East West South
    Acct 123 34 21 432
    PC 423432 43 432 343432
    A&G 3432 43 43 3432
    Total 426987 120 496 434


    Desired Results
    North
    Acct 123
    PC 423432
    A&G 3432
    Total 426987

    To be saved separately under North, South, East, West tabs.
    Would be great if the tabs can be automated to be saved individually as well!

    Have came across numerous vba code which can split by rows..but none that is able to split by columns..
    Appreciate if there are any experts out there to advise,
    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Any data splitting experts out there? Seeking help to split columns data

    Please Login or Register  to view this content.
    something like that, im not in excel at the mo to test.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Any data splitting experts out there? Seeking help to split columns data


    Hi,

    attach a sample workbook with a source worksheet and a desired worksheet.
    Precise if original worksheet must be overwrited or not …

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

    Re: Any data splitting experts out there? Seeking help to split columns data

    Hi..

    Try this..
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Re: Any data splitting experts out there? Seeking help to split columns data

    Thanks guys, apo especially!!
    This is very close to what I was looking for..

    Am sorry if I m sounding too greedy, is it possible if it can be tweaked such that 3 columns are copied and pasted into a fresh sheet with the Sheetname as the characters before the - (i.e. Northwest ), whilst retaining the first column

    I have reattached a spreadsheet with the Main sheets and the intended output..
    Attached Files Attached Files

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

    Re: Any data splitting experts out there? Seeking help to split columns data

    Hi..

    Sure.. Click the Button on the Main sheet..

    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Any data splitting experts out there? Seeking help to split columns data

    This actually copies.
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Re: Any data splitting experts out there? Seeking help to split columns data

    Thanks, it works!!

    But for some reason the code does not pick up values in rows after a blank row..is there a way around this?

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

    Re: Any data splitting experts out there? Seeking help to split columns data

    The reason is because 'CurrentRegion' is being used. It will only pick up cells in a contiguous block.

    If your data goes out to the M column... for example...

    You could change this line:
    Please Login or Register  to view this content.
    to:
    Please Login or Register  to view this content.

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Any data splitting experts out there? Seeking help to split columns data

    Change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Red face Re: Any data splitting experts out there? Seeking help to split columns data

    Great, it works! awesome

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Any data splitting experts out there? Seeking help to split columns data

    You are welcome and thanks for the rep.

    Can you mark this thread as "Solved"?

  13. #13
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Re: Any data splitting experts out there? Seeking help to split columns data

    Would like to present an additional requirement, supposed my data for column1 starts from cell a2, but for the rest of columns say the begin only at row10, how do I go about amending your code to capture the desired result?

  14. #14
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Re: Any data splitting experts out there? Seeking help to split columns data

    Have reattached my file, along with desired output in the North, South, East, West tabs.
    Would really appreciate the help,
    Thanks!
    Attached Files Attached Files

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

    Re: Any data splitting experts out there? Seeking help to split columns data

    Like this?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  16. #16
    Registered User
    Join Date
    07-25-2014
    Location
    Singapore
    MS-Off Ver
    2007
    Posts
    12

    Re: Any data splitting experts out there? Seeking help to split columns data

    Thanks Mate!! Much appreciated.

+ 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. Splitting data by columns?
    By time for heroes in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2014, 07:40 AM
  2. [SOLVED] Splitting Data Into Columns
    By Adam845 in forum Excel General
    Replies: 5
    Last Post: 10-04-2012, 07:00 PM
  3. splitting data into columns
    By seafarer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-22-2008, 03:57 AM
  4. Replies: 1
    Last Post: 11-11-2005, 07:25 PM
  5. [SOLVED] Splitting data into columns
    By Jamie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2005, 12:30 PM

Tags for this Thread

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