Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default Add up Plus & Minus Figures separately by Location

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


  #2   Report Post  
cmart02
 
Posts: n/a
Default

John,

You can try this:

=SUMPRODUCT(--(varianceRange<0)*(locationRange=LocationCodeOrNam e),varianceRange)

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

Regards,
Robert
  #3   Report Post  
John
 
Posts: n/a
Default

Excellent Robert, exactly what I needed

Thanks


"cmart02" wrote in message
...
John,

You can try this:


=SUMPRODUCT(--(varianceRange<0)*(locationRange=LocationCodeOrNam e),varianceR
ange)

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

Regards,
Robert



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change location of figures within a column 1911dan Excel Worksheet Functions 1 January 6th 05 05:03 PM
Add a default location for print to file in Excel. valders Excel Discussion (Misc queries) 0 December 31st 04 12:19 AM
minus formel/fortegn Bella Excel Discussion (Misc queries) 1 December 15th 04 09:37 PM


All times are GMT +1. The time now is 10:56 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"