+ Reply to Thread
Results 1 to 3 of 3

Type mismatch error for countif function

  1. #1
    Registered User
    Join Date
    05-26-2017
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2010
    Posts
    7

    Type mismatch error for countif function

    I made a short script to update a table with values, that are counted in another workbook. Unfortunately I get a type mismatch error for the Countif function. I suspect, that I define the selected range wrong. Could someone tell me, what I'm missing here? Here is the code I wrote so far:

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-26-2017
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Type mismatch error for countif function

    I tried something out to analyse the issue further. I copied the source table into the same workbook, where the macro is located and the Countif function works fine there. So it seems that the problem is with referencing the range in the other workbook.

  3. #3
    Registered User
    Join Date
    05-26-2017
    Location
    Budapest, Hungary
    MS-Off Ver
    Office 2010
    Posts
    7

    Re: Type mismatch error for countif function

    Fortunately I got an advice to open the source workbook within the same instance and that solved the issue

+ 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] Run-time Error 13 Type Mismatch with CountIf
    By ceshi25 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-27-2017, 07:09 PM
  2. [SOLVED] COUNTIF function giving Type Mismatch error
    By Utzja1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2016, 07:34 AM
  3. [SOLVED] Run-time error '13': Type mismatch using DatePart() function
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-15-2016, 12:17 PM
  4. [SOLVED] Concatenate Function getting Type mismatch error
    By capson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2015, 05:59 PM
  5. [SOLVED] Error 13- "type mismatch" using CountIf function
    By jj4jj in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-21-2015, 07:09 PM
  6. VBA Function Generating Type Mismatch Error
    By Mediterranean in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-06-2013, 11:22 AM
  7. Date array function has type mismatch error...
    By secret2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2011, 02:07 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