Combine values and SUM duplications - help needed as my way is veeeeerrrrryy slow :(

LORDMARKS

New Member
Joined
Jun 5, 2014
Messages
39
Hi all

I have a large data table in varying size 300 - 6000 rows, 20 columns.

I am trying to sort the data for display purposes, mainly graphs, so I am using..
Code:
Sheets("Data Display").Range("B33:B6033").SpecialCells(xlCellTypeVisible).Copy Destination:=Sheets("Calc").Range("A10000")
and
Code:
Sheets("Calc").Range("O116:O6116").Value = Sheets("Calc").Range("I10000:I16000").Value

(this is just a sample of the lines) to bring the data in and convert to values, but what I need to do is combine two columns and plot againts the third, but at the same time add together any duplicates.

So to explain better... Column A (name) Column B (ref#) Column C (value)

result...Column A (name&ref#) Column C (value)
check...Column A for repeats and total values



I was trying a combination of unique INDEX and SUMIF as a fixed calculation along side the data, but as this appears to be VOLITILE the calculation time is massive!

If anyone has a better suggesetion, please let me know. or if I can do this as part of the code on import?


Thanks As Always.:)
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,983
Messages
5,834,707
Members
430,311
Latest member
JAC0617

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
Top