Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default how to sum when two conditions are met, e.g. name and task number

I have a spreadsheet in which I am keeping track of employee's hours worked
on individual tasks, so I need to sum cells by person and by task. can't
figure out how to say sum if "name" and "task #". Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default how to sum when two conditions are met, e.g. name and task number

Try this where Col A is the name, Col b is the task name or number and Col C
is the hours on that task

=SUMPRODUCT((A1:A20="Mike")*(B1:B20="Task 22")*(C1:C20))

Mike

"steve95959" wrote:

I have a spreadsheet in which I am keeping track of employee's hours worked
on individual tasks, so I need to sum cells by person and by task. can't
figure out how to say sum if "name" and "task #". Thanks for any help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default how to sum when two conditions are met, e.g. name and task number

=SUMPRODUCT(--($A$2:$A$200="name"),--($B$2:$B$200=task#),$C$2:$C$200)

Note that SUMPRODUCT doesn't work with complete columns, you have to specify
a range.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"steve95959" wrote in message
...
I have a spreadsheet in which I am keeping track of employee's hours worked
on individual tasks, so I need to sum cells by person and by task. can't
figure out how to say sum if "name" and "task #". Thanks for any help!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default how to sum when two conditions are met, e.g. name and task num

Thank you tons Mike H and Bob Phillips! Both formulas work!

"Mike H" wrote:

Try this where Col A is the name, Col b is the task name or number and Col C
is the hours on that task

=SUMPRODUCT((A1:A20="Mike")*(B1:B20="Task 22")*(C1:C20))

Mike

"steve95959" wrote:

I have a spreadsheet in which I am keeping track of employee's hours worked
on individual tasks, so I need to sum cells by person and by task. can't
figure out how to say sum if "name" and "task #". Thanks for any 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
Counting number of weeks to complete a task [email protected] Excel Worksheet Functions 7 April 21st 08 03:12 AM
Number of recently used templates on New Workbook task pane David Excel Discussion (Misc queries) 0 July 11th 06 11:24 PM
Limit on number of conditions? Amy F. Excel Worksheet Functions 3 October 11th 05 09:37 PM
Count the number of Cells in one ROW with conditions Amanda Excel Worksheet Functions 2 September 9th 05 04:03 PM
How do I count number of cels the matches 2 conditions ? Abra Excel Worksheet Functions 2 February 27th 05 08:56 PM


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