Because I use this function on many cells, I was concerned that putting a specific cell reference in the formula might be a problem but it all seems to work.
As long you don't put dollar signs in the reference, (ie $A$2) you'll be okay, since it's a relative reference and not an absolute reference. Glad we could help out!