Перейти к основному содержанию

Как рассчитать процентное соотношение «да» и «нет» из списка в Excel?

Как можно рассчитать процентное соотношение «да» и «нет» текста из списка ячеек диапазона на листе Excel? Возможно, эта статья поможет вам разобраться с поставленной задачей.

Вычислить процентное соотношение «да» и «нет» из списка ячеек с помощью формулы


Вычислить процентное соотношение «да» и «нет» из списка ячеек с помощью формулы

Чтобы получить процентное содержание определенного текста из списка ячеек, вам может помочь следующая формула, сделайте следующее:

1. Введите эту формулу: =COUNTIF(B2:B15,"Yes")/COUNTA(B2:B15) в пустую ячейку, в которой вы хотите получить результат, а затем нажмите Enter в десятичное число, см. снимок экрана:

док за да 1

2. Затем вы должны изменить этот формат ячейки на процент, и вы получите нужный результат, см. Снимок экрана:

док за да 2

Заметки:

1. В приведенной выше формуле ,B2: B15 это список ячеек, содержащих конкретный текст, для которого нужно вычислить процент;

2. Чтобы рассчитать процент отсутствия текста, просто примените эту формулу: =COUNTIF(B2:B15,"No")/COUNTA(B2:B15).

док за да 3

Лучшие инструменты для офисной работы

🤖 Kutools AI Помощник: Революционный анализ данных на основе: Интеллектуальное исполнение   |  Генерировать код  |  Создание пользовательских формул  |  Анализ данных и создание диаграмм  |  Вызов функций Kutools...
Популярные опции: Найдите, выделите или определите дубликаты   |  Удалить пустые строки   |  Объедините столбцы или ячейки без потери данных   |   Раунд без формулы ...
Супер поиск: Множественный критерий VLookup    VLookup с несколькими значениями  |   VLookup по нескольким листам   |   Нечеткий поиск ....
Расширенный раскрывающийся список: Быстрое создание раскрывающегося списка   |  Зависимый раскрывающийся список   |  Выпадающий список с множественным выбором ....
Менеджер столбцов: Добавить определенное количество столбцов  |  Переместить столбцы  |  Переключить статус видимости скрытых столбцов  |  Сравнить диапазоны и столбцы ...
Рекомендуемые функции: Сетка Фокус   |  Просмотр дизайна   |   Большой Формулный Бар    Менеджер книг и листов   |  Библиотека ресурсов (Авто текст)   |  Выбор даты   |  Комбинировать листы   |  Шифровать/дешифровать ячейки    Отправлять электронные письма по списку   |  Суперфильтр   |   Специальный фильтр (фильтровать жирным шрифтом/курсивом/зачеркиванием...) ...
15 лучших наборов инструментов12 Текст Инструменты (Добавить текст, Удалить символы, ...)   |   50+ График Тип (Диаграмма Ганта, ...)   |   40+ Практических Формулы (Рассчитать возраст по дню рождения, ...)   |   19 Вносимые Инструменты (Вставить QR-код, Вставить изображение из пути, ...)   |   12 Конверсия Инструменты (Числа в слова, Конверсия валюты, ...)   |   7 Слияние и разделение Инструменты (Расширенные ряды комбинирования, Разделить клетки, ...)   |   ... и более

Улучшите свои навыки работы с Excel с помощью Kutools for Excel и почувствуйте эффективность, как никогда раньше. Kutools for Excel предлагает более 300 расширенных функций для повышения производительности и экономии времени.  Нажмите здесь, чтобы получить функцию, которая вам нужна больше всего...

Описание


Вкладка Office: интерфейс с вкладками в Office и упрощение работы

  • Включение редактирования и чтения с вкладками в Word, Excel, PowerPoint, Издатель, доступ, Visio и проект.
  • Открывайте и создавайте несколько документов на новых вкладках одного окна, а не в новых окнах.
  • Повышает вашу продуктивность на 50% и сокращает количество щелчков мышью на сотни каждый день!
Comments (19)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
i'm trying to use this formula, but some how it keeps gettings stuck on the dividing part.
=AANTAL.ALS(K3:K85;"yes")/AANTALARG(K3:K85,"yes")

AANTAL.ALS= COUNTIF
AANTALARG= COUNTA
what is wrong with the formula?
This comment was minimized by the moderator on the site
I am want to use a function that calculate a rate of 1 to 5 using a percentage of each cell if the answer is yes. Rate = (country x 25%)+(role x 25%) + (age x 25%) + ( risk x 25%)
This comment was minimized by the moderator on the site
Hello,

I am looking to get a percentage of cells populated in a column. I have built a tracking sheet for a project where associates will enter their initials into the cells to show they have completed that task. I would like to show a percentage of tasks completed if that makes sense?

Thanks,
This comment was minimized by the moderator on the site
Hi Mandy,

How do you use this formula =COUNTIF(B2:B15,"Yes")/COUNTA(B2:B15)

But to fetch data across multiple Sheets? For example I am looking for the word 'Yes' in a second sheet and third sheet but would like to populate the result on the first sheet.

Thank
Jas
This comment was minimized by the moderator on the site
Hello, Jas
If you want to get the percentage of Yes from multiple sheets, may be the below formula can help you:

=(COUNTIF(Sheet2!B2:B15,"Yes")+COUNTIF(Sheet3!B2:B15,"Yes"))/(COUNTA(Sheet2!B2:B15)+COUNTA(Sheet3!B2:B15))

But, if you just need to put the result in another sheet, please apply the below formula:
=COUNTIF(Sheet2!B2:B15,"Yes")/COUNTA(Sheet2!B2:B15)

Please have a try, hope it can help you! If you have any other question, please comment here.
This comment was minimized by the moderator on the site
Team Outcome
1 Won
2 lost
4 lost
5 lost
6 Won


=COUNTIF(Table1[[#Headers],[Outcome]],"Lost")/COUNTA(Table1[[#Headers],[Outcome]])

Why does this not work using the Tables parameters ?
This comment was minimized by the moderator on the site
Forgot to mention, this returns 0 no matter the data
This comment was minimized by the moderator on the site
Hello, Dan,
As you said, the formula does not work correctlly in a table format, so, you need to use it in a normal range. Please don't put the formula next to the table, locate it beyond the table, as below screenshot shown:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/lost-percentage.png

Please try, hope it can help you!
This comment was minimized by the moderator on the site
gracias, me sirvió la formula para calcular el % de SI y NO
Rated 5 out of 5
This comment was minimized by the moderator on the site
How do you use the countif when you are trying 3 different criteria to equal a percentage.
Yes/No/NA
NA- should not impact the total combined percentage of Yes/No Answers. Using as an excel audit tool.

=IF(A23="","",COUNTIF(E23:I23,"Yes")/(COUNTIF(E23:I23,"Yes")+COUNTIF(E23:I23,"NO")))

This formula is still decreasing total score when N/A is selected in cell.
This comment was minimized by the moderator on the site
Hello Brandy,
Thanks for your message. In B1:B10, there are 3 different data: Yes/No/NA. To calculate the percentage of the number of Yes of the total number of Yes and No, please input the formula: =IF(B1="","",COUNTIF(B1:B10,"Yes")/(COUNTIF(B1:B10,"Yes")+COUNTIF(B1:B10,"NO"))). You will get the correct result.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
this worked HOWEVER, when I do a sort the % does not change with the sorted data. How can I get the % to change when I sort?
This comment was minimized by the moderator on the site
Hello Nataile,
Glad to help. When you sort the data, you need to change the range in the Countif formula to absolute. Otherwise, the results will be wrong. For example, the first formula in the artical should be changed to: =COUNTIF($B$2:$B$15,"Yes")/COUNTA(B2:B15) . Please have a try.

Sincerely,
Mandy
This comment was minimized by the moderator on the site
Trying to find a way to use the function

=COUNTIF(F3:F17,F21:F35,P3:P17,P21:P35,F39:F53,P39:P53,Z3:Z17,Z21:Z35,Z39:Z53,AJ3:AJ17,AJ21:AJ35,AJ39:AJ53,"No")/COUNTA(F3:F17,F21:F35,P3:P17,P21:P35,F39:F53,P39:P53,Z3:Z17,Z21:Z35,Z39:Z53,AJ3:AJ17,AJ21:AJ35,AJ39:AJ53)
However, it says I can only have 2 arguments. Is there another function I have to use for this many ranges?

Any help is much appreciated!
This comment was minimized by the moderator on the site
Bonjour,

En utilisant votre formule j'arrive a une erreur et rien n'apparait est-ce normal ? d'autant plus que j'ai bien entré la formule ..
Pouvez vous m'aider svp ?
Merci
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