A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Summing differences with multpile criteria



 
 
Thread Tools Display Modes
  #1  
Old August 5th, 2008, 05:06 PM posted to microsoft.public.excel.worksheet.functions
TT
external usenet poster
 
Posts: 73
Default Summing differences with multpile criteria


I want to sum the difference between each row in 2 columns of data for each
case where row(i) in column A 0 and row(i) in column B is less than column A


  #2  
Old August 5th, 2008, 05:53 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Summing differences with multpile criteria

So which column should be subtracted from which column?

A-B or B-A

Try one of these:

A-B:

=SUMPRODUCT(--(A1:A100),--(B1:B10A1:A10),A1:A10-B1:B10)

B-A:

=SUMPRODUCT(--(A1:A100),--(B1:B10A1:A10),B1:B10-A1:A10)


--
Biff
Microsoft Excel MVP


"TT" wrote in message
...

I want to sum the difference between each row in 2 columns of data for
each
case where row(i) in column A 0 and row(i) in column B is less than
column A




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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