Want to create an advanced filter that averages the values of a unique column.

Wamhoi

New Member
Joined
Mar 4, 2011
Messages
48
I wish to create an advanced filter that averages the values of a unique column. For example. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Column A has the following A,B,C,C,A in consecutive rows without blanks<o:p></o:p>
Column B respectively has the values 1,2,3,6,2<o:p></o:p>
<o:p></o:p>
After the Advanced Filter I would Like the following. <o:p></o:p>
<o:p></o:p>
Column A (Unique Filter): A,B,C<o:p></o:p>
Column B (Average of Values per Unique Filter): 1.5,2,4.5<o:p></o:p>
<o:p></o:p>
I know pivot tables does it better but I want I'd rather do it in an advanced filter so I can add other instructions. <o:p></o:p>
<o:p></o:p>
Thanks! <o:p></o:p>
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi mikerickson,

Thanks for the reply but it seems to only work correctly for the first cell. The forumla I used was =DAVERAGE(Data,5,$A$1:A2). As I drag the forumula downard the respective change would result in =DAVERAGE(Data,5,$A$1:A3) and so on.

If we take the resulting value in B3 ("B" being the column the formula is situated), the "Daverage" would averages all the values attributed to A2 and A3 where I only want each individual one.

So for example X should only have the averages for x and Y should only have the averages for Y. Is there any way to do that?

I hope that makes sense.

Thanks.
 
Upvote 0
One of the drawbacks of DataBase functions is that most criteria ranges don't drag well, since they need at least two rows.
 
Upvote 0
Thanks again for your help. I ended up taking a Sumif and dividing it by a countif and it worked.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top