=IF(M5=2,K45) works for the one result but I need it to work with the other possible results... =IF(M5=2,K45) and =IF(M5=3,K44) and =IF(M5=4,K43) and so on.
This is very confusing. This appears to be quite a bit different than the first few posts. If there is any sort of predictable "pattern", then we can probably do what you want. I am just trying to understand what this pattern is.
Based on this most recent post, it looks like it is going backwards, i.e. as the value of M5 increases, the row from column K decreases, in a one-to-one relationship. If that is the case, then you should be able to use this variation:
Does that work?
Hopefully, you are beginning to see the pattern of these indirect formulas. Essentially, we are just building the range reference we want to pull.
The issue is, if we just do it like this:
if M5 is 2, that formula will return the literal value "K45", not the value from that cell.
What surrounding that calculation by the INDIRECT function does is tell Excel that I want to return the value from the cell reference that this calculation returns.
Make sense?