Results 1 to 9 of 9

Sum values in one column based on unique values in another

Threaded View

  1. #1
    Registered User
    Join Date
    07-11-2011
    Location
    sydney, australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Sum values in one column based on unique values in another

    Hi,

    I'll get right into it:

    I have the following data which is a small sample from a large pool that constantly changes:

    Column A Column B
    1 156234
    2 178292
    2 34023
    3 10934
    4 156705

    I need to get it to look like this:

    Column D Column E
    1 156234
    2 212315
    3 10934
    4 156705

    I need to use VBA arrays to attain the unique values from column A and sum Column B accordingly. I have used PivotTables previously, but given the data constantly changes i thought VBA Arrays would be best suited to make it efficient as excel formulas take sometime to calculate with 30,000+ records.


    Thanks for you help.

    Regards
    Deepak
    Last edited by deepak1987; 07-11-2011 at 07:38 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1