Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Sum If - 2 conditions

I want to sum a # field if the 2 conditions are met. 1 - the month =
February and 2, the $'s are sales


Data is like this

D F G
Month Measure(Sales) Data I want to add

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Sum If - 2 conditions

penguin77 wrote:
I want to sum a # field if the 2 conditions are met. 1 - the month =
February and 2, the $'s are sales


Data is like this

D F G
Month Measure(Sales) Data I want to add



http://www.contextures.com/xlFunctio...tml#SumProduct
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Sum If - 2 conditions

In Excel 2007 you could use SUMIFS() but SUMPRODUCT() works for 2007 and
earlier versions:
=SUMPRODUCT(--($D$2:$D$100="February"), --($F$2:$F$100=500),($G$2:$G100))
it would be more flexible if you had a cell to enter the month and sales
amount into, then you could write it something like:
=SUMPRODUCT(--($D$2:$D$100=X1), --($F$2:$F$100=X2),($G$2:$G100))
where X1 had "February" or another month in it, and
X2 had the sales amount you're interested in it.

You can also change the = test for the column F tests to = or <= or even
expand the formula to 'filter' by sales ranges as:
=SUMPRODUCT(--($D$2:$D$100="February"), --($F$2:$F$100=500),
--($F$2:$F$100<=1000),($G$2:$G100))
which would sum data for all Feb sales from $500 through $1000.

Hope this helps at least a little.

"penguin77" wrote:

I want to sum a # field if the 2 conditions are met. 1 - the month =
February and 2, the $'s are sales


Data is like this

D F G
Month Measure(Sales) Data I want to add

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
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
2 Conditions + Sum of a colum matching those conditions Jeffa Excel Worksheet Functions 5 June 8th 07 12:14 AM
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
Sum with two conditions BannerBrat Excel Discussion (Misc queries) 2 August 11th 05 09:54 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


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