Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default sumproduct? sumif(sumproduct)?

Hi Group,

I am tring to come up with a formula. I have two columns of numbers ie. the
"change" column is only for reference and illistration.
ColA ColB Change
70.21 72.2 1.99
30.35 30.0 -.35
20 21 1
19 18 -1

The actual is a much longer list. I am trying to find the sum of two
differances, for only the positive changes and only the negative changes. The
"change" column does not really exist nor do I want to add it to the sheet,
but I am looking for a formula that will these differences. I have tried
several with out success.

Any ideas?
--
David
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default sumproduct? sumif(sumproduct)?

David,

=SUMPRODUCT((B1:B100A1:A100)*(B1:B100-A1:A100))
=SUMPRODUCT((B1:B100<A1:A100)*(B1:B100-A1:A100))

HTH,
Bernie
MS Excel MVP


"David" wrote in message
...
Hi Group,

I am tring to come up with a formula. I have two columns of numbers ie. the
"change" column is only for reference and illistration.
ColA ColB Change
70.21 72.2 1.99
30.35 30.0 -.35
20 21 1
19 18 -1

The actual is a much longer list. I am trying to find the sum of two
differances, for only the positive changes and only the negative changes. The
"change" column does not really exist nor do I want to add it to the sheet,
but I am looking for a formula that will these differences. I have tried
several with out success.

Any ideas?
--
David



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sumproduct? sumif(sumproduct)?

I think this is what you're after:

For the total positive change:

=SUMPRODUCT(--(B1:B4A1:A4),B1:B4-A1:A4)

Based on your sample returns 2.99

For the total negative change:

=SUMPRODUCT(--(B1:B4<A1:A4),B1:B4-A1:A4)

Based on your sample returns -1.35

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Hi Group,

I am tring to come up with a formula. I have two columns of numbers ie.
the
"change" column is only for reference and illistration.
ColA ColB Change
70.21 72.2 1.99
30.35 30.0 -.35
20 21 1
19 18 -1

The actual is a much longer list. I am trying to find the sum of two
differances, for only the positive changes and only the negative changes.
The
"change" column does not really exist nor do I want to add it to the
sheet,
but I am looking for a formula that will these differences. I have tried
several with out success.

Any ideas?
--
David



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default sumproduct? sumif(sumproduct)?

Thank you Bernie. This did exactly what I was looking for.
--
David


"Bernie Deitrick" wrote:

David,

=SUMPRODUCT((B1:B100A1:A100)*(B1:B100-A1:A100))
=SUMPRODUCT((B1:B100<A1:A100)*(B1:B100-A1:A100))

HTH,
Bernie
MS Excel MVP


"David" wrote in message
...
Hi Group,

I am tring to come up with a formula. I have two columns of numbers ie. the
"change" column is only for reference and illistration.
ColA ColB Change
70.21 72.2 1.99
30.35 30.0 -.35
20 21 1
19 18 -1

The actual is a much longer list. I am trying to find the sum of two
differances, for only the positive changes and only the negative changes. The
"change" column does not really exist nor do I want to add it to the sheet,
but I am looking for a formula that will these differences. I have tried
several with out success.

Any ideas?
--
David




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
HELP !!! SUMIF or SUMPRODUCT Soultek Excel Discussion (Misc queries) 3 March 21st 07 04:30 PM
HELP Sumif or Sumproduct Cathy Excel Discussion (Misc queries) 1 March 15th 07 04:03 PM
sumif or sumproduct? ronnomad Excel Worksheet Functions 5 August 7th 06 11:13 PM
Sumif or Sumproduct? Maybe neither? Steve Excel Worksheet Functions 1 February 4th 06 09:00 PM
SUMIF or SUMPRODUCT or something else? || cypher || Excel Worksheet Functions 7 November 9th 04 11:45 PM


All times are GMT +1. The time now is 06:52 AM.

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

About Us

"It's about Microsoft Excel"