Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Count and Sum Functions based on multiple column criteria

I need to count and sum data in a spreadsheet based on criteria in three
separate columns. Specifically, it's dealing with discrepancy information
for aircraft maintenance where one column (A) contains identifiers for
individual work centers, another column (B) contains text codes for the types
of discrepancies and the third column (C) contains the time spent on a repair.

What I need to do is count how many of a particular type of repair in column
B occurs for each work center in column A. Additionally, I need to sum the
amount of time in column C for each of the count functions. The wrinkle is,
that in some cases, more than one discrepancy code in column B need to be
counted collectively (i.e. PX, PL and PF all would be in a single count) and
their respective hour sums would need to be calculated.

For example purposes, the 3 workcenters in column A are FHM, FCS and FC9.
FHM had 12 "Phase" discrepancies between 1 "PX", 2 "PL" and 9 "PF" entries in
column B, with their respective hours in column C.

How do I construct a formula to extract that data?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Count and Sum Functions based on multiple column criteria

Mike wrote:
I need to count and sum data in a spreadsheet based on criteria in three
separate columns. Specifically, it's dealing with discrepancy information
for aircraft maintenance where one column (A) contains identifiers for
individual work centers, another column (B) contains text codes for the types
of discrepancies and the third column (C) contains the time spent on a repair.

What I need to do is count how many of a particular type of repair in column
B occurs for each work center in column A. Additionally, I need to sum the
amount of time in column C for each of the count functions. The wrinkle is,
that in some cases, more than one discrepancy code in column B need to be
counted collectively (i.e. PX, PL and PF all would be in a single count) and
their respective hour sums would need to be calculated.

For example purposes, the 3 workcenters in column A are FHM, FCS and FC9.
FHM had 12 "Phase" discrepancies between 1 "PX", 2 "PL" and 9 "PF" entries in
column B, with their respective hours in column C.

How do I construct a formula to extract that data?


A pivot table can do all this, even the grouping. No formulas required.
Select your range of data, fire up the pivot table wiz, and accept all
the defaults. Drag Workcenter to the row area, discrepancy to the column
(or row) area, and time to the data area. To group the discrepancy field
use Ctrl+Click to select the categories to group (click the field
labels), then Data | Group and Outline | Group. You can then right click
"Group 1" and opt to hide the detail if desired.
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 based on multiple criteria birdey Excel Worksheet Functions 2 August 20th 09 01:40 PM
Count based on multiple criteria Ashish Mathur[_2_] Excel Worksheet Functions 0 August 19th 09 03:19 AM
Count based on multiple criteria birdey Excel Discussion (Misc queries) 4 August 17th 09 06:19 PM
Count based on multiple criteria JerryS Excel Worksheet Functions 1 October 9th 07 06:37 PM
How do you create COUNTIF functions based on multiple criteria? MsBeverlee Excel Worksheet Functions 8 February 19th 07 10:25 PM


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