Add up Plus & Minus Figures separately by Location

J

John

I have 3 columns of Data, Location, Date and Stock Variances. I wish to Add
up The total PLUS Stock Variances per Location in one cell and the MINUS
Stock Variances per Location in another cell.

My data is variable in length, thus I will assign Range Names to the 3
columns. I am not sure how I can add up and distinguish both Location and
whether the Stock variance is either Positive or negative.


Thanks
 
C

cmart02

John,

You can try this:

=SUMPRODUCT(--(varianceRange<0)*(locationRange=LocationCodeOrName),varianceRange)

Will add all variance smaller than zero for a given location.

Regards,
Robert
 

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