I am using Microsoft Excel and would like to use vb code if possible to do function below.

My problem is I have no idea how to write code and my reason for this request is that Excel only allow a certain amount of arguments.
I will be adding much more in the future.

I need the result to the first IF/OR Statement to be the number "1" if True else nothing.
and for the second IF/OR Statement to be the "0" if True else nothing.

=IF(OR(N$11>$L$12,N$11<$K$12),"",IF(N$11=$K$12,+((N$11-$K$12)/$K$4)*$K$4,IF(OR(N$11>$I$12,N$11<$H$12),"",IF(N$11=$H$12,-((N$11+$H$12)/$K$4)*$K$4))))

Appreciate any assistance or guidance.

Yo