Hi,
I am looking for a way to dynamically change which formula is used depending on the value in another cell, example:
[TABLE="width: 216"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]If value is between[/TD]
[TD]Use formula[/TD]
[/TR]
[TR]
[TD]0-40[/TD]
[TD]ROUND[/TD]
[/TR]
[TR]
[TD]40-100[/TD]
[TD]ROUNDUP[/TD]
[/TR]
[TR]
[TD]100-1000[/TD]
[TD]ROUND[/TD]
[/TR]
[TR]
[TD]1000-10000[/TD]
[TD]ROUNDDOWN
[/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a solution that does not require endless if-statements. Rather looking for a solution where one specifies the formula to be used in a range which is the applied through an index-match-statement or similar. I have tried using the INDIRECT function but it does not seem to convert the text into different formulas.
Any help is well appreciated!
/Axel
I am looking for a way to dynamically change which formula is used depending on the value in another cell, example:
[TABLE="width: 216"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]If value is between[/TD]
[TD]Use formula[/TD]
[/TR]
[TR]
[TD]0-40[/TD]
[TD]ROUND[/TD]
[/TR]
[TR]
[TD]40-100[/TD]
[TD]ROUNDUP[/TD]
[/TR]
[TR]
[TD]100-1000[/TD]
[TD]ROUND[/TD]
[/TR]
[TR]
[TD]1000-10000[/TD]
[TD]ROUNDDOWN
[/TD]
[/TR]
</tbody>[/TABLE]
I am looking for a solution that does not require endless if-statements. Rather looking for a solution where one specifies the formula to be used in a range which is the applied through an index-match-statement or similar. I have tried using the INDIRECT function but it does not seem to convert the text into different formulas.
Any help is well appreciated!
/Axel