SUMPRODUCT formula to differentiate between Negative and Positive

C

carol

Hi,

I have a formula as follows:

=SUMPRODUCT((E6:E56="uk")*G6:G56)

But i'd like to separate it into two cells, one picking up negative figures
in the G column, and the other picking up the positive figures.

Any ideas??

Much Appreciated.
 
P

Peo Sjoblom

=SUMPRODUCT(--(E6:E56="uk"),--(G6:G56>=0),G6:G56)

Change >=0 to <0 for negative numbers


--


Regards,


Peo Sjoblom
 
C

carol

Thanks so much, that worked!


Peo Sjoblom said:
=SUMPRODUCT(--(E6:E56="uk"),--(G6:G56>=0),G6:G56)

Change >=0 to <0 for negative numbers


--


Regards,


Peo Sjoblom
 

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