Excel SUMIF or uses a filter implementation to pick values that contain certain fields, and then add the values on the subsequent column corresponding to those values

Source: Internet
Author: User

Background:

Select the values that contain some fields, and then add the values that correspond to the columns that follow the values. For example, pick the value of all the fields with "MX104" in the table below, and then add the value of the column after it.

Solution:

Randomly choose a A16 this position to record this number, the formula is =SUMIF (a2:a12, "*mx104*",d2:d12), the resulting value is 107784.6, which is the sum of the values of the D column of the cells containing the MX104.

You can also use filters to achieve the same effect:

Add a filter to A1, such as, and then filter MX104 such as

However, it is important to note that although the required values are listed in column D, but not directly sum (D2:D12), and can not drag the mouse to filter out the column D, because he actually add the source data, so the value is not the same as before SUMIF, so this is more troublesome, You have to input =sum (D5+D6+D8=D10 ...) all plus that value is the same as the value obtained in the previous sumif.

Excel SUMIF or uses a filter implementation to pick values that contain certain fields, and then add the values on the subsequent column corresponding to those values

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.