Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Sum of values based on different criteria

I have a column (lets say column A) that has a dropped down list of
'terminated' or 'completed' (let say from row 1 to row 5), and I have another
column (Column B) that I enter a code of 'HB' for home buying (there are
blank cells); then my last column (column C) has an amount. Now, I would
like to know how much is the total (sum) for the terminated and the total for
completed.

Any help will be appreciated.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum of values based on different criteria

Try this:

E1 = terminated
F1 = HB

=SUMPRODUCT(--(A1:A5=E1),--(B1:B5=F1),C1:C5)

--
Biff
Microsoft Excel MVP


"Irene" wrote in message
...
I have a column (lets say column A) that has a dropped down list of
'terminated' or 'completed' (let say from row 1 to row 5), and I have
another
column (Column B) that I enter a code of 'HB' for home buying (there are
blank cells); then my last column (column C) has an amount. Now, I would
like to know how much is the total (sum) for the terminated and the total
for
completed.

Any help will be appreciated.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,311
Default Sum of values based on different criteria

Maybe this:

=SUMPRODUCT(--(A1:A5="terminated"),--(B1:B5="HB"),C1:C5)

HTH,
Paul

--

"Irene" wrote in message
...
I have a column (lets say column A) that has a dropped down list of
'terminated' or 'completed' (let say from row 1 to row 5), and I have
another
column (Column B) that I enter a code of 'HB' for home buying (there are
blank cells); then my last column (column C) has an amount. Now, I would
like to know how much is the total (sum) for the terminated and the total
for
completed.

Any help will be appreciated.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default Sum of values based on different criteria

Thanks much, it helped. One more question, what about if I would like to
find out how many in column C is zero; how many terminated are zero and how
many who doesnt have a terminated or completed (blank in column A) has zero
amount in column C?



"T. Valko" wrote:

Try this:

E1 = terminated
F1 = HB

=SUMPRODUCT(--(A1:A5=E1),--(B1:B5=F1),C1:C5)

--
Biff
Microsoft Excel MVP


"Irene" wrote in message
...
I have a column (lets say column A) that has a dropped down list of
'terminated' or 'completed' (let say from row 1 to row 5), and I have
another
column (Column B) that I enter a code of 'HB' for home buying (there are
blank cells); then my last column (column C) has an amount. Now, I would
like to know how much is the total (sum) for the terminated and the total
for
completed.

Any help will be appreciated.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Sum of values based on different criteria

One more question

how many in column C is zero

=COUNTIF(C1:C5,0)

how many terminated are zero

=SUMPRODUCT(--(A1:A5=E1),--(ISNUMBER(C1:C5)),--(C1:C5=0)

how many who doesnt have a terminated
or completed (blank in column A) has zero

=SUMPRODUCT(--(A1:A5=""),--(ISNUMBER(C1:C5)),--(C1:C5=0)


--
Biff
Microsoft Excel MVP


"Irene" wrote in message
...
Thanks much, it helped. One more question, what about if I would like to
find out how many in column C is zero; how many terminated are zero and
how
many who doesnt have a terminated or completed (blank in column A) has
zero
amount in column C?



"T. Valko" wrote:

Try this:

E1 = terminated
F1 = HB

=SUMPRODUCT(--(A1:A5=E1),--(B1:B5=F1),C1:C5)

--
Biff
Microsoft Excel MVP


"Irene" wrote in message
...
I have a column (lets say column A) that has a dropped down list of
'terminated' or 'completed' (let say from row 1 to row 5), and I have
another
column (Column B) that I enter a code of 'HB' for home buying (there
are
blank cells); then my last column (column C) has an amount. Now, I
would
like to know how much is the total (sum) for the terminated and the
total
for
completed.

Any help will be appreciated.

Thanks






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 unique values based on criteria yshridhar Excel Worksheet Functions 4 April 29th 08 05:29 AM
Returning all values based on 2 criteria... Kevin Excel Discussion (Misc queries) 7 December 31st 07 07:17 AM
Looking up values based on two criteria LauriS Excel Worksheet Functions 8 August 24th 07 02:30 PM
Sum of Values Based on Criteria in Another File Rob Excel Worksheet Functions 0 December 2nd 06 09:17 PM
adding values based on criteria Brad Excel Worksheet Functions 1 July 20th 05 06:16 PM


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