+ Reply to Thread
Results 1 to 2 of 2

Evaluate SUMPRODUCT limitations?

  1. #1
    Registered User
    Join Date
    08-19-2004
    Posts
    60

    Evaluate SUMPRODUCT limitations?

    Hi ,

    I am trying to evaluate a sumproduct in VBA and it is acting very oddly.

    The code i am trying to evaluate is:

    Please Login or Register  to view this content.
    either of the following two formulas works:

    Please Login or Register  to view this content.
    However the first one give me a type-mismatch error.

    Does anyone know why please?

    p.s. dType, dStage, dCategory, are all named ranges in the workbook (all same size).
    pRole, pStage, etc are all variables which are defined earlier

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Evaluate SUMPRODUCT limitations?

    It would help if we knew the values of the variables were but Evaluate will only work with strings up to 255 chars in length - I suspect your first formula exceeds that length once the variables are in place.

    To check -- add a Debug.Print prior to the Evaluate to see the final formula as it will be executed (Immediate Window)

    Please Login or Register  to view this content.
    (use LEN etc to ascertain length thereof)

+ Reply to 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