Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Conditional Sum Wizard

I tried to use the Conditional sum wizard to return the total amount when
Dept=LAN and AFR and E no.=1. The formula below returns a value of 0.
I was expecting 300.


=SUM(IF($A$2:$A$4="AFR",IF($A$2:$A$4="LAN",IF($B$2 :$B$4=B2,$C$2:$C$4,0),0),0))

A B C
1 Dept E no. Amount
2 LAN 1 200
3 AFR 1 100
4 BRF 1 100

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Conditional Sum Wizard

Try the below modified one.. (Array entered: Ctrl+Shift+Enter)

=SUM(IF($A$2:$A$4={"AFR","LAN"},IF($B$2:$B$4=B2,$C $2:$C$4,0),0),0)

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


"nc" wrote:

I tried to use the Conditional sum wizard to return the total amount when
Dept=LAN and AFR and E no.=1. The formula below returns a value of 0.
I was expecting 300.


=SUM(IF($A$2:$A$4="AFR",IF($A$2:$A$4="LAN",IF($B$2 :$B$4=B2,$C$2:$C$4,0),0),0))

A B C
1 Dept E no. Amount
2 LAN 1 200
3 AFR 1 100
4 BRF 1 100

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Sum Wizard

Try this normally entered formula:

Use cells to hold the criteria:

E2 = LAN
E3 = AFR

=SUMPRODUCT(--(ISNUMBER(MATCH(A2:A4,E2:E3,0))),--(B2:B4=B2),C2:C4)

--
Biff
Microsoft Excel MVP


"nc" wrote in message
...
I tried to use the Conditional sum wizard to return the total amount when
Dept=LAN and AFR and E no.=1. The formula below returns a value of 0.
I was expecting 300.


=SUM(IF($A$2:$A$4="AFR",IF($A$2:$A$4="LAN",IF($B$2 :$B$4=B2,$C$2:$C$4,0),0),0))

A B C
1 Dept E no. Amount
2 LAN 1 200
3 AFR 1 100
4 BRF 1 100



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
Conditional sum wizard Martin G[_2_] Excel Worksheet Functions 1 January 8th 09 03:53 PM
Conditional Sum Wizard MarcoKoenders Excel Discussion (Misc queries) 6 January 6th 09 05:25 PM
Conditional Sum Wizard Ron Excel Worksheet Functions 4 February 10th 07 04:31 PM
Conditional Sum Wizard Presleytcb Excel Worksheet Functions 1 July 8th 05 07:15 PM
using wizard and conditional sum lloyd8156 Excel Worksheet Functions 1 June 5th 05 06:23 PM


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