Results 1 to 7 of 7

Multiple Unique Distinct Lists

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-26-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    682

    Multiple Unique Distinct Lists

    Hi, I wonder whether someone may be able to help me please.

    I've put together some VB code in the attached file which performs the following:

    • From the "All Data" sheet find those cells in column E which contain the Value "DIR".
    • If this is found, create a unique distinct list from the associated values in columns D and B. In addition sum the associated values in column H.
    • Paste this information to the "Expected Direct Activities" sheet.

    I can run the macro and correctly create the unique distinct lists from columns D and B taken from the "All Data" sheet and paste this into the correct columns on the "Expected Direct Activities" sheet.

    The problem I'm having is that code is only taking the first value it finds in column H, rather that totalling all of the associated figures.

    To help illustrate the problem, I've created two 'Destination' sheets:
    • The first is "Current Direct Activities". If you select the button on the "Macros" sheet the script will extract the information and paste to this sheet.
    • The second is "Expected Direct Activities". This shows how the information should look if the macro was working correctly.

    I just wondered whether someone could possible look at this please and let me know where I'm going wrong.

    I am relatively new to VB, and it's taken me a while to get to this stage and understand the code, and I just wondered whether someone may be able to just tweak this code rather than change it completely.

    Many thanks and kind regards
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA Dependent Unique Distinct Lists
    By hobbiton73 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-10-2013, 02:42 PM
  2. Validation Lists - Multiple dependent lists with unique values
    By Lewigi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 06:42 AM
  3. LISTS! identifying unique values in multiple lists
    By pwall1115 in forum Excel General
    Replies: 3
    Last Post: 04-09-2013, 03:36 AM
  4. Replies: 5
    Last Post: 03-13-2012, 06:05 AM
  5. Replies: 1
    Last Post: 03-02-2011, 04:14 PM

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