Please make response dummy proof.
I have to add 3 empty rows above a cell in colum A when the amount is bigger or small than zero (any number but zero).
As you see there is no consistancy in how many rows there are between the zeros.
Please write your response as if you were me writing this. Also I need to know if I need to modify if my next excel has more rows.
In your original question, you said that you needed to add three rows inserted when the order number changes. And you gave the example of:
The macro that I gave you would result in:
Which is what I thought you were asking for. This sounds like an entirely different question.
You also mentioned "If row two minus row one is bigger than zero then add 3 rows", which I interpret to mean the same thing - if the order number changes, then insert 3 rows... except that you don't actually have to do a subtraction and then compare to 0 - you just have to compare it to the previous row and see if it's different. Are the zeroes in the new example some type of intermediate calculation?
I don't understand what the zeroes represent in your new example. Can you please clarify why it won't work to insert three rows when the number changes? That may help me understand what you are trying to do.
In the macro that I gave you, for an example, if there are 1000 rows, that represent 100 different orders, it will list items with the same order number until the order number change, then it will insert 3 rows before the next order number begins and it will do that for the entire worksheet.