alxanderjon
New Member
- Joined
- Oct 30, 2014
- Messages
- 2
I'm pretty new to excel, so I don't know exactly what's going on here or why, but I have this massive formula:
=IF(AND(L30<=1740,N30=1,O30="yes"),C30/1000*2.18,IF(AND(L30<=1740,N30=1),C30/1000*1.97,IF(AND(L30<=1740,N30=2),C30/1000*1.84,IF(AND(L30<=1740,N30=2,O30="yes"),C30/1000*2.05,IF(AND(L30>1740,L30<=1828,N30=1,O30="yes"),C30/1000*2.17,IF(AND(L30>1740,L30<=1828,N30=1),C30/1000*1.96,IF(AND(L30>1740,L30<=1828,N30=2),C30/1000*1.83,IF(AND(L30>1740,L30<=1828,N30=2,O30="yes"),C30/1000*2.04,IF(AND(L30>1828,L30<=1908,N30=1,O30="yes"),C30/1000*2.15,IF(AND(L30>1828,L30<=1908,N30=1),C30/1000*1.95,IF(AND(L30>1828,L30<=1908,N30=2),C30/1000*1.82,IF(AND(L30>1828,L30<=1908,N30=2,O30="yes"),C30/1000*2.02,IF(AND(L30>1908,L30<=1965,N30=1,O30="yes"),C30/1000*2.16,IF(AND(L30>1908,L30<=1965,N30=1),C30/1000*1.96,IF(AND(L30>1908,L30<=1965,N30=2)*C30/1000*1.83,IF(AND(L30>1908,L30<=1965,N30=2,O30="yes"),C30/1000*2.03,IF(AND(L30>1965,L30<=1984,N30=1,O30="yes"),C30/1000*2.04,IF(AND(L30>1965,L30<=1984,N30=1),C30/1000*1.94,IF(AND(L30>1965,L30<=1984,N30=2),C30/1000*1.81,IF(AND(L30>1965,L30<=1984,N30=2,O30="yes"),C30/1000*2.01,IF(AND(L30>1984,L30<=2045,N30=1,O30="yes"),C30/1000*2.08,IF(AND(L30>1984,L30<=2045,N30=1),C30/1000*1.88,IF(AND(L30>1984,L30<=2045,N30=2),C30/1000*1.73,IF(AND(L30>1984,L30<=2045,N30=2,O30="yes"),C30/1000*1.93,IF(AND(L30>2045,L30<=2094,N30=1,O30="yes"),C30/1000*2.05,IF(AND(L30>2045,L30<=2094,N30=1),C30/1000*1.85,IF(AND(L30>2045,L30<=2094,N30=2)*C30/1000*1.72,IF(AND(L30>2045,L30<=2094,N30=2,O30="yes")*C30/1000*1.92,IF(AND(L30>2094,L30<=2290,N30=1,O30="yes"),C30/1000*2.03,IF(AND(L30>2094,L30<=2290,N30=1),C30/1000*1.83,IF(AND(L30>2094,L30<=2290,N30=2),C30/1000*1.7,IF(AND(L30>2094,L30<=2290,N30=2,O30="yes"),C30/1000*1.9,IF(AND(L30>2290,L30<=2592,N30=1,O30="yes"),C30/1000*2.01,IF(AND(L30>2290,L30<=2592,N30=1),C30/1000*1.81,IF(AND(L30>2290,L30<=2592,N30=2),C30/1000*1.68,IF(AND(L30>2290,L30<=2592,N30=2,O30="yes"),C30/1000*1.88,IF(AND(L30>2592,L30<=2714,N30=1,O30="yes"),C30/1000*2,IF(AND(L30>2592,L30<=2714,N30=1),C30/1000*1.8,IF(AND(L30>2592,L30<=2714,N30=2),C30/1000*1.67,IF(AND(L30>2592,L30<=2714,N30=2,O30="yes"),C30/1000*1.87,IF(AND(L30>2714,L30<=2896,N30=1,O30="yes"),C30/1000*1.99,IF(AND(L30>2714,L30<=2896,N30=1),C30/1000*1.78,IF(AND(L30>2714,L30<=2896,N30=2),C30/1000*1.66,IF(AND(L30>2714,L30<=2896,N30=2,O30="yes"),C30/1000*1.86,IF(AND(L30>2896,L30<=3175,N30=1,O30="yes"),C30/1000*1.97,IF(AND(L30>2896,L30<=3175,N30=1),C30/1000*1.77,IF(AND(L30>2896,L30<=3175,N30=2),C30/1000*1.64,IF(AND(L30>2896,L30<=3175,N30=2,O30="yes"),C30/1000*1.83,IF(AND(L30>3175,L30<=3258,N30=1,O30="yes"),C30/1000*1.965,IF(AND(L30>3175,L30<=3258,N30=1),C30/1000*1.765,IF(AND(L30>3175,L30<=3258,N30=2),C30/1000*1.635,IF(AND(L30>3175,L30<=3258,N30=2,O30="yes"),C30/1000*1.845,IF(AND(L30>3258,L30<=3362,N30=1,O30="yes"),C30/1000*1.96,IF(AND(L30>3258,L30<=3362,N30=1),C30/1000*1.76,IF(AND(L30>3258,L30<=3362,N30=2),C30/1000*1.63,IF(AND(L30>3258,L30<=3362,N30=2,O30="yes"),C30/1000*1.83,IF(AND(L30>3362,L30<=3722,N30=1,O30="yes"),C30/1000*1.9,IF(AND(L30>3362,L30<=3722,N30=1),C30/1000*1.7,IF(AND(L30>3362,L30<=3722,N30=2),C30/1000*1.57,IF(AND(L30>3362,L30<=3722,N30=2,O30="yes"),C30/1000*1.76,IF(AND(L30>3722,L30<=3916,N30=1,O30="yes"),C30/1000*1.96,IF(AND(L30>3722,L30<=3916,N30=1),C30/1000*1.76,IF(AND(L30>3722,L30<=3916,N30=2),C30/1000*1.63,IF(AND(L30>3722,L30<=3916,N30=2,O30="yes"),C30/1000*1.83,"do quote"))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Now the problems I'm having is that it has all these different variables and it's supposed to shoot back numbers. and it does up until I get to a size of 1970, then instead of giving me numbers it comes back as "FALSE" for everything larger than 1970 until I get to a size of 3828 where it gives me this "#VALUE!", no Idea what's wrong here, or why it works for some of it and not all.
And the other thing I wanted to address was, as I said, I'm new to this, but this formula is GIGANTIC!! and you all seem to know your stuff, is there a way to shorten this to something more reasonable?
=IF(AND(L30<=1740,N30=1,O30="yes"),C30/1000*2.18,IF(AND(L30<=1740,N30=1),C30/1000*1.97,IF(AND(L30<=1740,N30=2),C30/1000*1.84,IF(AND(L30<=1740,N30=2,O30="yes"),C30/1000*2.05,IF(AND(L30>1740,L30<=1828,N30=1,O30="yes"),C30/1000*2.17,IF(AND(L30>1740,L30<=1828,N30=1),C30/1000*1.96,IF(AND(L30>1740,L30<=1828,N30=2),C30/1000*1.83,IF(AND(L30>1740,L30<=1828,N30=2,O30="yes"),C30/1000*2.04,IF(AND(L30>1828,L30<=1908,N30=1,O30="yes"),C30/1000*2.15,IF(AND(L30>1828,L30<=1908,N30=1),C30/1000*1.95,IF(AND(L30>1828,L30<=1908,N30=2),C30/1000*1.82,IF(AND(L30>1828,L30<=1908,N30=2,O30="yes"),C30/1000*2.02,IF(AND(L30>1908,L30<=1965,N30=1,O30="yes"),C30/1000*2.16,IF(AND(L30>1908,L30<=1965,N30=1),C30/1000*1.96,IF(AND(L30>1908,L30<=1965,N30=2)*C30/1000*1.83,IF(AND(L30>1908,L30<=1965,N30=2,O30="yes"),C30/1000*2.03,IF(AND(L30>1965,L30<=1984,N30=1,O30="yes"),C30/1000*2.04,IF(AND(L30>1965,L30<=1984,N30=1),C30/1000*1.94,IF(AND(L30>1965,L30<=1984,N30=2),C30/1000*1.81,IF(AND(L30>1965,L30<=1984,N30=2,O30="yes"),C30/1000*2.01,IF(AND(L30>1984,L30<=2045,N30=1,O30="yes"),C30/1000*2.08,IF(AND(L30>1984,L30<=2045,N30=1),C30/1000*1.88,IF(AND(L30>1984,L30<=2045,N30=2),C30/1000*1.73,IF(AND(L30>1984,L30<=2045,N30=2,O30="yes"),C30/1000*1.93,IF(AND(L30>2045,L30<=2094,N30=1,O30="yes"),C30/1000*2.05,IF(AND(L30>2045,L30<=2094,N30=1),C30/1000*1.85,IF(AND(L30>2045,L30<=2094,N30=2)*C30/1000*1.72,IF(AND(L30>2045,L30<=2094,N30=2,O30="yes")*C30/1000*1.92,IF(AND(L30>2094,L30<=2290,N30=1,O30="yes"),C30/1000*2.03,IF(AND(L30>2094,L30<=2290,N30=1),C30/1000*1.83,IF(AND(L30>2094,L30<=2290,N30=2),C30/1000*1.7,IF(AND(L30>2094,L30<=2290,N30=2,O30="yes"),C30/1000*1.9,IF(AND(L30>2290,L30<=2592,N30=1,O30="yes"),C30/1000*2.01,IF(AND(L30>2290,L30<=2592,N30=1),C30/1000*1.81,IF(AND(L30>2290,L30<=2592,N30=2),C30/1000*1.68,IF(AND(L30>2290,L30<=2592,N30=2,O30="yes"),C30/1000*1.88,IF(AND(L30>2592,L30<=2714,N30=1,O30="yes"),C30/1000*2,IF(AND(L30>2592,L30<=2714,N30=1),C30/1000*1.8,IF(AND(L30>2592,L30<=2714,N30=2),C30/1000*1.67,IF(AND(L30>2592,L30<=2714,N30=2,O30="yes"),C30/1000*1.87,IF(AND(L30>2714,L30<=2896,N30=1,O30="yes"),C30/1000*1.99,IF(AND(L30>2714,L30<=2896,N30=1),C30/1000*1.78,IF(AND(L30>2714,L30<=2896,N30=2),C30/1000*1.66,IF(AND(L30>2714,L30<=2896,N30=2,O30="yes"),C30/1000*1.86,IF(AND(L30>2896,L30<=3175,N30=1,O30="yes"),C30/1000*1.97,IF(AND(L30>2896,L30<=3175,N30=1),C30/1000*1.77,IF(AND(L30>2896,L30<=3175,N30=2),C30/1000*1.64,IF(AND(L30>2896,L30<=3175,N30=2,O30="yes"),C30/1000*1.83,IF(AND(L30>3175,L30<=3258,N30=1,O30="yes"),C30/1000*1.965,IF(AND(L30>3175,L30<=3258,N30=1),C30/1000*1.765,IF(AND(L30>3175,L30<=3258,N30=2),C30/1000*1.635,IF(AND(L30>3175,L30<=3258,N30=2,O30="yes"),C30/1000*1.845,IF(AND(L30>3258,L30<=3362,N30=1,O30="yes"),C30/1000*1.96,IF(AND(L30>3258,L30<=3362,N30=1),C30/1000*1.76,IF(AND(L30>3258,L30<=3362,N30=2),C30/1000*1.63,IF(AND(L30>3258,L30<=3362,N30=2,O30="yes"),C30/1000*1.83,IF(AND(L30>3362,L30<=3722,N30=1,O30="yes"),C30/1000*1.9,IF(AND(L30>3362,L30<=3722,N30=1),C30/1000*1.7,IF(AND(L30>3362,L30<=3722,N30=2),C30/1000*1.57,IF(AND(L30>3362,L30<=3722,N30=2,O30="yes"),C30/1000*1.76,IF(AND(L30>3722,L30<=3916,N30=1,O30="yes"),C30/1000*1.96,IF(AND(L30>3722,L30<=3916,N30=1),C30/1000*1.76,IF(AND(L30>3722,L30<=3916,N30=2),C30/1000*1.63,IF(AND(L30>3722,L30<=3916,N30=2,O30="yes"),C30/1000*1.83,"do quote"))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
Now the problems I'm having is that it has all these different variables and it's supposed to shoot back numbers. and it does up until I get to a size of 1970, then instead of giving me numbers it comes back as "FALSE" for everything larger than 1970 until I get to a size of 3828 where it gives me this "#VALUE!", no Idea what's wrong here, or why it works for some of it and not all.
And the other thing I wanted to address was, as I said, I'm new to this, but this formula is GIGANTIC!! and you all seem to know your stuff, is there a way to shorten this to something more reasonable?