메인 컨텐츠로 가기

Excel의 여러 기준에 따라 셀 평균을 계산하는 방법은 무엇입니까?

Excel에서 우리 대부분은 COUNTIF 및 SUMIF 함수에 익숙 할 수 있으며 기준에 따라 값을 계산하거나 합계하는 데 도움이 될 수 있습니다. 그러나 Excel에서 하나 이상의 기준을 기반으로 값의 평균을 계산해 본 적이 있습니까?

Averageif 함수가있는 하나의 기준을 기반으로 한 평균 셀

Averageifs 함수를 사용하여 여러 기준을 기반으로 한 평균 셀


화살표 블루 오른쪽 거품 Averageif 함수가있는 하나의 기준을 기반으로 한 평균 셀

다음과 같은 데이터 범위가 있고 A 열이 제품 목록이고 B 열이 주문이라고 가정하면 이제 제품이 KTE 인 주문 셀의 평균을 낼 것입니다.

문서-평균-기준-1

이 공식을 원하는 셀에 입력하십시오. =AVERAGEIF(A2:A19,D2,B2:B19)(A2 : A19 기준을 포함하는 데이터입니다. B2 : B19 평균화하려는 범위를 나타내며 D2 값을 평균화하려는 기준)을 누르고 엔터 버튼 결과를 얻으려면 키, 스크린 샷 참조 :

문서-평균-기준-2


화살표 블루 오른쪽 거품 Averageifs 함수를 사용하여 여러 기준을 기반으로 한 평균 셀

여러 기준으로 평균을 계산하려면 평균 기능이 도움이 될 수 있습니다.

Averageifs 구문은 다음과 같습니다.

AVERAGEIFS (평균 _ 범위, 기준 _ 범위 1, 기준 1, 기준 _ 범위 2, 기준 2…)

  • 평균 _ 범위: 평균 할 셀 범위입니다.
  • 기준_범위1, 기준 _ 범위 2,… 관련 기준을 평가할 범위입니다.
  • 기준 1, 기준 2,… 기준이되는 기준입니다.

예를 들어 위의 데이터를 살펴보면 이제 KTE 주문과 500보다 큰 주문을 평균화하고 싶습니다. 다음과 같이하십시오.

이 공식을 빈 셀에 입력하십시오. =AVERAGEIFS(B2:B19,A2:A19,E1,B2:B19,">500")( A2 : A19 기준 1을 포함하는 데이터입니다. B2 : B19 평균화하려는 범위를 나타냅니다. E1> 500 기준 1 및 기준 2)를 선택한 다음 엔터 버튼 원하는 결과를 얻으려면 키를 누르십시오. 스크린 샷보기 :

문서-평균-기준-3

참고 : 원하는 기준이 두 개 이상있는 경우 다음과 같이 필요한 기준 범위와 기준을 추가하기 만하면됩니다. = AVERAGEIFS (C2 : C19, A2 : A19, F1, B2 : B19, F2, C2 : C19, "<500")(A2 : A19 F1 첫 번째 기준 범위 및 기준입니다. B2 : B19 F2 두 번째 기준 범위 및 기준입니다. C2 : C19<500 있는 제삼 기준 범위 및 기준, C2 : C19 범위를 나타냄 당신 값을 평균화하려면 스크린 샷을 참조하십시오.

문서-평균-기준-4


관련 기사 :

Excel에서 상위 또는 하위 3 개 값을 평균화하는 방법은 무엇입니까?

새 숫자가 입력 될 때 열의 마지막 5 개 값을 평균화하는 방법은 무엇입니까?

Excel에서 5 행 또는 열을 평균화하는 방법은 무엇입니까?

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, I'm trying to create an average only if the row meets criteria in other columns. I need to only include the number in column J if that row has a "B" in column F and a "M" in column E. I've worked out the formula if it's only one condition:

=AVERAGEIF(F2:F114, "B", J2:J114)

But I can't work out how to get it to only average numbers in column J that meet both conditions?
This comment was minimized by the moderator on the site
Hello, Sally
To calculate the average based on multiple criteria, you can apply the AVERAGEIFS function, please use the below formula:
=AVERAGEIFS(J2:J114, F2:F114, "B", E2:E114, "M" )

Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Thanks so much, this worked perfectly!
This comment was minimized by the moderator on the site
What formula would I use if I wanted to get my averages for a month but not count the days that are zero (0)? I am keeping track of my monthly electric usage but need to get an average even before the end of the months. Any ideas or help?
This comment was minimized by the moderator on the site
Hello, TFkidd
To solve your problem, please apply the below formula:
=AVERAGE(IF(B2:B31<>0,B2:B31))
Please try, hope it can help you!
This comment was minimized by the moderator on the site
Hi there
I am trying to calculate percentage of people from across 4 regions (entered in column b)
and percentage by ethnicity (entered in column D)
I can calculate the average age and percentage of ages, but I can't seem to find a formula to calculate the regions and ethnicity. Any suggestions would be appreciated, thanks Tracy
This comment was minimized by the moderator on the site
To get an average of data in a column with multiple criteria the following formulae may be used.

Syntax = AVERAGEIFS (Range, Range 1, criteria 1, range 2, criteria 2)

In this case, my requirement is to find the average of the data in a range of numbers, without considering '0 - Zero' & values greater that '3000'.

Total data in the range is 31 nos ,

And the formulae will be

=AVERAGEIFS(G5:G35,G5:G35, "> 3000", G5:G35,"<>0")
This comment was minimized by the moderator on the site
I have 4 variables: 1st: Date of onset, 2nd: Date of termination, 3rd: Date of measurement, 4th: measurement. I want to calculate the average of the 4th variable between each period of onset-termination. How can i do it? I think its a bit tricky. Each date of onset has an counterpart date of termination. The same applies for the 3rd and 4th variable.
How can i make this happen?
This comment was minimized by the moderator on the site
VBA code to average one or more ranges of nonzero numbers:


Option Explicit
Function avgNonZeros(ParamArray rangeList() As Variant) As Variant
'Returns the average for all nonzeros of rangeList.
'rangeList may be one or multiple ranges.
Dim cell As Range
Dim i As Long
Dim totSum As Long
Dim cnt As Long
DoEvents 'allows calculations prior to performing
avgNonZeros = 0 'default return
For i = LBound(rangeList) To UBound(rangeList)
For Each cell In rangeList(i)
If cell <> 0 Then
totSum = totSum + cell
cnt = cnt + 1
End If
Next cell
Next i
If cnt <> 0 Then avgNonZeros = totSum / cnt
End Function
This comment was minimized by the moderator on the site
Hi,
I have 200 observations. I need to get an average of 21st to 40th observations. I am struggling to set an averageif formula. Any suggestion will be appreciated.
This comment was minimized by the moderator on the site
I have a similar problem like example #3, but the difference is that I need the average between two dates instead of for a single month. Any suggestion?
This comment was minimized by the moderator on the site
Hello, Crist,

To solve your problem, please apply the below formula:
=AVERAGEIFS(C2:C15, A2:A15, F1, B2:B15, ">=" &F2, B2:B15, "<=" &G2, C2:C15, ">300")

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Hi there,


My is Pablo and I would like to ask you about this situation. I have got a column with several values and some of them are zeros. As they are dB measurements this is the array formula I use to get the average: =10*LOG(AVERAGE(10^(C3:C66/10)))

My problem is that I am trying to get with a formula that does not take in account the zeros.

I have tried the next formula but it seems that does not work for my situation: =10*LOG(AVERAGEif(C3:C66,"<>0",[10^(C3:C66/10)]))

It would be very apprecited if you could give me a hint to solve this problem.

Thank you in advance,

Pablo.
This comment was minimized by the moderator on the site
I want to take numbers in multiple columns and combine them into one average. I have three columns to average, I want two of the columns to count for 40% each and the remaining column to count for 20%. Is this possible? Thanks!
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations