I have 2 separate lines of code which both work fine, but I need to have them work together.
Here is the first line:
Here is the second line of code:
I need them each to be used depending on this criteria - IF L19>$M$18 I want the first formula used, but IF L19<=$M$18, I want the second formula used.
Writing each line separately wasn't such an issue, but for the life of me, I always get lost trying to combine a couple of functions like this.
Here is what I tried, but Excel tells me there are too many arguments
Any thoughts how to have it work as described above?
cheers
Here is the first line:
Code:
=IF(F19="","",IF(F19<3.5,L18*0.01,IF(F19<7.45,L18*0.006,IF(F19<11.1,L18*0.004,"0"))))
Here is the second line of code:
Code:
=IF(F19="","",IF(F19<3.5,$M$18*0.01,IF(F19<7.45,$M$18*0.006,IF(F19<11.1,$M$18*0.004,"0"))))
I need them each to be used depending on this criteria - IF L19>$M$18 I want the first formula used, but IF L19<=$M$18, I want the second formula used.
Writing each line separately wasn't such an issue, but for the life of me, I always get lost trying to combine a couple of functions like this.
Here is what I tried, but Excel tells me there are too many arguments
Code:
=IF(L19>$M$18,IF(F19="","",IF(F19<3.5,L18*0.01,IF(F19<7.45,L18*0.006,IF(F19<11.1,L18*0.004,"0",IF(L19<=$M$18,IF(F19="","",IF(F19<3.5,$M$18*0.01,IF(F19<7.45,$M$18*0.006,IF(F19<11.1,$M$18*0.004,"0"))))))))))
Any thoughts how to have it work as described above?
cheers