# And/if formula not working - faulty logic on my part suspected!

I've got a nice juicy formula here. So what I want to happen is this..if the entry in the entry in the Deferred % column is ANYTHING but 100% or 0% and the revenue date 2 is no, I should get a calculation. If the Deferred% is 100% or 0%, or the REvenue date 2 is no, I should get 0. At the moment I am testing this on a deferred % with 100% and I am getting a number. I'm now not seeing it clearly but I'm guessing I am screwed up in the And logic bit of the formula. Thanks. !

.=IFERROR(IF(AND([@[Deferred %]]<100%,[@[Deferred %]]=0%,[@[Revenue Date2]]="no"),0,IF(AND([@[S&M  Contract Start date]]=[@[Revenue Date]],),"([@Amount]*(1-[@[Deferred %]])+[@Amount]/[@[Revenue Days]]",[@Amount]/[@[Revenue Days]])),0%)
LVL 1
###### Who is Participating?

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Finance AnalystCommented:
I think you need an OR statement in there as well...

AND(OR(Deferred=100%,Deferred=0%),RevDate="No")
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Author Commented:
OK, how's this...
=IFERROR(IF(AND(OR([@[Deferred %]]=100%,[@[Deferred %]]=0%),[@[Revenue Date2]]="no"),0,IF(AND([@[S&M  Contract Start date]]=[@[Revenue Date]],),"([@Amount]*(1-[@[Deferred %]])+[@Amount]/[@[Revenue Days]]",[@Amount]/[@[Revenue Days]])),0%).
Still getting an actual amount there grrrr
0
Finance AnalystCommented:
Check the two values that are checked to ensure that they are:

Rate - Exactly 100% or 0%
Date2 - no  (case shouldn't be an issue)
0
Author Commented:
@Rob Henson - will do that..thanks a mil. Ah, it's always the simple things isnt' it? :_)
0
Author Commented:
the 100% was fine - the file kept crashing and not updating the values...but that was the solution. Thanks as always.
0
Author Commented:
As always when you are down a rabbit hole, come to Experts Exchange - and Rob Henson in particular :-) to sort the problem.
0
Finance AnalystCommented:
Thank you for the great feedback.
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.