انتقل إلى المحتوى الرئيسي

كيفية حساب متوسط ​​الخلايا بناءً على معايير متعددة في Excel؟

في Excel ، قد يكون معظمنا على دراية بوظائف COUNTIF و SUMIF ، ويمكنهما مساعدتنا في حساب أو جمع القيم بناءً على المعايير. ولكن هل سبق لك أن حاولت حساب متوسط ​​القيم بناءً على معيار واحد أو أكثر في Excel؟

متوسط ​​الخلايا استنادًا إلى معيار واحد مع وظيفة Averageif

متوسط ​​الخلايا على أساس معايير متعددة مع وظيفة المتوسطات


السهم الأزرق الحق فقاعة متوسط ​​الخلايا استنادًا إلى معيار واحد مع وظيفة Averageif

لنفترض أن لدي نطاق البيانات التالي ، العمود A هو قائمة المنتج والعمود B هو الطلبات ، الآن ، سأقوم بتوسيط خلايا الطلب حيث يكون المنتج KTE.

doc-avergae مع المعايير 1

الرجاء إدخال هذه الصيغة في الخلية التي تريدها: =AVERAGEIF(A2:A19,D2,B2:B19)، (A2: A19 هي البيانات التي تحتوي على المعايير ، B2: B19 يشير إلى النطاق الذي تريد متوسطه و D2 هو المعيار الذي تريد حساب متوسط ​​القيم بناءً عليه) ، ثم اضغط أدخل مفتاح للحصول على النتيجة ، انظر لقطة الشاشة:

doc-avergae مع المعايير 2


السهم الأزرق الحق فقاعة متوسط ​​الخلايا على أساس معايير متعددة مع وظيفة المتوسطات

إذا كنت تريد حساب المتوسط ​​بمعايير متعددة ، فإن متوسط قد تساعدك الوظيفة.

صيغة 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) ، ثم اضغط أدخل مفتاح للحصول على النتيجة التي تريدها. انظر لقطة الشاشة:

doc-avergae مع المعايير 3

ملحوظة: إذا كان لديك أكثر من معيارين تريدهما ، فأنت تحتاج فقط إلى إضافة نطاقات المعايير والمعايير التي تحتاجها على النحو التالي: = AVERAGEIFS (C2: C19، A2: A19، F1، B2: B19، F2، C2: C19، "<500")، (A2: A19 و F1 هي مجموعة المعايير والمعايير الأولى ، B2: B19 و F2 هي النطاق والمعايير الثانية للمعايير ، C2: C19 و <500 هي ثلث نطاق المعايير والمعايير ، C2: C19 يشير إلى النطاق لصحتك! تريد متوسط ​​القيم) ، انظر الصورة:

doc-avergae مع المعايير 4


مقالات ذات صلة:

كيفية حساب متوسط ​​أعلى أو أسفل 3 قيم في إكسيل؟

كيف يتم متوسط ​​آخر 5 قيم للعمود كأرقام جديدة تدخل؟

كيفية حساب متوسط ​​كل 5 صفوف أو أعمدة في إكسيل؟

أفضل أدوات إنتاجية المكتب

🤖 مساعد Kutools AI: إحداث ثورة في تحليل البيانات على أساس: التنفيذ الذكي   |  إنشاء التعليمات البرمجية  |  إنشاء صيغ مخصصة  |  تحليل البيانات وإنشاء الرسوم البيانية  |  استدعاء وظائف Kutools...
الميزات الشعبية: البحث عن التكرارات أو تمييزها أو تحديدها   |  حذف الصفوف الفارغة   |  دمج الأعمدة أو الخلايا دون فقدان البيانات   |   جولة بدون صيغة 
سوبر بحث: معايير متعددة VLookup    VLookup ذات القيمة المتعددة  |   VLookup عبر أوراق متعددة   |   بحث غامض ....
قائمة منسدلة متقدمة: إنشاء القائمة المنسدلة بسرعة   |  القائمة المنسدلة التابعة   |  قائمة منسدلة متعددة التحديد ....
مدير العمود: إضافة عدد محدد من الأعمدة  |  نقل الأعمدة  |  تبديل حالة رؤية الأعمدة المخفية  |  مقارنة النطاقات والأعمدة 
الميزات المميزة: التركيز على الشبكة   |  عرض تصميم   |   شريط الفورمولا الكبير    مدير المصنفات والأوراق   |  مكتبة الموارد (النص السيارات)   |  منتقي التاريخ   |  اجمع أوراق العمل   |  تشفير/فك تشفير الخلايا    إرسال رسائل البريد الإلكتروني عن طريق القائمة   |  سوبر تصفية   |   مرشح خاص (تصفية غامق / مائل / يتوسطه خط ...) ...
أفضل 15 مجموعة أدوات12 نص الأدوات (إضافة نص, إزالة الأحرف، ...)   |   +50 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى Office ، ويجعل عملك أسهل بكثير

  • تمكين التحرير والقراءة المبوبة في Word و Excel و PowerPointوالناشر والوصول و Visio والمشروع.
  • فتح وإنشاء مستندات متعددة في علامات تبويب جديدة من نفس النافذة ، بدلاً من النوافذ الجديدة.
  • يزيد من إنتاجيتك بنسبة 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