I'm trying to replace a number in a cell reference with another cell reference. I know there are a series of & and "" to use but what makes this tricky is that I want it as part of a range in a formula. Example: I want to replace the 5 in both instances of the formula below with a cell reference (let's say B4) which has the number 5 in it.
=match($B$1,'Sheet1'!$A$5:$AI$5,0)
=match($B$1,'Sheet1'!$A$5:$AI$5,0)