#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T T is offline
external usenet poster
 
Posts: 41
Default Sumproduct/SumIf

Would appreciate help with the following: Sum column B where name in A:A =
A1 and B:B < 10.

Result for John should be 9. Once formula points to Mark, his total should
be 14. Tried SumProduct, but I'm only getting the count of rows that meet
criteria, not the sum.


A B
John 10
John 09
Mark 3
Mark 4
Mark 7

Many thanks!
--
T
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct/SumIf

Try this:

=SUMPRODUCT(--(A1:A10=A1),--(B1:B10<10),B1:B10)

Note that with SUMPRODUCT you *can't* use entire columns as range references
unless you're using Excel 2007.

--
Biff
Microsoft Excel MVP


"T" wrote in message
...
Would appreciate help with the following: Sum column B where name in A:A
=
A1 and B:B < 10.

Result for John should be 9. Once formula points to Mark, his total
should
be 14. Tried SumProduct, but I'm only getting the count of rows that meet
criteria, not the sum.


A B
John 10
John 09
Mark 3
Mark 4
Mark 7

Many thanks!
--
T



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Sumproduct/SumIf

Does this help,

=SUMPRODUCT(--(A1:A10=A1),--(B1:B10<10),B1:B10)

Regards,
Paul

--

"T" wrote in message
...
Would appreciate help with the following: Sum column B where name in A:A
=
A1 and B:B < 10.

Result for John should be 9. Once formula points to Mark, his total
should
be 14. Tried SumProduct, but I'm only getting the count of rows that meet
criteria, not the sum.


A B
John 10
John 09
Mark 3
Mark 4
Mark 7

Many thanks!
--
T



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default Sumproduct/SumIf

=SUMPRODUCT(--(A2:A10=A1),--(B2:B10<10),(B2:B10))

Remember, unless you have xl2007, you should refrain from referencing whole
columns.

Hope this helps.
--
John C


"T" wrote:

Would appreciate help with the following: Sum column B where name in A:A =
A1 and B:B < 10.

Result for John should be 9. Once formula points to Mark, his total should
be 14. Tried SumProduct, but I'm only getting the count of rows that meet
criteria, not the sum.


A B
John 10
John 09
Mark 3
Mark 4
Mark 7

Many thanks!
--
T



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 and sumif Boris75 Excel Worksheet Functions 6 August 13th 08 04:24 PM
SUMIF OR SUMPRODUCT?? MDI Anne Excel Worksheet Functions 3 June 5th 08 09:59 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
SumIf or SumProduct [email protected] Excel Worksheet Functions 8 February 13th 07 06:40 PM
SUMPRODUCT or SUMIF Serge Excel Discussion (Misc queries) 17 April 10th 06 11:50 PM


All times are GMT +1. The time now is 03:10 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"