+ Reply to Thread
Results 1 to 5 of 5

I need a macro that will help me insert a blank row above certan rows

  1. #1
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    I need a macro that will help me insert a blank row above certan rows

    I need help! I have a spread sheet that contains part numbers in column C. All the information is exported from SAP to excel. I filter the part numbers and insert a conditional format that highlights the cluster of cells in column see with duplicate part numbers. I then insert a blank row above the rows that contain the duplicate part number and put a sum if formula in column D (On the new blank inserted row) to count the number of that specific duplicate part number in Column C. Can someone help create a macro for me that will automatically generate the conditional format, insert the blank rows, and count the number of duplicate cells? Please help!

    Example:

    A B C D
    SEQ. PC PART QTY
    1 5 1234 14
    2 8 1285 16
    3 8 3584 15 <----Insert blank cell above this row and put the # of dups. in column D(2)
    4 3 3584 20
    5 1 1586 0
    6 2 2541 0<-------Insert blank cell above this row and put the # of dups. in column D(3)
    7 1 2541 2
    8 4 2541 3
    **This is just an example but it goes on and on and on

  2. #2
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: I need a macro that will help me insert a blank row above certan rows

    Something like this!
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    Re: I need a macro that will help me insert a blank row above certan rows

    This works great! Instead of having the information in the red show up in column 4 how can I change it to another column?

  4. #4
    Forum Contributor
    Join Date
    01-29-2015
    Location
    .
    MS-Off Ver
    2010
    Posts
    313

    Re: I need a macro that will help me insert a blank row above certan rows

    This works great! Instead of having the information in the red show up in column 4 how can I change it to another column

  5. #5
    Forum Contributor
    Join Date
    10-08-2006
    Location
    Walnut, CA
    MS-Off Ver
    2003,2010, Office 365
    Posts
    114

    Re: I need a macro that will help me insert a blank row above certan rows

    Change 4 to whichever column you like in this statement. I hope that's what you're asking.
    Please Login or Register  to view this content.

+ 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. How to create a macro to insert blank rows and copy data into blank rows?
    By zodiack101 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-29-2013, 01:18 PM
  2. [SOLVED] Macro to insert blank rows below rows with values
    By haleakala17 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2013, 11:48 AM
  3. [SOLVED] Macro to insert blank rows so that the total number of rows with data is equal to 1021
    By nsm1411 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-07-2013, 10:25 AM
  4. [SOLVED] Need macro to insert a blank row after every 11 rows
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-11-2013, 01:36 AM
  5. Insert n# of blank rows macro
    By fililr in forum Excel General
    Replies: 2
    Last Post: 08-24-2011, 01:51 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