+ Reply to Thread
Results 1 to 3 of 3

Trying to aggregate numbers in VBA

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Trying to aggregate numbers in VBA

    I'm sure this is simple but I can't get it to work.

    I have a series of numbers in cols A and E as below
    A B C D E F

    1028586 B Current E 1000111000001101 1028586
    1008928 B Discont 1000511000001105 1008928
    1008929 B Discont 1000511000001105 1008928
    1008930 B Discont E 1000511000001105 1008928
    1029734 B Discont E 1000611000001109 1029734
    1000712 B Current E 1000711000001100 1000712
    1010520 B Discont E 1000811000001108 1010520
    1013190 G Discont E 1001011000001106 1013190
    1003871 B Discont 1001211000001101 1003871
    1011226 B Discont E 1001211000001101 1003871
    1018719 G Discont 1001411000001102 1018719
    1001709 B Discont 1001411000001102 1018719
    1018709 B Discont 1001411000001102 1018719
    1020084 B Discont E 1001411000001102 1018719

    What I want to do using VBA is to put the number in col A into col F, but if the number in col E is duplicated, then the number drawn from col A should also be duplicated as per the above example.

    Overall there are 30,000+ rows in use!!

    I would be grateful for any help you can offer.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: Trying to aggregate numbers in VBA

    Hello Pianoman23,

    Here's a suggestion:

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    06-18-2014
    Location
    Milton Keynes, England
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Trying to aggregate numbers in VBA

    Excellent. Thank you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Aggregate error
    By giscosta_br in forum Excel General
    Replies: 1
    Last Post: 05-24-2016, 07:46 AM
  2. Replies: 6
    Last Post: 01-05-2015, 10:21 PM
  3. Functions-help for aggregate tab
    By kmsoni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2011, 03:10 AM
  4. Best way to aggregate?
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2009, 04:38 PM
  5. Weighting Random Numbers in Aggregate
    By coinbank in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 12-10-2008, 05:18 PM
  6. how to calculate aggregate numbers based on a certain criteria
    By Sheki in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2007, 01:47 AM
  7. how do I aggregate dates
    By Johnopp in forum Excel General
    Replies: 6
    Last Post: 03-05-2006, 06:26 PM

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