Forum Discussion
Compound If statements
PeterBartholomew1 Thank you for your reply.. are you saying my Master Data is not setup efficiently? Most of my cells are dependent on 2 - 3 criteria. It would be much appreciated if you could provide the LOOKUP formula for cell G18 & G21 so I may use it as an example. Your help is much appreciated. Thank you.
I'd do not rely on direct lookups since texts to lookup could vary (e.g. Package (C) = PACK C, etc.). Perhaps parallelly to data validation lists
create one more range which maps above on position of cell to pick-up. Or even better to link here cells from which values ae to be taken, with that we are less dependent from insertion/deleting rows in main list.
But it very depends on how information about the packages is updated - is it fixed structure or not, does text in CP Packages are exactly the same all the time or they could vary (Package(C) = PACK C =
PACKAGE C = pkg C = etc).
Other words, it's not enough knowledge of business logic on our site (which could be obvious for you).
- PeterBartholomew1Oct 09, 2020Silver Contributor
I think we are in agreement.
The nested IFs look a nightmare to me; I think I might even prefer to copy/paste the values across from the second sheet than try to validate the formulas!
- SergeiBaklanOct 09, 2020Diamond Contributor
It's possible to survive with complex nested IF generating it first time. Perhaps even second time to modify the logic in initial formula. But on third time you start thinking that maybe it'll be better to change the job.
- JanStewartOct 12, 2020Copper Contributor
SergeiBaklan I have most of the formulas working nicely... thanks to your ideas. However I have not figured out how to identify a price based on the number of transactions (see highlighted in yellow). Sorry, I couldn't follow your formula. Could you provide another hint?