I have a huge "sheet application", in one row, and one of the fields, called "price" literally has 433 "IF" statements in the formula bar. Basically, there's a lot of options, and based on them, I have to change the price in the field (if user picks option 1, set price 1, and so on). I was just wondering if there was a more sane way of writing that, because
- it's seriously tiring and incomprehensible
- it usually doesn't even work because I have to throw a IF(AND()) and IF(OR()) from time to time which breaks my workflow, and makes debugging impossible.
Any help greatly appreciated.
instead of
AND
you can use multiplication*
and instead ofOR
use sum+
- that way you can easily useARRAYFORMULA
if needed. also have a look here: https://webapps.stackexchange.com/q/123729/186471 for alternativesupdate
try this instead of your pstebin formula:
and data sheet: