Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Lars F
 
Posts: n/a
Default I want to use the same function as SUMIF, but for two criterias

Is it possible to sum one column based on two criterias, for example country
and type of store? I have done that for countires with SUMIF, but I now want
to have two parameters instead.
I would appreciate any help on this,
/Lars
  #2   Report Post  
DaveB
 
Posts: n/a
Default

Lars -
Use SUMPRODUCT(...), assume your country names are in A1:A1000, your store
names are in B1:B1000 and the values you want to sum are in C1:C1000:

=SUMPRODUCT(--(A1:A1000="country name"),--(B1:B1000="store
type"),--(C1:C1000))
--
Regards,

Dave


"Lars F" wrote:

Is it possible to sum one column based on two criterias, for example country
and type of store? I have done that for countires with SUMIF, but I now want
to have two parameters instead.
I would appreciate any help on this,
/Lars

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

Dave,

The double unary is only required to coerce values to a number. If C1:C100
are already numbers it is not necessary, just

=SUMPRODUCT(--(A1:A1000="country name"),--(B1:B1000="store type"),C1:C1000)


--

HTH

RP
(remove nothere from the email address if mailing direct)


"DaveB" wrote in message
...
Lars -
Use SUMPRODUCT(...), assume your country names are in A1:A1000, your store
names are in B1:B1000 and the values you want to sum are in C1:C1000:

=SUMPRODUCT(--(A1:A1000="country name"),--(B1:B1000="store
type"),--(C1:C1000))
--
Regards,

Dave


"Lars F" wrote:

Is it possible to sum one column based on two criterias, for example

country
and type of store? I have done that for countires with SUMIF, but I now

want
to have two parameters instead.
I would appreciate any help on this,
/Lars



  #4   Report Post  
William Horton
 
Posts: n/a
Default

You can alway use the conditional sum wizard too. It is found via the Excel
menu path Tools / Wizard / Conditional Sum. It is an Excel add-in so you may
have to add it first. However, the SumProduct formula suggested by Dave and
Bob is more efficient. The Wizard is user/newbie friendly.

"Lars F" wrote:

Is it possible to sum one column based on two criterias, for example country
and type of store? I have done that for countires with SUMIF, but I now want
to have two parameters instead.
I would appreciate any help on this,
/Lars

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
SumIF function ACDenver Excel Discussion (Misc queries) 2 August 17th 05 09:47 PM
sumif function with a difference ozcank Excel Worksheet Functions 6 July 22nd 05 02:45 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
SUMIF function yak10 Excel Worksheet Functions 0 February 12th 05 05:12 PM
how do you do a sumif function on more than one worksheet? BMWPRO Excel Worksheet Functions 1 December 6th 04 08:26 PM


All times are GMT +1. The time now is 05:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"