Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50085

Need to insert Rows Based on a Condition

$
0
0
Dear Experts,

I have a file where I need to insert rows based on employees working in the site. I am doing it now manually but its a tedious task as I have to do it for more than 7000 people.

Below is what I want to do (Note: each site is differentiated by the merged cell)

Till 3 people working insert 1 row
Till 5 People working insert 2 rows
Till 10 People working insert 4 rows
Till 20 people working insert 8 rows
More than 20 people working insert 10 rows

Thank you in anticipation !

Attached : sample sheet for reference
Attached Files

Viewing all articles
Browse latest Browse all 50085

Trending Articles