Simple If, Then formula for excel

G

Guest

Hi all,

So I am fairly weak when it comes to Excel formulas, so I'm sure what I
require is really simple, I just have no idea how to formulate it.

Basically, I have a column of values, some of which are negative values and
some are positive, but they are changing from month to month (i.e. accruals
and prepayments). I need to add up all the negative values from the column in
a new cell, and all the positive values in another.

So it will be something like If amount>0 then add to cell, else add to other
cell.

So there you have it, really simple I just have no idea what to do. So if
anyone has time could they have a crack at it.

Thanks,
Mike
 
B

Bob Umlas

=SUMIF(A1:A100,"<0",A1:A100) will total the negative ones
=SUMIF(A1:A100,">0",A1:A100) will total the positive ones.
Adjust range A1:A100 as needed.
Bob Umlas
Excel MVP
 
B

Bob Phillips

=SUMIF(A1:A100,"<0")
=SUMIF(A1:A100,">0")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Guest

Thanks Bob,

You make it seem to simply, thanks!
Bob Umlas said:
=SUMIF(A1:A100,"<0",A1:A100) will total the negative ones
=SUMIF(A1:A100,">0",A1:A100) will total the positive ones.
Adjust range A1:A100 as needed.
Bob Umlas
Excel MVP
 
G

Guest

Hi Bob,

As with the other Bob, thanks for the help, make this stuff seem too easy.

Cheers
 

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