Can I Do This With This Formula

rockyw

Well-known Member
Joined
Dec 26, 2010
Messages
1,196
Office Version
  1. 2010
Platform
  1. Windows
I want to use this formula =SUMIF(Sheet1!D:D, 100012, Sheet1!C:C) to find a item number, then sum the quantity and return the value. I have some item numbers with variables like, 100012, and 100012A, same number it just adds a letter to the back. Can I have this formula look for several numbers,
=SUMIF(Sheet1!D:D, 100012,100012A,100012B, Sheet1!C:C)

Id like to know before I head in the wrong direction. Thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try this:

=SUMIF(Sheet1!D:D,100012,Sheet1!C:C)+SUMIF(Sheet1!D:D, 100012A,Sheet1!C:C)+SUMIF(Sheet1!D:D,100012B, Sheet1!C:C)
 
Upvote 0
You can also do...

=SUM(SUMIF(Sheet1!D:D,{"100012","100012A","100012B"},Sheet1!C:C))
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,258
Members
452,901
Latest member
LisaGo

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top