I have this sample data:

[![enter image description here](https://i.stack.imgur.com/e0pvN.jpg)](https://i.stack.imgur.com/e0pvN.jpg)

Assuming I have the formula to combine values of A & B in a new cell (starting from cell E1), how can I limit the formula on the 5th row and continue on the next column (and so on) like on the sample above?