Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Sum Totals/Different Conditions

Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Sum Totals/Different Conditions

On Mon, 13 Apr 2009 09:12:04 -0700, KS
wrote:

Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help



Try these formulas:

=SUMPRODUCT((A1:A100="Y")*(B1:B100="Y")*(N1:N100))

and

=SUMPRODUCT((A1:A100="Y")*(B1:B100="N")*(N1:N100))

Change the 100's to fit the size of your data in columns A and B

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Sum Totals/Different Conditions

1)M1 =SUMIFS(N:N,A:A,"Y",B:B,"Y")
2)M2 = =SUMIFS(N:N,A:A,"Y",B:B,"N")

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


"KS" wrote:

Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help

  #4   Report Post  
Posted to microsoft.public.excel.misc
KS KS is offline
external usenet poster
 
Posts: 33
Default Sum Totals/Different Conditions

..... works like a charm... ; )

Many Thanks!

"Jacob Skaria" wrote:

1)M1 =SUMIFS(N:N,A:A,"Y",B:B,"Y")
2)M2 = =SUMIFS(N:N,A:A,"Y",B:B,"N")

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


"KS" wrote:

Need help with the following:

Column N contains numeric values (page counts) - I need to add the sum of N
under 2 conditions. N will always contain a numeric value

1) Total of N for all records where A= Y and B= Y
2) Total of N for all records where A= Y and B= N
3) if either of the above conditions are not met, the value in N is not
included

These 2 totals will reside in two diff cells - doesn't matter where, say M1
and M2 respectively.

Thanks in advance for the help

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
Pivot Totals: Group totals different from Grand totals PsyberFox Excel Discussion (Misc queries) 1 February 13th 08 06:16 PM
Grand Totals with Nested Sub Totals Brenda from Michigan Excel Discussion (Misc queries) 7 January 18th 08 01:26 PM
how to enter totals and sub totals from receipts into excel. mjd23 New Users to Excel 2 January 11th 08 01:54 AM
Summing Weekly Totals into Monthly Totals steph44haf Excel Worksheet Functions 3 July 5th 06 04:51 PM
Comparing/matching totals in a column to totals in a row Nicole L. Excel Worksheet Functions 3 January 27th 05 10:42 PM


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