View Single Post
  #2   Report Post  
Old September 7th 11, 01:18 PM posted to microsoft.public.excel.worksheet.functions
Don Guillett[_2_] Don Guillett[_2_] is offline
external usenet poster
 
First recorded activity by ExcelBanter: Jan 2010
Posts: 1,522
Default SUMIFS, one criteria range, multiple criteria

On Sep 7, 2:09*am, GavinS wrote:
I have the following data

Column A * * Column B
Amount * * * * * *Account
100 * * * * * * * * * *A
50 * * * * * * * * * * B
20 * * * * * * * * * * C
200 * * * * * * * * * D

I would like to sum items in column A where column B = B or C (I think
these are numbers stored as text).

I cannot get SUMIFS to work with multiple criteria but only one
criteria range even when I use the OR statement.
Can someone help me how to do this please.

thanks

Also works with previoius versions of excel
=SUMPRODUCT(--(C1:C4={"a","b"})*B1:B4)