Hi Folks,
I have a custom function that calculates based on a number of other columns. Some of the data is static (extracted from a database) others are the results of Excel functions.
My function will not read the values from the cells that are the results of functions. It will return 0 (or empty) every time. Even if I step the function I can step the line in question and get a result of 0 (empty) but execute the same range reference in the immediate window and get the correct value!
If I change the cell to a fixed value rather than a formula I get the expected value back. Why can't I use the formula result in my function? Surely, I should be reading the same thing as the immediate window does???
I have a custom function that calculates based on a number of other columns. Some of the data is static (extracted from a database) others are the results of Excel functions.
My function will not read the values from the cells that are the results of functions. It will return 0 (or empty) every time. Even if I step the function I can step the line in question and get a result of 0 (empty) but execute the same range reference in the immediate window and get the correct value!
If I change the cell to a fixed value rather than a formula I get the expected value back. Why can't I use the formula result in my function? Surely, I should be reading the same thing as the immediate window does???