How to get row index if Excel has duplicate row

But, The range in Write range activity is “A1” so, what range can i use ? It should be dynamic everytime right ?