Note: The other languages of the website are Google-translated. Back to English
Vpiši se  \/ 
x
or
x
Registracija  \/ 
x

or

Kako povprečiti celice na podlagi več meril v Excelu?

V Excelu večina od nas morda pozna funkcije COUNTIF in SUMIF, lahko nam pomagajo pri štetju ali seštevanju vrednosti na podlagi meril. Ali ste kdaj poskusili izračunati povprečje vrednosti na podlagi enega ali več meril v Excelu?

Povprečje celic na podlagi enega merila s funkcijo Averageif

Povprečje celic na podlagi več meril s funkcijo Averageifs


puščica modri desni mehurček Povprečje celic na podlagi enega merila s funkcijo Averageif

Recimo, da imam naslednji obseg podatkov, stolpec A je seznam izdelkov, stolpec B pa naročila, zdaj bom povprečil celice naročil, kjer je izdelek KTE.

doc-avergae-z-merili-1

Vnesite to formulo v želeno celico: =AVERAGEIF(A2:A19,D2,B2:B19)(A2: A19 so podatki, ki vsebujejo merila, B2: B19 se nanaša na obseg, ki ga želite povprečiti in D2 je merilo, na podlagi katerega želite povprečne vrednosti), in pritisnite Vnesite tipko, da dobite rezultat, glejte sliko zaslona:

doc-avergae-z-merili-2


puščica modri desni mehurček Povprečje celic na podlagi več meril s funkcijo Averageifs

Če želite izračunati povprečje z več merili, se Povprečni ifs funkcija vam lahko pomaga.

Sintaksa Averageifs je naslednja:

AVERAGEIFS (povprečni_obseg, obseg_obsega1, kriterij1, obseg_kriterij2, kriterij2 ...)

  • Povprečni_razpon: je povprečni obseg celic;
  • Kriterij_razpon1, obseg_obsega2, ... so obsegi, v katerih je treba ovrednotiti povezana merila;
  • Merila1, merila2, ... so merila, na katerih temeljiš.

Za primer vzemimo zgornje podatke, zdaj želim povprečiti vrstni red KTE in vrstni red, večji od 500. Prosimo, storite tako:

Vnesite to formulo v prazno celico: =AVERAGEIFS(B2:B19,A2:A19,E1,B2:B19,">500")( A2: A19 je podatek, ki vsebuje merila1, B2: B19 se nanaša na obseg, ki ga želite povprečiti, E1 in > 500 so merila1 in merila 2), nato pritisnite Vnesite tipko, da dobite želeni rezultat. Oglejte si posnetek zaslona:

doc-avergae-z-merili-3

Opomba: Če imate več kot dva merila, ki jih želite, morate le dodati obsege meril in kriterije, ki jih potrebujete kot ta: = AVERAGEIFS (C2: C19, A2: A19, F1, B2: B19, F2, C2: C19, "<500")(A2: A19 in F1 so prvi obseg meril in merila, B2: B19 in F2 so drugi obseg meril in merila, C2: C19 in <500 sta Tretji obseg meril in merila, C2: C19 se nanaša na obseg jo želite povprečne vrednosti), si oglejte posnetek zaslona:

doc-avergae-z-merili-4


Sorodni članki:

Kako povprečiti zgornje ali spodnje 3 vrednosti v Excelu?

Kako povprečiti zadnjih 5 vrednosti stolpca kot nove številke?

Kako povprečiti vsakih 5 vrstic ali stolpcev v Excelu?


Najboljša orodja za pisarniško produktivnost

Kutools za Excel rešuje večino vaših težav in poveča produktivnost za 80%

  • Ponovna uporaba: Hitro vstavite zapletene formule, grafikoni in vse, kar ste že uporabljali; Šifriraj celice z geslom; Ustvari poštni seznam in pošiljanje e-pošte ...
  • Vrstica Super Formula (enostavno urejanje več vrstic besedila in formule); Bralna postavitev (enostavno branje in urejanje velikega števila celic); Prilepite v filtrirani obseg...
  • Združi celice / vrstice / stolpce brez izgube podatkov; Vsebina razdeljenih celic; Združi podvojene vrstice / stolpce... prepreči podvojene celice; Primerjaj obsege...
  • Izberite Duplicate ali Unique Vrstice; Izberite prazne vrstice (vse celice so prazne); Super Find in Fuzzy Find v mnogih delovnih zvezkih; Naključna izbira ...
  • Natančna kopija Več celic brez spreminjanja sklica formule; Samodejno ustvarjanje referenc na več listov; Vstavi oznake, Potrditvena polja in še več ...
  • Izvleček besedila, Dodaj besedilo, Odstrani po položaju, Odstrani presledek; Ustvari in natisni vmesne seštevke strani Pretvarjanje med vsebino celic in komentarji...
  • Super filter (shranite in uporabite sheme filtrov za druge liste); Napredno razvrščanje glede na mesec / teden / dan, pogostost in drugo; Poseben filter s krepko, ležeče ...
  • Združite delovne zvezke in delovne liste; Spoji tabele na podlagi ključnih stolpcev; Razdelite podatke na več listov; Paketna pretvorba xls, xlsx in PDF...
  • Več kot 300 zmogljivih funkcij. Podpira Office / Excel 2007-2019 in 365. Podpira vse jezike. Preprosta namestitev v vašem podjetju ali organizaciji. Vse funkcije 30-dnevnega brezplačnega preskusa. 60-dnevno jamstvo za vračilo denarja.
zavihek kte 201905

Kartica Office prinaša vmesnik z zavihki v Office in poenostavi vaše delo

  • Omogočite urejanje in branje z zavihki v Wordu, Excelu, PowerPointu, Publisher, Access, Visio in Project.
  • Odprite in ustvarite več dokumentov v novih zavihkih istega okna in ne v novih oknih.
  • Poveča vašo produktivnost za 50% in vsak dan zmanjša na stotine klikov z miško!
dno pisarniške mize
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Jenin J · 9 months ago
    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")
  • To post as a guest, your comment is unpublished.
    La · 11 months ago
    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?
  • To post as a guest, your comment is unpublished.
    Mark Main · 11 months ago
    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
  • To post as a guest, your comment is unpublished.
    Lutfur · 1 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Crist · 1 years ago
    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?
    • To post as a guest, your comment is unpublished.
      skyyang · 1 years ago
      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!
  • To post as a guest, your comment is unpublished.
    pablo · 2 years ago
    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.
  • To post as a guest, your comment is unpublished.
    Stephanie · 3 years ago
    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!
  • To post as a guest, your comment is unpublished.
    ch · 3 years ago
    I want to average cells is those cells are between a range.
    If A is between range 1 & range 2, average value in B. What formula would I use?
    Ex.
    A B Range 1 Range 2
    $78,093 651,462 55001 60000
    $76,968 636,679
    $76,946 1,682,295
    $73,909 142,277
    $73,567 624,257
    $71,505 492,828
    $67,772 351,316
    $63,786 458,169
    $63,263 157,665
    $58,427 180,498
    $56,693 187,028
    $56,510 73,339
    $56,129 80,832

    Thanks for any help.
  • To post as a guest, your comment is unpublished.
    Jackie · 4 years ago
    7
    $3.00
    20
    $40.00
    3
    $6.00
    0
    $-
    MY AVERAGE FOR CELL B3,B5,B7,B9 SHOULD BE 10
    MY COUNT FOR CELL B3,B5,B7,B9 SHOULD BE 3

    How do I get averages for specific cells excluding zero