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.:)
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Watch MrExcel Video

Forum statistics

Threads
1,122,216
Messages
5,594,886
Members
413,947
Latest member
gizmolucy

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