#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Sum

I have take so much time for conditional sum and try different conditions but
in vain.
Please tell me the solution.
e.g:
Distributor Name Article NO. Sale
ABC Agency 701 15
ABC Agency 709 20
ABC Agency 1501 55
XYZ Traders 701 35

I want to sum the sales numbers by Article wise 701 & 1501 in same cell for
same distributor.
Please help me to solve this likly to cronic situation.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 644
Default Conditional Sum

Check out Mr. Excel's site on array formula's

http://www.mrexcel.com/td0128.html

HTH

Die_Another_Day

Tarique wrote:
I have take so much time for conditional sum and try different conditions but
in vain.
Please tell me the solution.
e.g:
Distributor Name Article NO. Sale
ABC Agency 701 15
ABC Agency 709 20
ABC Agency 1501 55
XYZ Traders 701 35

I want to sum the sales numbers by Article wise 701 & 1501 in same cell for
same distributor.
Please help me to solve this likly to cronic situation.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default Conditional Sum


Entered as an array formula with Ctrl+Shift+enter

=SUM(IF(((B2:B5=701)+(B2:B5=1501))*(A2:A5="ABC Agency"),C2:C5))

OR

=SUMPRODUCT(--(A2:A5="ABC
Agency"),--(B2:B5=701),(C2:C5))+SUMPRODUCT(--(A2:A5="ABC
Agency"),--(B2:B5=1501),(C2:C5))

You can substiute the constants with cells containing your values

HTH

"Die_Another_Day" wrote:

Check out Mr. Excel's site on array formula's

http://www.mrexcel.com/td0128.html

HTH

Die_Another_Day

Tarique wrote:
I have take so much time for conditional sum and try different conditions but
in vain.
Please tell me the solution.
e.g:
Distributor Name Article NO. Sale
ABC Agency 701 15
ABC Agency 709 20
ABC Agency 1501 55
XYZ Traders 701 35

I want to sum the sales numbers by Article wise 701 & 1501 in same cell for
same distributor.
Please help me to solve this likly to cronic situation.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 252
Default Conditional Sum

This formula should work.

=SUMPRODUCT((B2:B5=701)+(B2:B5=1501),--(A2:A5="ABC Agency"),C2:C5)


"Tarique" wrote:

I have take so much time for conditional sum and try different conditions but
in vain.
Please tell me the solution.
e.g:
Distributor Name Article NO. Sale
ABC Agency 701 15
ABC Agency 709 20
ABC Agency 1501 55
XYZ Traders 701 35

I want to sum the sales numbers by Article wise 701 & 1501 in same cell for
same distributor.
Please help me to solve this likly to cronic situation.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default Conditional Sum

You could try this:

=SUMPRODUCT((A2:A100="ABC Agency")*(B2:B100={701,1501})*C2:C100)

You could, however, designate particular cells to contain your variable
criteria, so that you could make changes, without having to revise the
formula itself.

Say D1 = Distributor,
D2 = Article Number[A]
D3 = Article Number[b]

You could leave one of the "Article" cells empty, if you only wished to
total one of them at a time.

=SUMPRODUCT((A2:A100=D1)*((B2:B100=D2)+(B2:B100=D3 ))*C2:C100)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Tarique" wrote in message
...
I have take so much time for conditional sum and try different conditions
but
in vain.
Please tell me the solution.
e.g:
Distributor Name Article NO. Sale
ABC Agency 701 15
ABC Agency 709 20
ABC Agency 1501 55
XYZ Traders 701 35

I want to sum the sales numbers by Article wise 701 & 1501 in same cell
for
same distributor.
Please help me to solve this likly to cronic situation.




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
Keeping conditional formatting when sorting Andrea A Excel Discussion (Misc queries) 0 April 4th 06 03:00 PM
Conditional Formatting when inserting a row zahoulik Excel Worksheet Functions 2 January 7th 06 03:01 PM
Conditional Format Not Working KMH Excel Discussion (Misc queries) 0 December 22nd 05 05:32 PM
Conditional formula - language needed gamebird Excel Worksheet Functions 7 October 10th 05 11:48 PM
Conditional formatting not available in Excel BAB Excel Discussion (Misc queries) 2 January 1st 05 03:33 PM


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