M
MJW
Ok, while this may be an easy way to induce contempt, notoriety and maybe
even a few death threats, can anyone see anything wrong with this formula?
Yes, I probably could have used ranges, I know. At any rate, I can't seem to
figure out why this doesn't work, and considering the fact that the formula's
more painfully-long than it is complex, I'm pretty sure I'm just missing
something obvious. All the character ref lengths are accurate, and I didn't
see anything off with the parentheticals, so I'm sort of befuddled as to
what's causing the formula to fail.
=if(right(p2,2)=â€yrâ€, if(or(left(p2,7)=â€ASP1 yrâ€, left(p2,7)=â€ASP 1yrâ€,
left(p2,8)=â€ASP 1 yrâ€), “A1â€, if(or(left(p2,9)=â€Basic1 yrâ€, left(p2,9)=â€Basic
1yrâ€, left(p2,10)=â€Basic 1 yrâ€), “CC1â€, if(or(left(p2,11)=â€Premium1 yrâ€,
left(p2,11)=â€Premium 1yrâ€, left(p2,12)=â€Premium 1 yrâ€), “CC+1â€,
if(or(left(p2,7)=â€ASP3 yrâ€, left(p2,7)=â€ASP3 yrâ€, left(p2,8)=â€ASP 3 yrâ€),
“A3â€, if(or(left(p2,9)=â€Basic 3yrâ€, left(p2,9)=â€Basic3 yrâ€,
left(p2,10)=â€Basic 3 yrâ€), “CC3â€, if(or(left(p2,11)=â€Premium 3yrâ€,
left(p2,11)=â€Premium3 yrâ€, left(p2,12)=â€Premium 3 yrâ€), “CC+3â€,
if(or(left(p2,7)=â€ASP5 yrâ€, left(p2,7)=â€ASP 5yrâ€, left(p2,8)=â€ASP 5 yrâ€),
“A5â€, if(or(left(p2,9)=â€Basic 5yrâ€, left(p2,9)=â€Basic5 yrâ€,
left(p2,10)=â€Basic 5 yrâ€), “CC5â€, if(or(left(p2,11)=â€Premium5 yrâ€,
left(p2,11)=â€Premium 5yrâ€, left(p2,12)=â€Premium 5 yrâ€), “CC+5â€))))))))), "")
If anyone figures this out and is in the northeast, I'd be more than happy
to buy you a drink. Or several. (I may entertain the notion of giving you
my firstborn child, too.)
Thanks,
Jamie
even a few death threats, can anyone see anything wrong with this formula?
Yes, I probably could have used ranges, I know. At any rate, I can't seem to
figure out why this doesn't work, and considering the fact that the formula's
more painfully-long than it is complex, I'm pretty sure I'm just missing
something obvious. All the character ref lengths are accurate, and I didn't
see anything off with the parentheticals, so I'm sort of befuddled as to
what's causing the formula to fail.
=if(right(p2,2)=â€yrâ€, if(or(left(p2,7)=â€ASP1 yrâ€, left(p2,7)=â€ASP 1yrâ€,
left(p2,8)=â€ASP 1 yrâ€), “A1â€, if(or(left(p2,9)=â€Basic1 yrâ€, left(p2,9)=â€Basic
1yrâ€, left(p2,10)=â€Basic 1 yrâ€), “CC1â€, if(or(left(p2,11)=â€Premium1 yrâ€,
left(p2,11)=â€Premium 1yrâ€, left(p2,12)=â€Premium 1 yrâ€), “CC+1â€,
if(or(left(p2,7)=â€ASP3 yrâ€, left(p2,7)=â€ASP3 yrâ€, left(p2,8)=â€ASP 3 yrâ€),
“A3â€, if(or(left(p2,9)=â€Basic 3yrâ€, left(p2,9)=â€Basic3 yrâ€,
left(p2,10)=â€Basic 3 yrâ€), “CC3â€, if(or(left(p2,11)=â€Premium 3yrâ€,
left(p2,11)=â€Premium3 yrâ€, left(p2,12)=â€Premium 3 yrâ€), “CC+3â€,
if(or(left(p2,7)=â€ASP5 yrâ€, left(p2,7)=â€ASP 5yrâ€, left(p2,8)=â€ASP 5 yrâ€),
“A5â€, if(or(left(p2,9)=â€Basic 5yrâ€, left(p2,9)=â€Basic5 yrâ€,
left(p2,10)=â€Basic 5 yrâ€), “CC5â€, if(or(left(p2,11)=â€Premium5 yrâ€,
left(p2,11)=â€Premium 5yrâ€, left(p2,12)=â€Premium 5 yrâ€), “CC+5â€))))))))), "")
If anyone figures this out and is in the northeast, I'd be more than happy
to buy you a drink. Or several. (I may entertain the notion of giving you
my firstborn child, too.)
Thanks,
Jamie