+ Reply to Thread
Results 1 to 2 of 2

Countifs from vbacode

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2016
    Posts
    187

    Countifs from vbacode

    Hi,

    I need to put countifs formula from code to a worksheets, but I am stuck with it.

    What I need to do is:

    iterating through all worksheets , apply a countifs formula and get the result. The searchranges and the criteria_values are changing dinamically therefore I am putting the into variables. My code is something like this.
    I need to now how much value fufils the criterias (how much value is on the sheet where myvalue1 in searchrange1=criteria1, and myvalue2 in searchrange2= criteria2)

    Would anybody help, how to complete the countifs-function?

    Please Login or Register  to view this content.
    I need to now how much value fufils the criterias (how much value is on the sheet where myvalue1 in searchrange1=criteria1, and myvalue2 in searchrange2= criteria2)

    Would anybody help, how to complete the countifs-function?
    many thanks

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Countifs from vbacode

    Post an example file with some relevant data in it.
    Also include the result you are looking for using the example you provided.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. [SOLVED] vbacode save as issue with message invalid or unqualified reference
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-08-2017, 11:42 AM
  2. [SOLVED] more efficient vbacode to sort dynamic range
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2016, 02:34 PM
  3. [SOLVED] copy and paste vbacode but not ovewrite existing data in summay sheet
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2016, 11:54 AM
  4. VBAcode for Selecting Worksheet once Slicer Value is Selected
    By rv02 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-05-2015, 01:52 PM
  5. vbacode to delete blank rows
    By jericho14444 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2013, 01:47 PM
  6. In urgent need of help with a VBAcode copying stuff from wordfiles to an Excel Worksheet
    By Flabbergaster in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-24-2012, 04:42 PM
  7. autostart vbacode
    By sunshine076 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-19-2010, 01:29 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