Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alejandro
 
Posts: n/a
Default How to sum with 2 conditions

In the following example how can I add all the comissions for Apartments in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000



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

=SUMPRODUCT(((A2:A20="Apartment")*(B2:B20="San
Francisco")+(A2:A20="House")*(B2:B20="New York")),C2:C20)

for one way

--
HTH

Bob Phillips

"Alejandro" wrote in message
...
In the following example how can I add all the comissions for Apartments

in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000





  #4   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=SUMPRODUCT(--($A$2:$A$7="Apartment"),--($B$2:$B$7="San
Francisco"),$C$2:$C$7)

or

=SUMPRODUCT(--($A$2:$A$7=E1),--($B$2:$B$7=F1),$C$2:$C$7)

....where E1 contains the 'Type', and F1 contains the 'Property'.

Hope this helps!

In article ,
Alejandro wrote:

In the following example how can I add all the comissions for Apartments in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000

  #5   Report Post  
Alejandro
 
Posts: n/a
Default

If I use the following formula as you stated (Pivot of data in A1)

=SUMIF(A2:A7,"Apartment",C2:C7)+SUMIF(B2:B7,"San Francisco",C2:C7)

It adds all comissions for Apartments plus all comissions for San Francisco,
I tried other forms of sumif with not the looked result.

What I need is to sumif with a DOBLE conditions for example:
Apartment located in San Francisco

Thanks

"Don Guillett" wrote:

A simple way would be to use =sumif+sumif

--
Don Guillett
SalesAid Software

"Alejandro" wrote in message
...
In the following example how can I add all the comissions for Apartments

in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000








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

I read it as Apartments in San Fran, OR Houses in NY, not Apartments or
Houses in San Fran or NY, Actually, it wasn't just the way I read it, he
said that.

--
HTH

Bob Phillips

"Don Guillett" wrote in message
...
or try with { }

=SUMPRODUCT(((A2:A20={"Apartment","House"})*(B2:B2 0={"San
Francisco","New York"})*C2:C20)


--
Don Guillett
SalesAid Software

"Bob Phillips" wrote in message
...
=SUMPRODUCT(((A2:A20="Apartment")*(B2:B20="San
Francisco")+(A2:A20="House")*(B2:B20="New York")),C2:C20)

for one way

--
HTH

Bob Phillips

"Alejandro" wrote in message
...
In the following example how can I add all the comissions for

Apartments
in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000









  #8   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Alejandro:

=SUMPRODUCT( (A2:A10="Apartment") * (B2:B10="San Francisco") * (C2:C10) )
--
Earl Kiosterud
www.smokeylake.com/
-------------------------------------------

"Alejandro" wrote in message
...
In the following example how can I add all the comissions for Apartments
in
San Francisco or Houses in New York using SumIf for example??

Type Property Value Commission
Apartment San Francisco 7,000
House New York 14,000
Apartment New York 21,000
Apartment San Francisco 13,000
House San Francisco 28,000
Apartment New York 8,000





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
Formula for multiple conditions Roy Excel Discussion (Misc queries) 3 June 9th 05 08:19 PM
Conditional formatting: I have five conditions, how to do this? Danzguy Excel Discussion (Misc queries) 2 May 11th 05 08:21 AM
SUM based on multiple conditions - SORRY, URGENT!!! marika1981 Excel Worksheet Functions 4 February 18th 05 11:13 AM
should be possible to add more conditions to conditional formatti. excel_jan Excel Discussion (Misc queries) 3 February 9th 05 06:41 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 12:43 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"