Multiple Variable Formula Help

B

Beth Ann

Hi, I need help creating a formula that will give a different result based on
multiple variables... The formula I created below is not correct, but will
give you an idea of what I'm trying to accomplish...

=IF((B2=2007,"Ordered in Current Year"),ORIF((B2<>2007)AND(C2=2007),"Paid
Current Year from Prior Year Order),ORIF(B2<>2007)AND(C2="
"),"StillOpenFromAPriorMonth"))

Inv.No. Inv.YR. Paid Year Status
1224 2006 2007 Closed
1225 2006 Open
1226 2007 2007 Closed
1227 2007 Pending

Thank you!
 
P

pdberger

Beth Ann -- You're not too far. I haven't tested this, but:

=IF(B2=2007,"Ordered in Current Year",IF(AND(B2<2007,C2=2007),"Paid Current
Year from Prior Year's Order","Still Open From a Prior Month"))

Something pretty close to that should work.

HTH.
 
B

Beth Ann

That did it, THANK YOU!!! ~~Beth Ann

pdberger said:
Beth Ann -- You're not too far. I haven't tested this, but:

=IF(B2=2007,"Ordered in Current Year",IF(AND(B2<2007,C2=2007),"Paid Current
Year from Prior Year's Order","Still Open From a Prior Month"))

Something pretty close to that should work.

HTH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top