Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# I need an excel formula

Posted on 2011-09-28
Medium Priority
134 Views
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
Question by:wrt1mea
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points

LVL 19

Expert Comment

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

LVL 85

Accepted Solution

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

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

LVL 42

Expert Comment

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

ID: 36717344
Missed the refresh!
0

LVL 1

Author Closing Comment

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

## Featured Post

Question has a verified solution.

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

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
###### Suggested Courses
Course of the Month5 days, 2 hours left to enroll