Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Markitos
 
Posts: n/a
Default sum of a cell if 2 cells meet a condition

Hello Everyone- Im stuck please help

Im using Collums A, B, C AND Cell D1
Collum A =Account
Collum B=Reference
Collum C=dollar amount

In cell D1 I would like the sum of Column C if rows with A with a value of
101, and B with a value of 201. Or is it better to have the sum of A and B
=302 within a row.
In this ledger their will be different accounts if that helps.

Well, thanks for your time and help,
-Markitos


  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=SUMPRODUCT(--($A$2:$A$100=E2),--($B$2:$B$100=F2),$C$2:$C$100)

where E2 houses an account number of interest like 101 and F2 a
reference value like 201.

Note that this type of formulas do not admit whole column references
like A:A.

Markitos wrote:
Hello Everyone- Im stuck please help

Im using Collums A, B, C AND Cell D1
Collum A =Account
Collum B=Reference
Collum C=dollar amount

In cell D1 I would like the sum of Column C if rows with A with a value of
101, and B with a value of 201. Or is it better to have the sum of A and B
=302 within a row.
In this ledger their will be different accounts if that helps.

Well, thanks for your time and help,
-Markitos


  #3   Report Post  
Markitos
 
Posts: n/a
Default

Thanks for your advice, but Im still confused, not sure how E2 plays into
effect here.

"Aladin Akyurek" wrote:

=SUMPRODUCT(--($A$2:$A$100=E2),--($B$2:$B$100=F2),$C$2:$C$100)

where E2 houses an account number of interest like 101 and F2 a
reference value like 201.

Note that this type of formulas do not admit whole column references
like A:A.

Markitos wrote:
Hello Everyone- Im stuck please help

Im using Collums A, B, C AND Cell D1
Collum A =Account
Collum B=Reference
Collum C=dollar amount

In cell D1 I would like the sum of Column C if rows with A with a value of
101, and B with a value of 201. Or is it better to have the sum of A and B
=302 within a row.
In this ledger their will be different accounts if that helps.

Well, thanks for your time and help,
-Markitos



  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

E2 and F2 are just two cells you enter the conditions/criteria that must
hold for ranges of interest. If you rather not have these extra cells, try:

=SUMPRODUCT(--($A$2:$A$100=101),--($B$2:$B$100=201),$C$2:$C$100)

Markitos wrote:
Thanks for your advice, but Im still confused, not sure how E2 plays into
effect here.

"Aladin Akyurek" wrote:


=SUMPRODUCT(--($A$2:$A$100=E2),--($B$2:$B$100=F2),$C$2:$C$100)

where E2 houses an account number of interest like 101 and F2 a
reference value like 201.

Note that this type of formulas do not admit whole column references
like A:A.

Markitos wrote:

Hello Everyone- Im stuck please help

Im using Collums A, B, C AND Cell D1
Collum A =Account
Collum B=Reference
Collum C=dollar amount

In cell D1 I would like the sum of Column C if rows with A with a value of
101, and B with a value of 201. Or is it better to have the sum of A and B
=302 within a row.
In this ledger their will be different accounts if that helps.

Well, thanks for your time and help,
-Markitos



  #5   Report Post  
Markitos
 
Posts: n/a
Default

Thanks Aladin, I played around with both of the formulas and understand the
1st in terms of my set up and your e2, f2 as being a place for an acc. list ,
and the 2nd formula makes it even easier because it doesnt req. any links.

Thanks so much for your help.

"Aladin Akyurek" wrote:

E2 and F2 are just two cells you enter the conditions/criteria that must
hold for ranges of interest. If you rather not have these extra cells, try:

=SUMPRODUCT(--($A$2:$A$100=101),--($B$2:$B$100=201),$C$2:$C$100)

Markitos wrote:
Thanks for your advice, but Im still confused, not sure how E2 plays into
effect here.

"Aladin Akyurek" wrote:


=SUMPRODUCT(--($A$2:$A$100=E2),--($B$2:$B$100=F2),$C$2:$C$100)

where E2 houses an account number of interest like 101 and F2 a
reference value like 201.

Note that this type of formulas do not admit whole column references
like A:A.

Markitos wrote:

Hello Everyone- Im stuck please help

Im using Collums A, B, C AND Cell D1
Collum A =Account
Collum B=Reference
Collum C=dollar amount

In cell D1 I would like the sum of Column C if rows with A with a value of
101, and B with a value of 201. Or is it better to have the sum of A and B
=302 within a row.
In this ledger their will be different accounts if that helps.

Well, thanks for your time and help,
-Markitos




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 I link many cells to one particular cell? fish@divi Excel Discussion (Misc queries) 2 January 4th 05 11:00 PM
How do I link many cells to one particular cell? justinfishman22 Excel Discussion (Misc queries) 2 January 4th 05 12:09 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
How to add cells wiht the condition of the former cell. Rafael Excel Discussion (Misc queries) 7 December 22nd 04 04:53 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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