Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
klp klp is offline
external usenet poster
 
Posts: 13
Default count rows that meet certain criteria

I need a formula that will total all the payroll, overtime and training hours
for B and C in the below example:

A B C
1 payroll 15 8
2 overtime 5 0
3 payroll 6 22
4 training 4 4
5 training 8 11


payroll B = 21
overtime B = 5
training B = 12
payroll C = 30
overtime C = 0
training C = 15

i'm sure there is some easy formula that can do this, but i can't think of
one.
any suggestions?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default count rows that meet certain criteria

Easiest would be to create a Pivot Table.

The harder way would be to use individual formulae:

payroll B: =SUMIF(A1:A5,"payroll",B1:B5)
payroll C: =SUMIF(A1:A5,"payroll",C1:C5)

etc.

In article ,
klp wrote:

I need a formula that will total all the payroll, overtime and training hours
for B and C in the below example:

A B C
1 payroll 15 8
2 overtime 5 0
3 payroll 6 22
4 training 4 4
5 training 8 11


payroll B = 21
overtime B = 5
training B = 12
payroll C = 30
overtime C = 0
training C = 15

i'm sure there is some easy formula that can do this, but i can't think of
one.
any suggestions?

thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 51
Default count rows that meet certain criteria

payroll B =SUMIF($A$1:$A$5,"payroll",$B$1:$B$5)
overtime B =SUMIF($A$1:$A$5,"overtime",$B$1:$B$5)
training B =SUMIF($A$1:$A$5,"training",$B$1:$B$5)
payroll C =SUMIF($A$1:$A$5,"payroll",$C$1:$C$5)
overtime C =SUMIF($A$1:$A$5,"overtime",$C$1:$C$5)
training C =SUMIF($A$1:$A$5,"training",$C$1:$C$5)

"klp" wrote:

I need a formula that will total all the payroll, overtime and training hours
for B and C in the below example:

A B C
1 payroll 15 8
2 overtime 5 0
3 payroll 6 22
4 training 4 4
5 training 8 11


payroll B = 21
overtime B = 5
training B = 12
payroll C = 30
overtime C = 0
training C = 15

i'm sure there is some easy formula that can do this, but i can't think of
one.
any suggestions?

thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
klp klp is offline
external usenet poster
 
Posts: 13
Default count rows that meet certain criteria

thanks, the SUMIF formula worked perfectly!
unfortunatly the pivot table doesn't help in this situation.

"JE McGimpsey" wrote:

Easiest would be to create a Pivot Table.

The harder way would be to use individual formulae:

payroll B: =SUMIF(A1:A5,"payroll",B1:B5)
payroll C: =SUMIF(A1:A5,"payroll",C1:C5)

etc.

In article ,
klp wrote:

I need a formula that will total all the payroll, overtime and training hours
for B and C in the below example:

A B C
1 payroll 15 8
2 overtime 5 0
3 payroll 6 22
4 training 4 4
5 training 8 11


payroll B = 21
overtime B = 5
training B = 12
payroll C = 30
overtime C = 0
training C = 15

i'm sure there is some easy formula that can do this, but i can't think of
one.
any suggestions?

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
Count Cells that meet Criteria kmason Excel Worksheet Functions 6 August 24th 06 04:31 PM
count rows that meet two criteria in two different columns? dsk3808 Excel Worksheet Functions 6 June 28th 06 09:18 PM
how do I count the numbers of row that meet 2 criteria Debi Excel Worksheet Functions 4 November 10th 05 09:56 PM
count records which meet filter criteria AKH Excel Discussion (Misc queries) 1 October 31st 05 03:54 PM
How can I count cells that meet two criteria within a filtered co. lizzzy Excel Worksheet Functions 1 January 21st 05 06:03 PM


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