If statements

T

Tiffany

I need a formula in Excel 2007 that says

=IF($A29=1),$B$2-$B$14*(C$16-$C$16)
or
(IF($A29=2),$B$2-$B$14*(E$16-$E$16)
Else
0

Kindly help

Thank you.
 
P

Per Jessen

HI

=IF($A29=1,$B$2-$B$14*(C$16-$C$16),IF($A29=2,$B$2-$B$14*(E$16-$E$16),0))

Regards,
Per
 
J

Jacob Skaria

This part of the formula always returns 0
(C$16-$C$16)

So
$B$14 * (C$16-$C$16) will always returns 0

Edit the below formula and use

=IF(A29=1,truepartif1,IF(A29=2,truepartif2,0))
 

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