+ Reply to Thread
Results 1 to 3 of 3

Inserting row based on value and copying same row

  1. #1
    Registered User
    Join Date
    11-07-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    15

    Inserting row based on value and copying same row

    I haven't started on the macro for this yet but I want to get a general idea if this is possible and what the basic steps would be.

    I have a spreadsheet and in column U, the description has this:

    Period, Frequency, P, #, #, #, D, #, #, S, #, # (It is all in one cell with letters P, D, S and numbers separated by commas. Period is Q12018, frequency is Yearly, Quarterly, etc)

    I want to use the text to delimited function and enter these starting from column BD.
    I then want to insert and copy rows below based on P, D, S.

    Finished product would ideally look like this:

    Description A-BC, Period, Frequency, P, #, #
    Description A-BC, Period, Frequency, D, #, #
    Description A-BC, Period, Frequency, S, #, #

    Not every row has P, D, S. It could be two or all three.

    Is this difficult to do? What are the steps? I was thinking using text to delimited built in function first , then with the macro go through the row from the bottom and find the P, then insert row below, and copy and paste. And repeat.

  2. #2
    Registered User
    Join Date
    11-07-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    15

    Re: Inserting row based on value and copying same row

    Anyone have any ideas? I really need help with this. Is it possible to use a text to columns function by cell value and insert new rows?
    Last edited by hei.so; 01-12-2018 at 01:12 PM.

  3. #3
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Inserting row based on value and copying same row

    Hi @hei.so

    While checking non answered posts, I found yours,
    Perhaps you didn't get any answer because your inquire is not so clear.
    It's easier if you post a sample book with what you have, and what you want to get.

    Anyhow, I'm attaching a workbook with a little macro to do ( I hope) what you need as I understand your post.
    Attached Files Attached Files
    Barriers are there for those who don't want to dream

+ 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. Formula not copying down when inserting new row
    By swoosh1014 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-30-2014, 03:22 PM
  2. Inserting and copying rows
    By YoungMacro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-12-2013, 09:14 AM
  3. inserting, copying, changing based on criteria
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-12-2011, 12:39 PM
  4. Copying and inserting worksheets
    By Aitchy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2010, 04:02 PM
  5. Macro for copying and inserting a row
    By owainbaber in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-19-2010, 03:44 PM
  6. Macro for copying & inserting a row
    By goeppngr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2006, 01:00 PM
  7. Inserting and copying
    By Sean in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2005, 06:06 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