I would suggest you look at the INDIRECT function. I never use it, so I'm not very good at using it, but you basically build your cell reference as a text string, then you can use the INDIRECT function inside of the SLOPE function to get the result.