# Calculate modified average based on criteria from other column

1. ## Calculate modified average based on criteria from other column

I would like to do the following:

For the value in D1, check C1. In this case, C1 = 2. Then, take the average of all values in column B that have the same value in column C, but excluding the value in row 1. So, for D1 this would be the average of B2, B4, B5, etc., but excluding B1. I have attached a sample workbook. How should I go about this?

2. ## Re: Calculate modified average based on criteria from other column

Wouldn't a basic SUMIF/COUNTIF suffice (with adjustment to exclude current record)

``Please Login or Register  to view this content.``
edit: I have added a MAX to ensure 0 rather than #DIV/0! where only one record exists.

3. ## Re: Calculate modified average based on criteria from other column

Thank you!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1