SUMIF Using Text Criteria & Wildcards in Microsoft Excel

To calculate the total of the values for some codes, we can use SUMIF function with wildcards to find the output.

Let us understand with an example:

In column A, we have some codes starting from similar pattern & then assign unique code to each cell. We want a formula to derive the sum based on the codes from values in column B.
img1

In above snapshot, we want to calculate the total of first three codes & last three codes.

Here, you can see that there is some similarity in every code i.e. “123abc” after that the number is assigned to make code unique.

To find the total of first three numbers, the formula would be =SUMIF(A2:A8,”123abc1*”,B2:B8)

img2

To get the total for the last 3 codes, the formula would be =SUMIF(A2:A8,”123abc2*”,B2:B8)

img3

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Visit Us On TwitterVisit Us On FacebookVisit Us On Google PlusVisit Us On Youtube