IF Statements - Novice

J

Joe

Hi i have a problem with this simple IF statement,

what i want is to calculate one amount (90) for 0-3hrs then multiply by (30)

So the charge for 1,2 or 3 hours will be £90 but then 4 hours £120, 5 hours
£150 etc.

What I have so far is:

=if(N95<=3,90,N95*30) This works fine except if the total in N95 is 0 it is
still showing a charge of £90 which should be £0.00.

Any help on this would be great as i haven't used IF statements in ages.
 
J

Jarek Kujawa

=IF(N95=0,0,IF(N95<=3,90,N95*30))

or even better

=IF(N95=0,0,IF(AND(N95<=3,90,N95>0),90,N95*30))
 
M

Marcelo

=if(N95=0,0,IF(N95<=3,90,N95*30))

--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Joe" escreveu:
 
S

Stefi

Another approach:
=IF(AND(N95>0,N95<=3),90,N95*30)

Regards,
Stefi

„Joe†ezt írta:
 

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