Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rachelle
 
Posts: n/a
Default How do I ask for multiple criteria when creating a "sumif" formul.

I need to create a "sumif" formula in excel that allows me to dictate
MULTIPLE criteria...for example, in range a1:c10, I want to sum cell c3 only
if a1="value" and b1="value", and so on down the line...ideally, I would
creat a formula that looks like this:

=sumif(a1:c10,a1:a10="value1"AND b1:b10="value2",c1:c10)

I've tried layer "if" and "and" formulas in the sumif formula; nothing seems
to work.

HELP!
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

You can use sumproduct for that:

=SUMPRODUCT((A1:A4="red")*(B1:B4="car"),C1:C4)

this will sum C1:C4 when A1:A4="red" and B1:B4="car".




"Rachelle" wrote in message
...
I need to create a "sumif" formula in excel that allows me to dictate
MULTIPLE criteria...for example, in range a1:c10, I want to sum cell c3

only
if a1="value" and b1="value", and so on down the line...ideally, I would
creat a formula that looks like this:

=sumif(a1:c10,a1:a10="value1"AND b1:b10="value2",c1:c10)

I've tried layer "if" and "and" formulas in the sumif formula; nothing

seems
to work.

HELP!



  #3   Report Post  
tjtjjtjt
 
Posts: n/a
Default

I'm not sure I understand the wording of your question, but it sounds like
SUMPRODUCT could help you:
=SUMPRODUCT(--(A1:A10="Required Text"),--(B1:B10=RequiredNumber),(C1:C10))

This formula should add the values in Column C only if the text in the same
row in column A matches the RequiredText in the formula and the value in the
same row for column B matches the RequiredNumber.
Note that text goes in quotes, numbers do not.

For more, check out:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html


tj


=sumif(a1:c10,a1:a10="value1"AND b1:b10="value2",c1:c10)

I've tried layer "if" and "and" formulas in the sumif formula; nothing seems
to work.

HELP!

  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(A1:A10="value1"),--(B1:B10="value2"),C1:C10)


for an explanation of "--", see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
"Rachelle" wrote:

I need to create a "sumif" formula in excel that allows me to dictate
MULTIPLE criteria...for example, in range a1:c10, I want to sum cell c3 only
if a1="value" and b1="value", and so on down the line...ideally, I would
creat a formula that looks like this:

=sumif(a1:c10,a1:a10="value1"AND b1:b10="value2",c1:c10)

I've tried layer "if" and "and" formulas in the sumif formula; nothing seems
to work.

HELP!

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 Criteria Brent Martin Excel Discussion (Misc queries) 6 January 7th 05 05:17 AM
SUMIF with only one criteria cell within range Stan Excel Discussion (Misc queries) 5 December 16th 04 10:12 PM
SUMIF with more than 1 criteria Mike@Q Excel Worksheet Functions 4 November 26th 04 12:17 AM
SUMIF multiple criteria LOU Excel Worksheet Functions 1 November 10th 04 07:12 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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