Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default Sum range if 2 conditions are met

Hi,

I need to sum values for a range if two conditions are met. One column is a
Status condition which is a simple Spin list ("AP"=Approved, "CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this example,
lets just focus on Captital (Note-these are separate rows anyway - there will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Sum range if 2 conditions are met

Try this formula...

=SUMPRODUCT((O1:O53="AP")*(Q1:Q53="C")*(T1:T53))

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi,

I need to sum values for a range if two conditions are met. One column is
a
Status condition which is a simple Spin list ("AP"=Approved,
"CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this
example,
lets just focus on Captital (Note-these are separate rows anyway - there
will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default Sum range if 2 conditions are met

Hi Thanks Rick...but I think it is multiplying. No what I needed.
Is the asterisk symbol multiplying in this formula?
I just need it to sum the values in the range T10:T53, only of the status in
column O="AP" and Column Q="C"


"Rick Rothstein" wrote:

Try this formula...

=SUMPRODUCT((O10:O53="AP")*(Q10:Q53="C")*(T10:T53) )

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi,

I need to sum values for a range if two conditions are met. One column is
a
Status condition which is a simple Spin list ("AP"=Approved,
"CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this
example,
lets just focus on Captital (Note-these are separate rows anyway - there
will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Sum range if 2 conditions are met

Give it a try.

Dean wrote:

Hi Thanks Rick...but I think it is multiplying. No what I needed.
Is the asterisk symbol multiplying in this formula?
I just need it to sum the values in the range T10:T53, only of the status in
column O="AP" and Column Q="C"

"Rick Rothstein" wrote:

Try this formula...

=SUMPRODUCT((O10:O53="AP")*(Q10:Q53="C")*(T10:T53) )

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi,

I need to sum values for a range if two conditions are met. One column is
a
Status condition which is a simple Spin list ("AP"=Approved,
"CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this
example,
lets just focus on Captital (Note-these are separate rows anyway - there
will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH




--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default Sum range if 2 conditions are met

My bad
It worked like a charm!!!!! Thanks!!!!!

"Dean" wrote:

Hi Thanks Rick...but I think it is multiplying. No what I needed.
Is the asterisk symbol multiplying in this formula?
I just need it to sum the values in the range T10:T53, only of the status in
column O="AP" and Column Q="C"


"Rick Rothstein" wrote:

Try this formula...

=SUMPRODUCT((O10:O53="AP")*(Q10:Q53="C")*(T10:T53) )

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi,

I need to sum values for a range if two conditions are met. One column is
a
Status condition which is a simple Spin list ("AP"=Approved,
"CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this
example,
lets just focus on Captital (Note-these are separate rows anyway - there
will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Sum range if 2 conditions are met

Did you try the formula? If not, I think you might be surprised.

By the way, it looks like I added an additional set of parentheses (they
won't affect the result, but they are not really needed). Here is the
formula with them...

=SUMPRODUCT((O10:O53="AP")*(Q10:Q53="C")*T10:T53)

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi Thanks Rick...but I think it is multiplying. No what I needed.
Is the asterisk symbol multiplying in this formula?
I just need it to sum the values in the range T10:T53, only of the status
in
column O="AP" and Column Q="C"


"Rick Rothstein" wrote:

Try this formula...

=SUMPRODUCT((O10:O53="AP")*(Q10:Q53="C")*(T10:T53) )

--
Rick (MVP - Excel)


"Dean" wrote in message
...
Hi,

I need to sum values for a range if two conditions are met. One column
is
a
Status condition which is a simple Spin list ("AP"=Approved,
"CP"=Cancelled
and "TBD".
The next column is a GL term "C"=Captial and "E"=Expence. For this
example,
lets just focus on Captital (Note-these are separate rows anyway -
there
will
not be one row with both "C" and "E" but both are in the range).


Columns O Q R T
(status) (GL-"C") (GL-"E") (dollars)

10 AP C $ 10,000
11 AP E $ 5,000
12 CP C $ 20,000
13 AP C $ 20,000
14 TBD C $ 10,000
15 AP E $ 10,000
..
53

Total approved Capital $ 30,000 (rows 10&13)

If someone can help me on this one, I can figure out the rest...thanks
DH




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
sum a range if two conditions are met Valerie Excel Discussion (Misc queries) 3 August 14th 07 03:48 PM
Match 2 Conditions then Avg Range Ken Excel Discussion (Misc queries) 0 June 7th 07 12:35 PM
Summing a range with conditions bpeltzer Excel Worksheet Functions 1 March 26th 06 11:44 PM
Add a Dynamic Range with 2 Conditions Q John Excel Worksheet Functions 7 December 23rd 04 02:58 PM
How do I sum a range after 2 different conditions are met (2 colu. Holly B. Excel Discussion (Misc queries) 3 December 21st 04 03:47 PM


All times are GMT +1. The time now is 12:49 AM.

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"