# Criteria in column A to sum results in column B

#### dmoore86088

##### New Member
Hello team!

I have a massive list of equipment that is broken down into several areas. In column "A" are areas, column "B" has the equipment code and in column "C" are the quantities of that piece of equipment. I'm trying to sum the values in column "C" IF the equal a specific equipment code in column "B". I can't seem to find the correct syntax for "IF" column B = xyz, then sum what's in column "C".

Any suggestions?

Many thanks!

### Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
That is:

=SUMIF(B:B,"="&"xyz",C:C)

The criterion can be replaced with the addres of a cell that houses it.

Try: =SUMIF(B1:B10,"xyz",C1:C10)

Hmmm.... typed it in exactly, and got a result of - 0 -. which is an improvement since I was getting the dreaded N/A result! Thanks, can you suggest a refinement?

Hmmm.... typed it in exactly, and got a result of - 0 -. which is an improvement since I was getting the dreaded N/A result! Thanks, can you suggest a refinement?

Perhaps...

=SUMIF(B:B,"*xyz*",C:C)

Tried this one, got - 0 - as well.......tricky one huh?

Tried this one, got - 0 - as well.......tricky one huh?

Now you badly need to provide a sample along with a criterion for which a sum must be obtained...

Replies
5
Views
543
Replies
15
Views
2K
Replies
1
Views
1K
Replies
4
Views
938
Replies
13
Views
2K

1,203,174
Messages
6,053,924
Members
444,694
Latest member
JacquiDaly

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back