IF Formula Error

G

Guest

I seem to be incurring an error when trying to create an IF formula.

The formula is as follows:
=IF(D1=0,E1,D1>0.01,B30*D1)

Basically, the argument is that if I produce my quote in a foreign currency,
the cell where the price appears looks to reference D1 to see if there is a
foreign currency. If it says 0, there's not - if it is a value greater than
0.01 there is, then it has to take the cell where the price is, in this case
B30 and multiply it by the value in D1

What am I doing wrong??
 
D

Dave Peterson

Maybe...

=IF(D1=0,E1,B30*D1)


I seem to be incurring an error when trying to create an IF formula.

The formula is as follows:
=IF(D1=0,E1,D1>0.01,B30*D1)

Basically, the argument is that if I produce my quote in a foreign currency,
the cell where the price appears looks to reference D1 to see if there is a
foreign currency. If it says 0, there's not - if it is a value greater than
0.01 there is, then it has to take the cell where the price is, in this case
B30 and multiply it by the value in D1

What am I doing wrong??
 
G

Guest

Hi Michael,
I copied that in and although it doesn't come up with the forumla error,
when there is a value in cell D1 that's above 0.01, it's not carrying out the
B30*D1.
Any suggestions? Maybe it needs a different forumla to IF?
Cheers,
Ben
 
J

JE McGimpsey

Your formula is written so that if D1>0.01, the result is E1, not B30*D1.

Do you want:

=IF(D1>0.01,B30*D1,E1)

???
 
J

joeu2004

I seem to be incurring an error when trying to create an IF formula.
The formula is as follows:
=IF(D1=0,E1,D1>0.01,B30*D1)

Perhaps this is what you were trying to write:

=if(or(D1=0,D1<=0.01), E1, B30*D1)

But note that that can be simplied to just:

=if(D1<=0.01, E1, B30*D1)
 
G

Guest

It still wont multiply the value in B30 by the value in D1 when there is a
value in D1!
 
G

Guest

Ben
All of the attached formulae work in their respective ways.
Maybe you could post a sample of what you actually want and let us re-assess
Also, check to formatting of your cells to make sure they are all formatted
as numbers.


HTH
Michael M
 

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