+ Reply to Thread
Results 1 to 8 of 8

Edit vba to split values over 10 columns and required rows

  1. #1
    Forum Contributor
    Join Date
    04-22-2015
    Location
    Scotland
    MS-Off Ver
    365
    Posts
    171

    Edit vba to split values over 10 columns and required rows

    Hi Forum
    The attached script works really well but I would like it to load as 10 column's across and the rest of the value in required rows 10 across, i.e. if it was 1 to 50, then it would load numbers 1 to 10 in columns A1:J1, next 10 would be A2:J2 ect, hope this makes sense.

    Please Login or Register  to view this content.
    Thanks in advance
    James

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Edit vba to split values over 10 columns and required rows

    Even as for the proverbial Scotsman, you are extremely economical/frugal in sample data, that would help in solving the case ... ... give an example of the data layout before and after the macro.

  3. #3
    Forum Contributor
    Join Date
    04-22-2015
    Location
    Scotland
    MS-Off Ver
    365
    Posts
    171

    Re: Edit vba to split values over 10 columns and required rows

    Good point, the more information the clearer it is.. I have a attached a spreadsheet data sample of the current output (A1)
    and what I am hoping for in (E1). Hope it makes more sense looking at it.

    Thanks
    James
    Attached Files Attached Files

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

    Re: Edit vba to split values over 10 columns and required rows

    See if this is how you wanted.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-22-2015
    Location
    Scotland
    MS-Off Ver
    365
    Posts
    171

    Re: Edit vba to split values over 10 columns and required rows

    Hi Jindon
    Don't think my first reply to went through to you, on testing it provides exactly what I am looking for, but is multiplying the No. of Units entered by 10. i.e. when I input 30 units it produced 300

    I noticed that the No. of Units is driving the number of rows it produces, if I enter i.e. 3 in No of Units it gives me 30, looks exactly what I was looking for but I need the No of Units to be the actual number required as it could 15 and I would need to add it as 1.5. Hope its workable as its near perfect.
    Last edited by JNEWMAN; 04-01-2019 at 05:21 AM. Reason: missed information

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

    Re: Edit vba to split values over 10 columns and required rows

    Sorry, but I don't understand what you are trying to do.

    If you explain step by step logic, it may help to understand.

  7. #7
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Edit vba to split values over 10 columns and required rows

    Hmm ... maybe this way (?):
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-22-2015
    Location
    Scotland
    MS-Off Ver
    365
    Posts
    171

    Re: Edit vba to split values over 10 columns and required rows

    Works well Porucha, many thanks for your input.

    Best regards
    James

+ 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] VBA Split Cell Contents to New Rows & Copy Cells containing single values to the new rows
    By jaimelwilson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-14-2017, 05:30 PM
  2. Converting rows to columns and adding extra rows as required
    By teco in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2016, 04:18 PM
  3. [SOLVED] Formula required to split uneven data into different columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-14-2015, 04:25 AM
  4. split multiple semicolon separated values into new rows for multiple columns
    By bruno08102013 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 01-05-2014, 05:27 PM
  5. [SOLVED] Populate cell values into 6 named text boxes in a userform then edit if required
    By How How in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-05-2013, 05:51 AM
  6. split & transpose columns to rows?
    By toniv in forum Excel General
    Replies: 4
    Last Post: 05-18-2012, 03:26 PM
  7. Split rows into columns?
    By cubsfan334 in forum Excel General
    Replies: 4
    Last Post: 03-10-2010, 12:25 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