+ Reply to Thread
Results 1 to 3 of 3

VBA multiple select

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Hengelo, the Netherlands
    MS-Off Ver
    2010
    Posts
    1

    VBA multiple select

    Goodmorning,

    I have a challenge which I am at a loss to solve.

    I have a set of date in which I need to do calculations for a management report.
    The dataset consist op multiple columns, eg:

    Name Filled
    Doc1 yes
    Doc1 yes
    Doc1 no
    Doc2 yes
    Doc3 no
    Doc3 no

    from the first column I need to get a list of unique names, solved this with:
    For i = 1 To TotUni
    Range("O" & i + 1) = WorksheetFunction.CountIf(Range("I2", Range("I" & Rows.count).End(xlUp)), Range("N" & i + 1))
    Next i

    However, I need for each unique name the total filled yes.

    End result should be as:
    Name #yes
    Doc1 2
    Doc2 1
    Doc3 0

    Please help.
    Last edited by Leon_e_t; 03-23-2016 at 05:39 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: VBA multiple select

    Pivot table vs macro:
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VBA multiple select

    Leon_e_t, welcome to the forum! In future posts please use code tags to display VBA as required by the rules. Below code works in my test. Please refer to the comments in the code. If you have additional questions let me know.
    Please Login or Register  to view this content.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

+ 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. Select a cell at random based on multiple selection criteria across multiple sheets.
    By scottyms in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2016, 09:44 AM
  2. How to change from single select value to multiple select?
    By trade-market in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-04-2015, 10:11 AM
  3. [SOLVED] How to Deselect Multiple Ranges on Multiple Sheets After Select & Clear
    By catnam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-20-2014, 02:12 PM
  4. omit menu items via data validation for multiple selections and multiple menus when select
    By themattyp503 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-03-2014, 12:16 AM
  5. [SOLVED] Select multiple cells with lowest number from multiple rows
    By NeilMcCauley in forum Excel General
    Replies: 14
    Last Post: 08-05-2012, 06:52 AM
  6. Excel Data Validation - Select Multiple Items - Need to Apply Macro to Multiple Rows
    By kristynroll in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2012, 07:44 PM
  7. Replies: 1
    Last Post: 04-23-2007, 04:23 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