Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 272
Default sumif functions based on multiple data

I have a worksheet where I'm trying to get the total sales in the south and
in the east. My formula looks for the words "south" and "east" in column A
and totals from column D. This is actually the example from microsoft help.
All the formula returns is #value using the following:

=SUM(IF((A2:A11="South")+(A2:A11="East"),D2:D11))

Region Salesperson Type Sales
South Buchanan Beverages 3571
West Davolio Dairy 3338
East Suyama Beverages 5122
North Suyama Dairy 6239
South Dodsworth Produce 8677
South Davolio Meat 450
South Davolio Meat 7673
East Suyama Produce 664
North Davolio Produce 1500
South Dodsworth Meat 6596

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default sumif functions based on multiple data

Try


=SUM(SUMIF(A2:A11,{"South","East"},D2:D11))



--
Regards,

Peo Sjoblom



"Lori" wrote in message
...
I have a worksheet where I'm trying to get the total sales in the south and
in the east. My formula looks for the words "south" and "east" in column
A
and totals from column D. This is actually the example from microsoft
help.
All the formula returns is #value using the following:

=SUM(IF((A2:A11="South")+(A2:A11="East"),D2:D11))

Region Salesperson Type Sales
South Buchanan Beverages 3571
West Davolio Dairy 3338
East Suyama Beverages 5122
North Suyama Dairy 6239
South Dodsworth Produce 8677
South Davolio Meat 450
South Davolio Meat 7673
East Suyama Produce 664
North Davolio Produce 1500
South Dodsworth Meat 6596



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default sumif functions based on multiple data

This is an array formula.

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

Alternatively:
=SUMPRODUCT((A2:A11={"South","East"})*D2:D11)

This does not have to be array entered.

Lori wrote:

I have a worksheet where I'm trying to get the total sales in the south and
in the east. My formula looks for the words "south" and "east" in column A
and totals from column D. This is actually the example from microsoft help.
All the formula returns is #value using the following:

=SUM(IF((A2:A11="South")+(A2:A11="East"),D2:D11))

Region Salesperson Type Sales
South Buchanan Beverages 3571
West Davolio Dairy 3338
East Suyama Beverages 5122
North Suyama Dairy 6239
South Dodsworth Produce 8677
South Davolio Meat 450
South Davolio Meat 7673
East Suyama Produce 664
North Davolio Produce 1500
South Dodsworth Meat 6596


--

Dave Peterson
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
How do you create COUNTIF functions based on multiple criteria? MsBeverlee Excel Worksheet Functions 8 February 19th 07 10:25 PM
SUMIF based on data in adjacent row jcpotwor Excel Discussion (Misc queries) 6 January 17th 06 12:03 AM
multiple selections in a sumif functions Frank Excel Worksheet Functions 2 October 25th 05 01:43 PM
SUMIF in multiple columns based on other criteria in Excel? Scott Powell Excel Discussion (Misc queries) 9 April 13th 05 02:32 PM
SUMIF and MULTIPLE DATA Brian Excel Discussion (Misc queries) 2 March 23rd 05 05:20 AM


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