Trying to tally and report number of duplicate items, then delete all but one.

Joined
Jun 22, 2020
Messages
4
Office Version
  1. 2019
  2. 2007
Platform
  1. Windows
Hello Excel gurus,

I have been using Excel since the early 90s and I have absolutely NO idea how to do this. I am getting older and am having a tough time with my memory and concentration. It's not cool.

In the Mini Sheet (shown at the end), there is a "widget" inventory:

Column A is the quantity. (A blank cell indicates 0.)
Column B in the Part #.
Column C is the part description
Column D is the database code for this part.

As you can see, there are duplicate widgets. "Widget 5" has a total of four, and "Widget 8" has a total of three. (Colors are just for quick identification.)

So, what I need to do for each group of duplicates is tally the quantity. For example, since there are four Widget 5's, I need to put a 4 in Column A next to the first listed Widget 5, then delete the rest.

The same for Widget 8.

Deleting duplicates is easy of course, but tallying the number of them BEFORE that happens is what I can't figure out for the life of me.

I don't even know where to begin!

If there is anyone who can help that would be most appreciated and thank you in advance!

I hope I explained this properly (Sometimes I have a hard time putting into words what's in my head.) (That's usually a good thing!) ;)

Mike

The following is the example,

AML Export Tool v01.5.012223.xlsm
ABCD
1QTYPART #DESCRIPTIONdB_ID
2446-0001Widget 1W460001
346-0002Widget 2W460002
446-0003Widget 3W460003
5546-0004Widget 4W460004
646-0005Widget 5W460005
746-0005Widget 5W460005
846-0005Widget 5W460005
946-0005Widget 5W460005
10146-0006Widget 6W460006
1146-0007Widget 7W460007
1246-0008Widget 8W460008
1346-0008Widget 8W460008
1446-0008Widget 8W460008
15346-0009Widget 9W460009
1646-0010Widget 10W460010
XL2BB
 
Last edited by a moderator:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
@Moderator: Thanks for delete that "edit". Can you please just delete this entire thread? Client made some changes and this is no longer accurate.
Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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