Closed Thread
Results 1 to 5 of 5

Problems with Error 13 Type mismatch

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Problems with Error 13 Type mismatch

    Hi all this is my forst post so please be gentle. I am gettng a problem with an Err 13 type mismatch error. My code opens an input file loads an array and looks for a string with in the array. If found it increments a tally cell on the spreadsheet. The code then loads up the next array and evaluates that.

    For some reason the code fails about 1/2 way through but I cannot see a reason why. I checked the format using the Type() function and it has returned a string value plus there is no white space so cannot see why Excel cannot see it as a string. Also the value where it fails has been evaluated in earlier arrays.

    The only issue that I could possibly see is that it fails at row 65549 and the previous array starts before row 65536. I don't see why this would be an issue as I am using Excel 2010 on XP.

    I am just trying to find a initial value as I plan to include more complex searches later e.g. PCs that have App2 and App5. So that is why I have not used Countifs function or another methd.

    Input file format
    COL A COL B
    PC1 App1
    PC1 App2
    PC1 App3
    PC2 App2
    PC2 App3
    PC2 App4
    PC2 App5

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problems with Error 13 Type mismatch

    Where exactly does the code fail?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    11-22-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Problems with Error 13 Type mismatch

    Sorry, I recieved an error when I tried to post this and initially couldn't see it listed hence the re-post. Can't see how to delete.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Problems with Error 13 Type mismatch

    Perhaps you could contact a moderator and ask them to delete on of the threads, or perhaps merge them.

    In the meantime, where do you get the error?

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Problems with Error 13 Type mismatch

    Welcome to the Forum and your acknowledgement of the duplicate posting is noted.

    This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

Closed Thread

Thread Information

Users Browsing this Thread

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

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