Need multifunctional formula or If condition in same cell repeated

I want to increment by one unit going left 18 spaces, and at the same time increase by 18 in column 18 columns total. Possible?