Hi Friends,
I'm a member of this forum for a long time and found many VBA codes that fit to my works; thank you very much.
Today, I need another VBA codes but I cannot find it
I need VBA to add the total 20 rows above text in column B (FAC_7), accept for the first row (1063109), based on the count value of items in column D for the above item. So, the rows that need to be added will be the count number in D - 20.
For instance, for FAC_7 1066221, the items count in D will be 5, so the rows that need to be added above 1066221 is 20-5 =15 and for 1069205 is 20-3 = 17.
Thanks in advance,
Pon
Here is my sample data.
I'm a member of this forum for a long time and found many VBA codes that fit to my works; thank you very much.
Today, I need another VBA codes but I cannot find it
I need VBA to add the total 20 rows above text in column B (FAC_7), accept for the first row (1063109), based on the count value of items in column D for the above item. So, the rows that need to be added will be the count number in D - 20.
For instance, for FAC_7 1066221, the items count in D will be 5, so the rows that need to be added above 1066221 is 20-5 =15 and for 1069205 is 20-3 = 17.
Thanks in advance,
Pon
Here is my sample data.