Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ac ac is offline
external usenet poster
 
Posts: 18
Default sumif with 2 ranges and multiple criteria

I need help figuring out how to sum a range if I have multiple criteria in 2
separate columns not next to one another. This is what I have but it's not
working:

sumif('ALC 2007 Q4'!I4:I346 or 'ALC 2007 Q4'!C4:C346, "Industry-all" or
"product 1" or "product 2", 'ALC 2007 Q4'!F4:F346)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default sumif with 2 ranges and multiple criteria

=SUMPRODUCT(('ALC 2007 Q4'!I4:I346={"Industry-all","Product 1","Product
2"})*'ALC 2007 Q4'!F4:F346)


"AC" wrote:

I need help figuring out how to sum a range if I have multiple criteria in 2
separate columns not next to one another. This is what I have but it's not
working:

sumif('ALC 2007 Q4'!I4:I346 or 'ALC 2007 Q4'!C4:C346, "Industry-all" or
"product 1" or "product 2", 'ALC 2007 Q4'!F4:F346)

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default sumif with 2 ranges and multiple criteria

If a criteria is in both ranges should it calculate as 2x or 1x. For
example:

C4 = Industry-all
I4 = product 2
F4 = 10

Should the result be 10 or 20?

--
Biff
Microsoft Excel MVP


"AC" wrote in message
...
I need help figuring out how to sum a range if I have multiple criteria in
2
separate columns not next to one another. This is what I have but it's
not
working:

sumif('ALC 2007 Q4'!I4:I346 or 'ALC 2007 Q4'!C4:C346, "Industry-all" or
"product 1" or "product 2", 'ALC 2007 Q4'!F4:F346)



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
Awkward sumif/sumproduct with three criteria over two ranges PBcorn Excel Worksheet Functions 4 June 13th 08 04:43 PM
SUMIF Multiple Criteria in different ranges. [email protected] Excel Worksheet Functions 13 February 6th 08 05:53 PM
Sumif with 2 ranges & 2 criteria cgibby Excel Worksheet Functions 6 January 4th 08 08:58 PM
Calculate a SUMIF if criteria is between 2 date ranges Anthony P Excel Worksheet Functions 4 October 13th 06 05:12 PM
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM


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