shahdelsol
Active Member
- Joined
- Jul 21, 2009
- Messages
- 276
- Office Version
- 365
- Platform
- Windows
I am using this IF/AND formula and it works but in certain scenario doesn't work the way I want it.
As you see there are 4 parts with IF/AND.
The problem is if AD41 on the second IF <55 but >39, and still M41>=15,M41<=17.5 true, I still want 14*50
Code:
=IF(AND(M41>=12,M41<=14.5,AD41>=40),M41*50,IF(AND(M41>=15,M41<=17.5,AD41>=55),(M41*50)+700,IF(AND(M41>=18,M41<=19.5,AD41>=65),(M41*50)+700+850,IF(AND(M41>=20,AD41>=75),(M41*100)+700+850+950,0))))
As you see there are 4 parts with IF/AND.
The problem is if AD41 on the second IF <55 but >39, and still M41>=15,M41<=17.5 true, I still want 14*50
If AD41 on the third IF <65 but >54 and still M41>=18,M41<=19.5 true, I still want (17*50)+700
If AD41 on the forth IF <75 but >64 and still M41>=20, I still want (19*50)+700+850
I hope this all makes sense. Is there a better way to handle this without adding more IF / ANDs? Thanks in advance.
I hope this all makes sense. Is there a better way to handle this without adding more IF / ANDs? Thanks in advance.
Last edited: