Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Sum If using 2 criterias

Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" = Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Sum If using 2 criterias

You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" = Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum If using 2 criterias

However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.


Pivot table, elegant?

LOL! <vbg

Biff

"Dave F" wrote in message
...
You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the
other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Sum If using 2 criterias

Now come on Dr Valko, we need to keep our prejudice under wraps <G

Bob


"T. Valko" wrote in message
...
However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.


Pivot table, elegant?

LOL! <vbg

Biff

"Dave F" wrote in message
...
You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the
other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum If using 2 criterias

<G

Biff

"Bob Phillips" wrote in message
...
Now come on Dr Valko, we need to keep our prejudice under wraps <G

Bob


"T. Valko" wrote in message
...
However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.


Pivot table, elegant?

LOL! <vbg

Biff

"Dave F" wrote in message
...
You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for
your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the
other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Sum If using 2 criterias

Dave,

How do I get the amount using this formula?
By the way thanks for your quick response!

"Dave F" wrote:

You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" = Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Sum If using 2 criterias

See T. Valko's response. He includes the amount whereas I didn't in my
response.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Dave,

How do I get the amount using this formula?
By the way thanks for your quick response!

"Dave F" wrote:

You need to use SUMPRODUCT:

=SUMPRODUCT(--(A1:A10="Month"),--(B1:B10="Account"))

However, you may find that a pivot table is a more elegant solution for your
data analysis needs.

Dave
--
Brevity is the soul of wit.


"Michael" wrote:

Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" = Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum If using 2 criterias

Try this:

=SUMPRODUCT(--(month_range=C3),--(account_range=B6),amount_range)

Biff

"Michael" wrote in message
...
Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Sum If using 2 criterias

Dr. Valko!!

Worked Like a charm!! Just one question so that I can learn from this, what
does "--" do for the formula??

Thanks!!!!!

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(month_range=C3),--(account_range=B6),amount_range)

Biff

"Michael" wrote in message
...
Hi,

I have 2 worksheets, one sheet with the columns listed below and the other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.




  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum If using 2 criterias

=SUMPRODUCT(--(month_range=C3),--(account_range=B6),amount_range)

Each element in these arrays will evaluate to either TRUE or FALSE:

(month_range=C3)
(account_range=B6)

The "--" coerces these logical values (TRUE, FALSE) to numbers. 1 for TRUE
and 0 for FALSE.

Then all 3 arrays are multiplied together and totaled for the final result.

See this for an extensive discussion:

http://xldynamic.com/source/xld.SUMPRODUCT.html

Biff

"Michael" wrote in message
...
Dr. Valko!!

Worked Like a charm!! Just one question so that I can learn from this,
what
does "--" do for the formula??

Thanks!!!!!

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(month_range=C3),--(account_range=B6),amount_range)

Biff

"Michael" wrote in message
...
Hi,

I have 2 worksheets, one sheet with the columns listed below and the
other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.








  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Sum If using 2 criterias

See http://xldynamic.com/source/xld.SUMPRODUCT.html

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"Michael" wrote in message
...
Dr. Valko!!

Worked Like a charm!! Just one question so that I can learn from this,
what
does "--" do for the formula??

Thanks!!!!!

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(month_range=C3),--(account_range=B6),amount_range)

Biff

"Michael" wrote in message
...
Hi,

I have 2 worksheets, one sheet with the columns listed below and the
other
sheet summarizes the activity entered in the first tab.

Column A = "Amount"
Column B = "Account"
Column C = "Month"

What I am trying to do is: SUMIF("Month"=Cell(C3) and "Account" =
Cell(B6))
then return the "Amount" based on the criteria.

How would I create a formula to do just that?

Please let me know if need to further explain.






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 can I have 2 criterias within sumif function Chris Harman Excel Worksheet Functions 3 September 8th 06 11:42 AM
Counting instances based on two criterias [email protected] Excel Worksheet Functions 7 June 5th 06 07:18 PM
Formula requiring two different criterias MJMP Excel Worksheet Functions 8 March 1st 05 10:13 PM
total of certain cells using 2 criterias rita Excel Worksheet Functions 7 February 28th 05 02:09 AM
Multiple Data Validation Criterias MCorrea Excel Worksheet Functions 4 January 20th 05 07:17 PM


All times are GMT +1. The time now is 04:11 AM.

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"