+ Reply to Thread
Results 1 to 4 of 4

Insert Rows based upon value in cells

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    2

    Insert Rows based upon value in cells

    Hi y'all.

    I'm trying to create a macro that will ultimately insert rows based upon a particular value in a range of cells. What I would like to know if there is any way to make active only those cells that contain the letter "X"? Then I would be able to insert rows at that point. I hope I'm making this clear. An example of data is listed:

    X ANDY 57.00
    X DAVE 43.93
    DAVE 92.00
    X FRED 4.66
    X GREG 23.55
    GREG 84.21
    GREG 8.69
    X MIKE 83.50
    X SETH 41.33

    to look like:

    X ANDY 57.00

    X DAVE 43.93
    DAVE 92.00

    X FRED 4.66

    X GREG 23.55
    GREG 84.21
    GREG 8.69

    X MIKE 83.50

    X SETH 41.33

    Any help on this will save me a ton of time and will be much appreciated.

    Thank you,
    John
    Last edited by forknowledge; 06-20-2014 at 12:06 PM.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert Rows based upon value in cells

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-19-2014
    Location
    California
    MS-Off Ver
    2010
    Posts
    2

    Re: Insert Rows based upon value in cells

    Works perfect! Thank you very much John.

    John

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Insert Rows based upon value in cells

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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] insert rows based on text values in cells
    By simarui in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-20-2014, 07:54 PM
  2. [SOLVED] Insert rows based on the current cell value and, then, copy some cells into the new rows
    By Excel-RZ in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-03-2013, 05:19 PM
  3. [SOLVED] Insert number of rows with data to new sheets based on values in cells
    By keithtran12 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2013, 11:57 AM
  4. [SOLVED] VBA Macro - Insert Rows based on different Column Value but Ignoring Blanks Cells
    By WITJ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2013, 03:11 PM
  5. Excel Macro to insert two rows based on condition and copy and paste multiple cells
    By mannabhalo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-13-2012, 12:56 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