+ Reply to Thread
Results 1 to 2 of 2

Using Evaluate() in an Array

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    10

    Using Evaluate() in an Array

    I've created dynamic formulas in excel. Unfortunately, it creates the formula as a string. To get around this I created a function (Evalu) that using the Evaluate() function to give me the answer. This currently works fine.

    However, the problem I now is how to apply this to an array. My formula currently evaluates to
    =evaluS({"100*100+0";"50*10+0";"0*0+0"})
    before it breaks. I'm trying to get to the result of 10500 by adding each array element together. Notice that each element in the array is a string, that I want to get evaluated as a formula.

    To do this, I create the evaluS function:

    Please Login or Register  to view this content.
    Clearly this approach isn't working very well, and since I'm a VBA expert, I was hoping someone could show me the error of my ways.
    Attached Files Attached Files
    Last edited by blueiris8; 08-29-2012 at 03:03 PM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    08-29-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Using Evaluate() in an Array

    I was able to solve this with some help:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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