Need a Formula based on multiple cirteria

C

comam318

I am building a spreadsheet that will continue to grow in size. Th
basic outline of the spreadsheet is as follows:

A // B // C // D // E // F // G // H // I // J // K //
Sys Name // Project // Type of Bldg // Type of Work // Type of Price /
W/L // LNFT // CST // HRS // $/LNFT // HRs/LNFT //

Consept of the sheet is:

Column A will be grouped (using the Group command)
Column B is input for reference only, no lookup functions need apply
Column C is a Drop Down menu consisting of approximately 10 differen
types of Bldg.
Column D is a Drop Down menu consisting of approximately 5 differen
types of work.
Column E is a Drop Down menu consisting of approximately 6 differen
types of pricing.
Column F is a Drop Down menu with either Win or Lost.
Column G, H and I is user input.
Column J and K are simply math functions, J=H/G and K=I/G

Row 1 is Column names as outlined above.
Row 2 is a summary of System 1.
Rows 3 - ?? is data for system 1.

Sample Data:

System 1
// Project 1 // Bldg1 // Work1 // Price1 // Lost // 11484
// $49,045 // 3133 // (Formula Result) // (Formula Result)
// Project 2 // Bldg1 // Work2 // Price1// Win // 1019 //
$4,698 // 413 // (Formula Result) // (Formula Result)
// Project 3 // Bldg1 // Work1 // Price1 // Lost // 6594 /
$26,789 // 1710 // (Formula Result) // (Formula Result)

I am going to group the data under System 1 with the Group comman
becuase I will have multiple systems and not every project has eac
system. I want to summarize the data under each system by multipl
methods. I want to find the Average, Min, Max, and Mean based on
selection in the System row.

Column A is system name.
Column B is blank
Column C, D, E and F is Drop Down of same info from above.
Column G is a Drop Down of "Average", "Low", "High" and "Mean".
Column H, I, J and K perform the formula based on selections from C
G.

I am looking for a formula or CODE to perform the functions liste
above. It must be able to perform the formula in column G, based o
selection from Colum C - F weither there is a selection or not. (Ex.
if C - F are blank and G is Average then it returns the average of al
data below. Ex 2. if C is blank and D is Work1 and E - F are blan
and G is Mean then the Mean of Work1 is displayed.

I hope this makes some sort of sense and that someone can help me out.
Thank you for any assistance
 
D

Dave Peterson

I think I'd do my best to use xl's built in tools.

If your data is sorted, data|subtotals (applied multiple times to get
min/max/average (and average = mean to me).

Alternatively, you may want to look at Data|pivottable. It sounds like you can
build your summary pretty quickly.

Here are some links for pivottable info:

Debra Dalgleish's pictures at Jon Peltier's site:
http://peltiertech.com/Excel/Pivots/pivottables.htm
And Debra's own site:
http://www.contextures.com/xlPivot01.html

John Walkenbach also has some at:
http://j-walk.com/ss/excel/files/general.htm
(look for Tony Gwynn's Hit Database)

Chip Pearson keeps Harald Staff's notes at:
http://www.cpearson.com/excel/pivots.htm

MS has some at (xl2000 and xl2002):
http://office.microsoft.com/downloads/2000/XCrtPiv.aspx
http://office.microsoft.com/assistance/2002/articles/xlconPT101.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top