Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Sumproduct in Excel 2003

Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumproduct in Excel 2003

Same as excel 2007 except you need to refer the row numbers instead of A:A
refer as A1:A100 or the max range as A1:A65535 (which is one less than the
max number of rows)

If this post helps click Yes
---------------
Jacob Skaria


"lisay" wrote:

Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 42
Default Sumproduct in Excel 2003

=SUMPRODUCT(IF(A2:A4="Jim",B2:B4,0),(C2:C4))
this is an array formula, pl press CTRL+SHIFT+ENTER simulatneously.

Vijay

"lisay" wrote:

Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Sumproduct in Excel 2003

"lisay" wrote:
If I'm looking for the sumproduct of col B and C, if col A = Jim.
I don't know how to do this in Excel 2003. I can do this in Excel 2007.


How did you do this using Excel 2007?

In both Excel 2003 and 2007, you could write:

=sumproduct(--(A2:A100="Jim"),B2:100,C2:100)

Note: That is a normal formula, not an array formula. Commit with Enter as
usual, not ctrl+shift+Enter.


----- original message -----

"lisay" wrote in message
...
Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Sumproduct in Excel 2003

=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))

A26 contains Jim

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"lisay" wrote in message
...
Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Sumproduct in Excel 2003

"Ashish Mathur" wrote:
=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))
A26 contains Jim


Caveat emptor.... One of the problems with this form is that it results in
a #VALUE error if any of B22:B24 or C22:C24 is text, notably the null string
(""), whereas SUMPRODUCT(--(A22:A24=A6),B22:B24,C22:C24) does not.

Obviously not a problem in the OP's example. But presumably that's stripped
down.

However, I do like using multiplication to collapse conditional terms. For
example, SUMPRODUCT((A22:A24="this")*(X22:X24="that"),B22:B 24,C22:C24)
instead of SUMPRODUCT(--(A22:A24="this"),--(X22:X24="that"),...).


----- original message -----

"Ashish Mathur" wrote in message
...
=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))

A26 contains Jim

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"lisay" wrote in message
...
Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I
don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Sumproduct in Excel 2003

Hello all,

I am sorry I did not reply... I did not get a notification of your replies.
Anyhow, I will try all your suggestions to let you know how things work.

Thank you!

"JoeU2004" wrote:

"Ashish Mathur" wrote:
=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))
A26 contains Jim


Caveat emptor.... One of the problems with this form is that it results in
a #VALUE error if any of B22:B24 or C22:C24 is text, notably the null string
(""), whereas SUMPRODUCT(--(A22:A24=A6),B22:B24,C22:C24) does not.

Obviously not a problem in the OP's example. But presumably that's stripped
down.

However, I do like using multiplication to collapse conditional terms. For
example, SUMPRODUCT((A22:A24="this")*(X22:X24="that"),B22:B 24,C22:C24)
instead of SUMPRODUCT(--(A22:A24="this"),--(X22:X24="that"),...).


----- original message -----

"Ashish Mathur" wrote in message
...
=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))

A26 contains Jim

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"lisay" wrote in message
...
Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I
don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Sumproduct in Excel 2003

Thank you, all. Based on your suggestions, I got it to work.

"Ashish Mathur" wrote:

=SUMPRODUCT((A22:A24=A26)*(B22:B24)*(C22:C24))

A26 contains Jim

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"lisay" wrote in message
...
Help please!

I have the following data:


A B C
Jim 10 50%
Jack 10 100%
Jim 5 100%

If I'm looking for the sumproduct of col B and C, if col A = Jim. I don't
know how to do this in Excel 2003. I can do this in Excel 2007.

Any help would be much appreciated.

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
SUMPRODUCT FORMULA EXCEL 2003 JEV Excel Worksheet Functions 5 January 26th 09 09:37 PM
Countifs to Sumproduct for 2003 - was Simple Countifs.. from Fr Steve Excel Worksheet Functions 2 January 4th 09 05:36 PM
Excel 2003 Multi Worksheet Sumproduct? wild turkey no9 Excel Worksheet Functions 4 May 17th 08 06:10 PM
Multi Worksheet Sumproduct Excel 2003 wild turkey no9 Excel Discussion (Misc queries) 4 May 17th 08 03:51 PM
XL 2003 & Sumproduct Question Kevin H. Stecyk Excel Discussion (Misc queries) 4 May 25th 06 01:59 AM


All times are GMT +1. The time now is 12:17 AM.

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"