Average with grouping

Kunder, Santhosha SBOBNG-PTIV/ES 86 Reputation points
2023-03-15T04:35:38.3533333+00:00

Please help me achieve the average!

Name Month Sal Average
ABC JAN 2
ABC FEB 4
ABC MAR 6 4
XYZ JAN 5
XYZ FEB 10
XYZ MAR 15 10
Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

Accepted answer
  1. Emi Zhang-MSFT 30,046 Reputation points Microsoft External Staff
    2023-03-15T07:30:35.67+00:00

    Hi @Kunder, Santhosha SBOBNG-PTIV/ES,

    Try this formula:

    =IF(COUNTIF($A$2:A2,A2)=COUNTIF($A$2:$A$7,A2),AVERAGEIF($A$2:$A$7,A2,$C$2:$C$7),"")

    User's image

    Hope it's helpful.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.