Sum/Merge only certain duplicates.

wAtcHer1

New Member
Joined
Dec 5, 2014
Messages
8
I apologize if I am not wording this correctly. I am new to this. I am hoping for a VBA that can solve this issue. Currently I am not using one. I normally find VBA’s online to use, I do not write them myself. The system we have at work is Microsoft 365 and we are still running Windows 10 Pro. I have a column/row with duplicate identifiers (SKU) and another column with pricing (EACH). I need to merge the duplicate identifiers that only have the same pricing and leave the duplicate with different pricing in place. My system will not let me download XL2BB so can only provide an image.
 

Attachments

  • 20230517_083738.jpg
    20230517_083738.jpg
    244 KB · Views: 17
I still would like to learn more about Power Query.
check out the Mr Excel Bookstore for a Book By Ken Puls and Miguel Escobar on Power Query
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Another way of looking at creating the uniques and then splitting them out per your sheet:

051923 Sum Spreadsheet.xlsm
ABCDE
1WORK FORMSSKUQTYEACHCOST
215-24" Tinsel Work Wreath Form: Burlap XX7504W42$5.75$11.50
315-24" Tinsel Work Wreath Form: Burlap XX7504W42$5.75$11.50
415-24" Tinsel Work Wreath Form: Burlap XX7504W41$5.75$5.75
515-24" Tinsel Work Wreath Form: Burlap XX7504W43$5.75$17.25
615-24" Tinsel Work Wreath Form: Burlap XX7504W44$6.75$27.00
715-24" Tinsel Work Wreath Form: Lime XX7504371$5.75$5.75
815-24" Tinsel Work Wreath Form: Lime XX7504372$5.75$11.50
915-24" Tinsel Work Wreath Form: Lime XX7504371$5.75$5.75
1015-24" Tinsel Work Wreath Form: Lime XX7504373$5.75$17.25
1115-24" Tinsel Work Wreath Form: Lime XX7504373$6.75$20.25
12
13
14XX7504W45.75
15XX7504W46.75
16XX7504375.75
17XX7504376.75
18
19XX7504W485.75
20XX7504W446.75
21XX75043775.75
22XX75043736.75
Sheet1
Cell Formulas
RangeFormula
E2:E11E2=C2*D2
B14:C17B14=UNIQUE(HSTACK(B2:B11,D2:D11))
B19:B22B19=FILTER(B14#,{1,0})
D19:D22D19=FILTER(B14#,{0,1})
C19:C22C19=SUMIFS($C$2:$C$11,$B$2:$B$11,$B19,$D$2:$D$11,$D19)
Dynamic array formulas.
 
Upvote 0
Thank you for another option. I am currently using your first idea, but also trying to figure out the power query. I have a lot of worksheets with rows of this type of data. Figuring out which will be the best fit.
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,816
Members
449,469
Latest member
Kingwi11y

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