Excel Formula Explanation Required

ChrisClark

New Member
Joined
Dec 27, 2015
Messages
2
Hi All,

I have been asked to explain the following formula:

=IF($C22=$C21, "", AVERAGEIF($C:$C,$C22,D:D))

If anyone could break down what this formula is calculating, I would be very grateful.

Thanks
 
=AVERAGEIF($C:$C,$C22,D:D)

This is averaging cell values in column D where the corresponding cell in column C is equal to C22.

=IF($C22=$C21, "", ...))

This is looking at cell C22 and checking if it is equal to C21, and if it is, the formula returns a blank. If it isn't, the AVERAGEIFS calculation is performed.
 
Last edited:
Upvote 0

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