#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Sum Product maybe??

I have the following spread sheet that I need to calculate the value of if "Y"

A B C D
Sold Product Value Date
Y Hardware $20.00 Jan-09
Y Software $50.00 Feb-09
N Hardware $50.00 Jan-09

Ok, so I want to know the "value" of the Hardware items sold "Y" in Jan-09.

Do I use SUMPRODUCT

Hope some one can help please.

Regards

Mark
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Sum Product maybe??

Try this:

=SUMPRODUCT((A2:A100="Y")*(TEXT(D2:D100,"mmm-yy")="Jan-09"),C2:C100)

Adjust the ranges to suit, but you can't use full-column references
before XL2007.

Hope this helps.

Pete

On Nov 28, 3:43*pm, Mark Allen
wrote:
I have the following spread sheet that I need to calculate the value of if "Y"

A * * * B * * * * * * *C * * * * *D
Sold *Product * * *Value * *Date
Y * * * Hardware *$20.00 * Jan-09
Y * * * Software * $50.00 * Feb-09
N * * * Hardware *$50.00 * Jan-09

Ok, so I want to know the "value" of the Hardware items sold "Y" in Jan-09.

Do I use SUMPRODUCT

Hope some one can help please.

Regards

Mark


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Sum Product maybe??

I'm guessing that the values in column D are really dates formatted as
mmm-yy--not plain old text.

=sumproduct(--(a1:a99="y"),
--(b1:b99="hardware"),
--(text(d1:d99,"yyyymm")="200901"),
(c1:c99))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.

Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html



Mark Allen wrote:

I have the following spread sheet that I need to calculate the value of if "Y"

A B C D
Sold Product Value Date
Y Hardware $20.00 Jan-09
Y Software $50.00 Feb-09
N Hardware $50.00 Jan-09

Ok, so I want to know the "value" of the Hardware items sold "Y" in Jan-09.

Do I use SUMPRODUCT

Hope some one can help please.

Regards

Mark


--

Dave Peterson
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
=PRODUCT billy-bob Excel Discussion (Misc queries) 6 August 4th 08 12:10 PM
What is sum product... Srikanth Excel Discussion (Misc queries) 8 November 28th 07 11:28 AM
Sum product Virginia Excel Discussion (Misc queries) 3 April 10th 07 10:13 PM
Sum product HJ Excel Worksheet Functions 6 February 16th 06 06:05 PM
Sum Product HJ Excel Worksheet Functions 4 October 27th 05 11:32 PM


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