Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4
Default sumif formula with multiple criteria question

Given range named "type" and "qty", i am trying to write a formula that will
sum the "qty" of multiple "type"s together. I've tried
=sum(if((type="apples")+(type="oranges"),qty,0) and
=sumif(type,(or("apples"),("oranges")),qty)
neither work....can someone help me please?

Thanks,
Amb



  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,533
Default sumif formula with multiple criteria question

See post in other group.

Please don't multipost.

....
Per

"Ambassador" skrev i meddelelsen
...
Given range named "type" and "qty", i am trying to write a formula that
will
sum the "qty" of multiple "type"s together. I've tried
=sum(if((type="apples")+(type="oranges"),qty,0) and
=sumif(type,(or("apples"),("oranges")),qty)
neither work....can someone help me please?

Thanks,
Amb




  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default sumif formula with multiple criteria question

On Thu, 9 Jul 2009 16:02:02 -0400, "Ambassador"
wrote:

Given range named "type" and "qty", i am trying to write a formula that will
sum the "qty" of multiple "type"s together. I've tried
=sum(if((type="apples")+(type="oranges"),qty,0) and
=sumif(type,(or("apples"),("oranges")),qty)
neither work....can someone help me please?

Thanks,
Amb



Try this formula:

=SUMPRODUCT(qty,(type="apples")+(type="oranges"))

Hope this helps / Lars-Åke
  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,276
Default sumif formula with multiple criteria question

Hi,
=sumproduct(--(type="apples"),--(type="oranges"),qty)


"Ambassador" wrote:

Given range named "type" and "qty", i am trying to write a formula that will
sum the "qty" of multiple "type"s together. I've tried
=sum(if((type="apples")+(type="oranges"),qty,0) and
=sumif(type,(or("apples"),("oranges")),qty)
neither work....can someone help me please?

Thanks,
Amb




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
Multiple criteria on sumif/countif formula Count1314 Excel Discussion (Misc queries) 5 June 19th 09 11:11 AM
conditional formula question with multiple criteria joe@malvern[_2_] Excel Discussion (Misc queries) 2 March 26th 09 05:16 PM
SUMIF question with multiple criteria Gretchster Excel Worksheet Functions 2 November 10th 05 06:41 PM
Multiple Criteria in a SUMIF formula JCARROLL Excel Discussion (Misc queries) 1 July 20th 05 09:17 PM
Array Formula w/ Multiple SumIf Criteria Andy Excel Worksheet Functions 3 July 13th 05 08:56 PM


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