ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If statements (https://www.excelbanter.com/excel-worksheet-functions/254396-if-statements.html)

Tiffany

If statements
 
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.

Per Jessen

If statements
 
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

"Tiffany" skrev i meddelelsen
...
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.



Jacob Skaria

If statements
 
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))

--
Jacob


"Tiffany" wrote:

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.



All times are GMT +1. The time now is 07:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com