COUNTIF * Quantities

jrevard

New Member
Joined
Mar 26, 2011
Messages
17
Hello,

I have a sheet that has a column of numbers, many of them repeated within this column. In another column I am counting the number of occurrences of each number within the first column. Working well.

I have another column in between these columns that has a quantity. That is, a number may appear more than once in the first column AND may have multiple occurrences within that single row. I need to know the total number of occurrences of a number times each quantity (sometimes quantity is 1 of course).

Cat out of the bag: These are part numbers and quantities on multiple orders. I need to count the number of times an item has appeared in a given range, and how many times for each order.

I hope I have been clear, please reply if clarification is needed. Any help is appreciated.

Thanks!!

jrevard
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try:

ABCDEF
1a11a1421
2b22b2316
3a13c3213
4c34d415
5d45
6b26
7a17
8b28
9c39
10a110

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
E1=COUNTIF(A:A,D1)
F1=SUMIF(A:A,D1,B:B)

<tbody>
</tbody>

<tbody>
</tbody>


If you're looking at a specific range, you can change the whole column references in the formulas to the range you want. Hope this helps.
 
Last edited:
Upvote 0
Awesome! I think you fixed it. Just so I understand your answer: "Use SUMIF() rather than COUNTIF()." Let me know if I misunderstood. Thanks!

e^4 - e = 51.88
 
Upvote 0
Correct! SUMIF should tell you the total for each part.


Incidentally, I've had that avatar for over 2 years, and you're the first person who's mentioned it! Don't forget the bars on the left and right, which essentially mean: round up to the next integer. :biggrin:
 
Upvote 0
Cool!! I don't know how I've never seen those bars before...:confused:

Thanks for the help, made my day and super glad I didn't need VBA.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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