Week Number in excel column increasing in each cell

Hi, I have cell B2 which has value of Weeknumber Like WK 15. I want to copy down that same cell value to match the other columns row suppose upto D20. When I do that using auto fill range , it fills up to B20 but it is increasing week number on each cell like WK 16, WK 17, WK 18…

How to copy down same value?

Hi @pari_patel

Can you try this

Input:

Output:

Regards,

1 Like

@pari_patel

Another approach

Excel.Sheet("Sheet1").Range("D3:D"+Excel.Sheet("Sheet1").DataTableValue.RowCount.ToString)

Regards,

1 Like

Hi @lrtetala
Thanks for the solutions. Working absolutely correct.

Happy Automaton!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.