Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I need an excel formula

Posted on 2011-09-28
6
Medium Priority
?
137 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:Arno Koster
ID: 36717309
Easiest is to use a pivot table, like this :  9-28-11.xlsx
0
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 42

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 42

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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

783 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