Solved

I need an excel formula

Posted on 2011-09-28
6
125 Views
Last Modified: 2012-05-12
I need an excel formula to calculate the average number of days for a specific Project ID, and display the results only once. I cant tell you how bad a screwed up the syntax on this one!

See the attached for an example.
9-28-11.xlsx
0
Comment
Question by:wrt1mea
6 Comments
 
LVL 19

Expert Comment

by:akoster
ID: 36717309
Easiest is to use a pivot table, like this :  9-28-11.xlsx
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 36717318
In F2:
=IF(A2=A1,"",AVERAGEIF($A$2:$A$25,A2,$D$2:$D$25))
then copy down.
0
 
LVL 24

Expert Comment

by:StephenJR
ID: 36717322
If I were you I'd do a pivot table. Project ID in the row field and (Average of) Days in the data field.
0
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 41

Expert Comment

by:dlmille
ID: 36717340
Here's an example:

=AVERAGEIF(A2:A25,J2,D2:D25)

Where J2 is the project Id, which is matched with A2:A25, and the average based on that comes from the data in D2:D25

See example attached,


9-28-11.xlsx
0
 
LVL 41

Expert Comment

by:dlmille
ID: 36717344
Missed the refresh!
0
 
LVL 1

Author Closing Comment

by:wrt1mea
ID: 36717423
Perfect! thanks to tall for the help, but this is the better solution for this particular situtation
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question