I am looking for a function to copy lines based on a number in column C, for example if column C has a number 2 copy this line 1 time so i have 2 same lines, if column C has a 3 copy this line 2 times so i have it 3 times, i have a worksheet with 300 lines.