How do you count and match conditional data in an Excel table?

Source: Internet
Author: User
Tags count sumif function

How do you count and match conditional data in an Excel table?

1, here still use the last table, you can see the marked area, we will statistics on these areas, the most commonly used function SUM, at this time can be written as "=sum ((a1:e11=" D ") *1)", and then the array operation by Ctrl+shift+enter

2, if you are familiar with other functions, we can also use the Sumproduct function, as shown in the figure. Enter "=sumproduct ((a1:e11=" D ") *1)" To get results directly without the combination of keys

3, can also use the COUNTIF function, in the cell input "=countif" (A1:e11, "=d") "

4, since the COUNTIF can be used, we can use COUNTIFS to statistics, in the following cell input =countifs (A1:E11, "D"), but the feeling of countifs used here some of the overqualified

5, in fact, the actual encounter is more of the following figure in the table, the calculation of the region and the condition region are distinct, we can use the SUMIF function to deal with the conditions and statistical regions. Enter "=SUMIF (k1:k12," D ", l1:l12)", where k1:k12 is the conditional region, L1:L12 is the calculated summation region

6, like to use sumifs shoes can also be used here, but need to pay attention to the statistical area and the conditions of the location and sumif position exactly the opposite, judge the conditions put in the last, in the cell inside the input "=sumifs (l1:l12,k1:k12," D ")"

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.