ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF formula in spreadsheet (https://www.excelbanter.com/excel-discussion-misc-queries/133261-if-formula-spreadsheet.html)

Dennis1188

IF formula in spreadsheet
 
C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.


Gary''s Student

IF formula in spreadsheet
 
=IF(OR(A1="",A2=""),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.


Paul B

IF formula in spreadsheet
 
Dennis, this should do it, =IF(OR(ISBLANK(A1),ISBLANK(A2)),"",A1+A2)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.




Dennis1188

IF formula in spreadsheet
 
PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if we
put in the number 0


"Gary''s Student" wrote:

=IF(OR(A1="",A2=""),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.


Dennis1188

IF formula in spreadsheet
 
PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if we
put in the number 0



"Paul B" wrote:

Dennis, this should do it, =IF(OR(ISBLANK(A1),ISBLANK(A2)),"",A1+A2)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.





Paul B

IF formula in spreadsheet
 
Dennis, If I understand you right, try this

=IF(OR(A1="",A2=""),"",IF(OR(A1<=0,A2<=0),"",A1+A2 ))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if

we
put in the number 0



"Paul B" wrote:

Dennis, this should do it, =IF(OR(ISBLANK(A1),ISBLANK(A2)),"",A1+A2)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH

cells.







Dennis1188

IF formula in spreadsheet
 
THANK YOU!!!!!!!

"Paul B" wrote:

Dennis, If I understand you right, try this

=IF(OR(A1="",A2=""),"",IF(OR(A1<=0,A2<=0),"",A1+A2 ))

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if

we
put in the number 0



"Paul B" wrote:

Dennis, this should do it, =IF(OR(ISBLANK(A1),ISBLANK(A2)),"",A1+A2)

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Dennis1188" wrote in message
...
C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH

cells.








Gary''s Student

IF formula in spreadsheet
 
=IF(OR(A1=0,A2=0),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if we
put in the number 0


"Gary''s Student" wrote:

=IF(OR(A1="",A2=""),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.


Dennis1188

IF formula in spreadsheet
 
THANK YOU!!!

"Gary''s Student" wrote:

=IF(OR(A1=0,A2=0),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

PERFECT!!!
Now let's try one other thing... I would like it to do the same thing if we
put in the number 0


"Gary''s Student" wrote:

=IF(OR(A1="",A2=""),"",A1+A2)

--
Gary''s Student
gsnu200709


"Dennis1188" wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.


Bob I

IF formula in spreadsheet
 
If(A1*A2,A1+A2,"")

Dennis1188 wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.



David Biddulph[_2_]

IF formula in spreadsheet
 
Just one note of caution. If you've got a zero for one or both numbers,
that formula would return a blank, not zero.
--
David Biddulph

"Bob I" wrote in message
...
If(A1*A2,A1+A2,"")


Dennis1188 wrote:

C1 is the sum of A1 and A2
How can I get C1 to remain empty unless there is a number in BOTH cells.




Bob I

IF formula in spreadsheet
 
The final request was "blanks or zero"= nothing

David Biddulph wrote:

Just one note of caution. If you've got a zero for one or both numbers,
that formula would return a blank, not zero.




All times are GMT +1. The time now is 04:40 PM.

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