J
JeffJ
I get an error saying "Formula too long."
My formula as follows works fine without any error:
=IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="38X12"),35,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="40X12"),36,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="42X12"),37,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="44X12"),38,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="46X12"),39,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="48X12"),40,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="50X12"),41,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="52X12"),42,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="54X12"),43,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="56X12"),44,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="58X12"),45,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="60X12"),46,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="62X12"),47,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="64X12"),48,"")
However, if I attach just one more argument to the end of it (i.e.
attach the following argument to the tail end of the above arguments)
I get the error "Formula too long":
IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="6 inch",E6="66X12"),49,"")
I know that, using the regular IF function, you are limited to
arguments.
I found out that if you use the CONCATENATE function, you can go up t
30 arguments, which is nice if you need more than 7 IF functions in
formula.
And in my internet research, I found out that if you use th
concatenation operator ("&"), you are not limited to 30 argument
(which was like a godsend when I found this out).
My guess is, the reason I'm getting the error may have something to d
with having too many AND or OR nested functions (in TOTAL combinatio
for the entire formula)...even though you're supposed to be able t
have up to 30 conditions for the AND function and 30 for the O
function.
I know I can split my formula between 2 or more hidden cells and the
Reference them from my main cell (as a workaround solution), but i
there's an easier way I'd like to know; in any case, I would reall
like to know WHY I'm getting this error. Does anyone know?
Thank you for any reply.
-Jeff
(e-mail address removed)
My formula as follows works fine without any error:
=IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="38X12"),35,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="40X12"),36,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="42X12"),37,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="44X12"),38,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="46X12"),39,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="48X12"),40,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="50X12"),41,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="52X12"),42,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="54X12"),43,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="56X12"),44,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="58X12"),45,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="60X12"),46,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="62X12"),47,"")&IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="
inch",E6="64X12"),48,"")
However, if I attach just one more argument to the end of it (i.e.
attach the following argument to the tail end of the above arguments)
I get the error "Formula too long":
IF(AND(OR(E5=1,E5=2),E2="...3/12...",E3="6 inch",E6="66X12"),49,"")
I know that, using the regular IF function, you are limited to
arguments.
I found out that if you use the CONCATENATE function, you can go up t
30 arguments, which is nice if you need more than 7 IF functions in
formula.
And in my internet research, I found out that if you use th
concatenation operator ("&"), you are not limited to 30 argument
(which was like a godsend when I found this out).
My guess is, the reason I'm getting the error may have something to d
with having too many AND or OR nested functions (in TOTAL combinatio
for the entire formula)...even though you're supposed to be able t
have up to 30 conditions for the AND function and 30 for the O
function.
I know I can split my formula between 2 or more hidden cells and the
Reference them from my main cell (as a workaround solution), but i
there's an easier way I'd like to know; in any case, I would reall
like to know WHY I'm getting this error. Does anyone know?
Thank you for any reply.
-Jeff
(e-mail address removed)