Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
WTG
 
Posts: n/a
Default sumif with 2 conditions ?? can this be done??

I have a worksheet as follows.


a b c d e
1 abc xyz 456
2 def poer 789
3 werq iug 123
4 kljh jklh 486


I need a sumif " if column a=def and b= poer then sum column e"


I tried the following formula, but it didn't work :(

=SUMIF(D_TICK!$a$1:$e$1000,('PIT & QUARRY'!F22)&('PIT &
QUARRY'!H18),D_TICK!$e$1:1000)

any ideas??

Wally


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(A2:A100=""def"),--(B2:B100="poer"),E2:E100)

it cannot work on whole columds, only ranges in a column.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"WTG" wrote in message
...
I have a worksheet as follows.


a b c d e
1 abc xyz 456
2 def poer 789
3 werq iug 123
4 kljh jklh 486


I need a sumif " if column a=def and b= poer then sum column e"


I tried the following formula, but it didn't work :(

=SUMIF(D_TICK!$a$1:$e$1000,('PIT & QUARRY'!F22)&('PIT &
QUARRY'!H18),D_TICK!$e$1:1000)

any ideas??

Wally




  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

[1]

F1 on D_TICK, copied down:

=A1&"#"&B1

Then invoke:

=SUMIF(D_TICK!$F$1:$F$1000,'PIT & QUARRY'!F22&"#"&'PIT &
QUARRY'!H18,D_TICK!$E$1:$E$1000)

[2]

=SUMPRODUCT((D_TICK!$A$1:$A$1000='PIT &
QUARRY'!F22)+0,(D_TICK!$B$1:$B$1000='PIT &
QUARRY'!H18)+0,D_TICK!$E$1:$E$1000)

WTG wrote:
I have a worksheet as follows.


a b c d e
1 abc xyz 456
2 def poer 789
3 werq iug 123
4 kljh jklh 486


I need a sumif " if column a=def and b= poer then sum column e"


I tried the following formula, but it didn't work :(

=SUMIF(D_TICK!$a$1:$e$1000,('PIT & QUARRY'!F22)&('PIT &
QUARRY'!H18),D_TICK!$e$1:1000)

any ideas??

Wally



--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
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
SUMIF with two conditions Fred Holmes Excel Discussion (Misc queries) 3 May 1st 05 10:10 PM
sumif with two conditions ww Excel Worksheet Functions 3 March 31st 05 01:44 AM
SumIF w/ two conditions (not the same as other posts!... I think) MeatLightning Excel Discussion (Misc queries) 7 February 8th 05 10:55 PM
SUMIF with two conditions ? Mestrella31 Excel Discussion (Misc queries) 9 December 22nd 04 01:09 AM
SUMIF based on 2 conditions TimH Excel Worksheet Functions 3 October 28th 04 08:18 PM


All times are GMT +1. The time now is 08:39 PM.

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"