shellyk1980 wrote:
I have a user that his Excel formulas (DBR, DBS) working intermittently.
When the formula is not working it shows KEY ERROR
Does anyone know the source of the problem?
For all the other users in the same model, there is no such problem.
Really DBR, or DBR
W? The metaphorical 99% of such cases occur where:
- You are using a DBRW formula to return a value (which we'll call "the value formula"); and
- One of the element names that you are feeding to that formula is itself derived from
another DBRW formula (which we'll call "the element formula").
Since DBRW formulas are processed in batches and not individually, the element formula's result usually isn't known at the time that the value formula is calculated, resulting in a key error. However whether you get it or not depends to a large extent on the order of calculation (particularly in complex workbooks), which is why it can appear to be intermittent in some cases. (And why simply going to the value formula's cell and pressing [F2] [Enter] will yield the correct value, and why tools like TM1 Tools' formula tracer won't reveal any errors; when you calculate the value formula by itself and not as part of a standard [F9] recalculation, it's fine.)
The solution is to ensure that the element formula uses a DBR and not a DBRW so that it is calculated separately before the DBRWs are.
If that's not it, you would need to supply
substantially more relevant information than you have.