+ Reply to Thread
Results 1 to 2 of 2

Add countIf to textbox (arrays)

  1. #1
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Add countIf to textbox (arrays)

    Hi,

    I have this code:

    Please Login or Register  to view this content.
    I want to count number for each Item in array (within range) and add them to Textbox, example:

    MM : 2
    KK : 3 ...

    How can I do that ?

  2. #2
    Forum Contributor
    Join Date
    02-09-2014
    Location
    Kamnik, Slovenia
    MS-Off Ver
    Excel 2010
    Posts
    693

    Re: Add countIf to textbox (arrays)

    Found a solution, in a little different way:

    Please Login or Register  to view this content.
    This code is only example for first two text values, all others must be just copied. Textbox's property Multiline must be set to True.

    If any cell within given range contains string of desired value, It counts that string and puts It in textbox where you want It - In my case result for counting first two strings, separated in new line :

    GG : 2
    HH : 3

    I'm sure this code can be done much shorter, If any suggestions please post It for me !

    Regards, Luka

+ 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. VBA Countif to fill textbox based on two combo boxes
    By SamuelJackson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2014, 10:14 AM
  2. Declaring multiple multi-dimensional arrays (jagged arrays) - compile error?
    By dfribush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-20-2013, 05:06 PM
  3. [SOLVED] CountIF VBA Arrays
    By lloydgodin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-26-2013, 08:09 PM
  4. [SOLVED] COUNTIF and arrays?
    By aikorei in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-16-2012, 11:27 AM
  5. Help! Cannot get VBA countif to count using Textbox value
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2011, 09:41 AM

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