ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   trying to add to a if statement (https://www.excelbanter.com/excel-worksheet-functions/213601-trying-add-if-statement.html)

David

trying to add to a if statement
 
I have this statement in B3;

=IF(OR(January!B3 = 0,January!B3 =""),0, January!B3-January!E3)

I need to add;

if C3 0 then B3 = C3

can this be done along with the first "if"

Thanks in advance...David D

David Biddulph[_2_]

trying to add to a if statement
 
=IF(C30,C3,IF(OR(January!B3 = 0,January!B3 =""),0, January!B3-January!E3))
--
David Biddulph

"David" wrote in message
...
I have this statement in B3;

=IF(OR(January!B3 = 0,January!B3 =""),0, January!B3-January!E3)

I need to add;

if C3 0 then B3 = C3

can this be done along with the first "if"

Thanks in advance...David D




Bob Phillips[_3_]

trying to add to a if statement
 
=IF(January!C30,January!C3,IF(OR(January!B3 = 0,January!B3 =""),0,
January!B3-January!E3))


--
__________________________________
HTH

Bob

"David" wrote in message
...
I have this statement in B3;

=IF(OR(January!B3 = 0,January!B3 =""),0, January!B3-January!E3)

I need to add;

if C3 0 then B3 = C3

can this be done along with the first "if"

Thanks in advance...David D




ob-server

trying to add to a if statement
 
if
I need to add;

if C3 0 then B3 = C3

can this be done along with the first "if"


maybe

=IF(and(January!B3 = 0,January!C3 =0),0,(January!C3
=0)*(January!B3<0)*(January!B3-January!E3)+(January!B3
=0)*(January!C30)*(January!C3-January!E3))

"David" wrote:

I have this statement in B3;

=IF(OR(January!B3 = 0,January!B3 =""),0, January!B3-January!E3)

I need to add;

if C3 0 then B3 = C3

can this be done along with the first "if"

Thanks in advance...David D



All times are GMT +1. The time now is 02:35 PM.

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