I have a function that I've written:
getpercent(variable1,variable2)
When I try to use the function, it seems to run once, but then uses the same return value for all other cells
cell A1= =getpercent(1,2) returns "0.03"
which is correct..
but if I use it in another cell
cell A3= =getpercent(2,3) return "0.03"
which is not correct it should return "0.05.
It seems like once excel runs the function once, it just uses the same value over and over again. How can I fix this?
I need the function to run once the cell losses focus, it this possible, and what am I doing wrong?
getpercent(variable1,variable2)
When I try to use the function, it seems to run once, but then uses the same return value for all other cells
cell A1= =getpercent(1,2) returns "0.03"
which is correct..
but if I use it in another cell
cell A3= =getpercent(2,3) return "0.03"
which is not correct it should return "0.05.
It seems like once excel runs the function once, it just uses the same value over and over again. How can I fix this?
I need the function to run once the cell losses focus, it this possible, and what am I doing wrong?