How can i increment a formula in excel?

Need to Increment the formula according to the number of lines

@Soudios -


Thank you but in this example, i need to write the 1st row and the last one.
In my case the number of row can change, how can i do ?
Auto Fill (9.3 KB)