This happens to me once in a while, and I'm wondering if there's a simple way around it.
The standard If-then function is: If(Condition, True, False).
But sometimes the Condition and the True-path are the same. For example, I want to test if cell B1 is 5. If so, that's the answer, otherwise so whatever else. ie IF(B1=5, B1, C5).
It becomes an issue if the condition is huge (with long, nested formula), you are then writing the same formula twice. E.g. IF([very_long_formula_A]<>0, [very_long_formula_A], 2).
Is there a way around this so you don't need to write the same formula twice?
The standard If-then function is: If(Condition, True, False).
But sometimes the Condition and the True-path are the same. For example, I want to test if cell B1 is 5. If so, that's the answer, otherwise so whatever else. ie IF(B1=5, B1, C5).
It becomes an issue if the condition is huge (with long, nested formula), you are then writing the same formula twice. E.g. IF([very_long_formula_A]<>0, [very_long_formula_A], 2).
Is there a way around this so you don't need to write the same formula twice?