Excel calculates the number of men and women

Source: Internet
Author: User
Tags first row

Suppose, a column of data, save is male or female such sex, below, how can calculate the number of men and women?

Suppose the data range for saving men and women information is: A1:A12 then:

① Calculate male other numbers

=countif (A1:a12, "male")

Use the general formula above to calculate the number of men.

② calculate the number of women in other

=countif (A1:a12, "female")

Use the general formula above to calculate the number of women.

The above two scenarios are common methods of calculation. Use the more flexible formula below.

=countif (a:a, "male")

=countif (a:a, "female")

These two situations, more flexible, because only need to enter the gender in column A, no matter how many rows of data, can be accurate statistics, do not need to specify the scope of the statistics.

Another method is to use the method of filtering, the specific use of the following methods:

First select any cell that has content in column A, then click on the menu "data" → "Filter" → "AutoFilter", which will be in the first row of content there, a Drop-down combo box, click to expand it, found in the inside "Custom", pop-up dialog box.

In the dialog box, display the following selection "equals" in the row, and on its right there, enter male or female, finally, click the "OK" button to exit, you can filter out the data of men or women, this time, in the status bar position, you can see "in the first few records to find X records" of the words, this is the number of statistics.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.