If and Or statement

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having trouble creating an If and Or statement:
My spreadsheet looks like this:
A1 100
A2 200
A3 300
A4 600

A4 is just a sum of the 3 cells above it. I want to say if any of the cells
above the total line is negative then dont add that particular cell. I can do
it if one cell is negative but what about 2?
 
=SUM(IF(A1:A4>0,A1:A4)

which is an array formula, so commit with Ctrl-Shift-Enter.
 
I am having trouble creating an If and Or statement:
My spreadsheet looks like this:
A1 100
A2 200
A3 300
A4 600

A4 is just a sum of the 3 cells above it. I want to say if any of the cells
above the total line is negative then dont add that particular cell. I can do
it if one cell is negative but what about 2?

=SUMIF(A1:A3,">0")




--ron
 
How about plain, old:

=SUMIF(A1:A4,">0")

???
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


=SUM(IF(A1:A4>0,A1:A4)

which is an array formula, so commit with Ctrl-Shift-Enter.
 
Oh don't be so boring :-)

--
HTH

Bob Phillips

RagDyeR said:
How about plain, old:

=SUMIF(A1:A4,">0")

???
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


=SUM(IF(A1:A4>0,A1:A4)

which is an array formula, so commit with Ctrl-Shift-Enter.

--
HTH

Bob Phillips

can
 

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

Similar Threads


Back
Top