Forum Discussion

Nettie_1810's avatar
Nettie_1810
Copper Contributor
Nov 22, 2022
Solved

Excel Formula

Can anyone help me with a formula?  I've inherited one but it doesn't work & I'm pulling my hair out.

 

I am trying to calculate the Avg.ValueofUsers.Per.Count -Example below

  ValueUsers
  2758
  2506
  3950220
  46515
  186044
  70018
  150030
  42412
  189055
  3006
  2406
  3208
  153338
  165033
  4059
  57510
  5008
  4158
  49515
  180355
  19550604
    
Criteria CountAvg.User.Per.Count????
>2500 1 
>=500 <=2500 9 
<500 10 
  • Nettie_1810 

    In D25:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,">2500")/SUMIFS($D$2:$D$22,$C$2:$C$22,">2500")

    In D26:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,">=500",$C$2:$C$22,"<=2500")/SUMIFS($D$2:$D$22,$C$2:$C$22,">=500",$C$2:$C$22,"<=2500")

    In D27:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,"<500")/SUMIFS($D$2:$D$22,$C$2:$C$22,"<500")

  • Patrick2788's avatar
    Patrick2788
    Silver Contributor

    Nettie_1810 

    Another approach to obtaining the counts is to use FREQUENCY.  Versions of Excel supporting dynamic arrays may enter it as is and Excel will calculate.  Older versions must input the formula as a multi-cell array: select three cells, input formula, ctrl+shift+enter.

     

    =FREQUENCY(C2:C22,F2:F3)

     

  • Nettie_1810 

    In D25:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,">2500")/SUMIFS($D$2:$D$22,$C$2:$C$22,">2500")

    In D26:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,">=500",$C$2:$C$22,"<=2500")/SUMIFS($D$2:$D$22,$C$2:$C$22,">=500",$C$2:$C$22,"<=2500")

    In D27:

    =SUMIFS($C$2:$C$22,$C$2:$C$22,"<500")/SUMIFS($D$2:$D$22,$C$2:$C$22,"<500")

    • Nettie_1810's avatar
      Nettie_1810
      Copper Contributor
      Hi Hans, many thanks for that - although I am trying to get the Average Value per count based on criteria in one formula

Resources