The OP's requirements are a bit vague, but on my reading of them I fully agree with MintJulep that the TABLE feature in Excel is exactly what is required.[ ] Several years ago I was asked by my employers to give a series of lunchtime talks on some of Excel's powerful but lesser-known features, and this was one of them.[ ] I attach the example I used as part of my talk.