简体   繁体   中英

How to calculate the percentage of a column greater than average of column B In Excel?

I have column A as "OS" and column B as "Password not changed", sample data is as below,

在此输入图像描述

I want to calculate the % of different operating systems whose password is greater than average(password not changed days), e. g 33.3 % Linux systems password > 1266 , where 1266 is the average of all the passwords for Linux systems ie AVERAGE(B3,B9,B10)

How can I achieve this in one formula? I tried different formule like =COUNTIF(A2:A18,"> "&AVERAGE(B2:B18)) , but I am not getting expected result and not understanding what should be used? I don't know much of advance excel, can someone please help/guide?

As far as I could understand the question, kindly check if this is what you required -

在此输入图像描述

The formula is - =CONCATENATE(ROUND(COUNTIFS($A$2:$A$11, "*Linux*", $B$2:$B$11, ">"&AVERAGEIF($A$2:$A$11, "*Linux*", $B$2:$B$11))*100/COUNTIF($A$2:$A$11, "*Linux*"), 1), "% Linux systems password > ", ROUND(AVERAGEIF($A$2:$A$11, "*Linux*", $B$2:$B$11), 1))

Change all Linux to Windows as per your requirement.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM