+ Reply to Thread
Results 1 to 2 of 2

Evaluate sumproduct function with range variable

  1. #1
    Registered User
    Join Date
    03-20-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2013
    Posts
    99

    Evaluate sumproduct function with range variable

    Hi,

    I have recently started to use Evaluate function so I'm not quite familiar with how it works. I managed to get this code working:
    Please Login or Register  to view this content.
    However, I'd like to change range address text in this function and use additional variables instead of them. It could look something like this, but I can't managed to get it working:
    Please Login or Register  to view this content.
    Do you have any ideas?
    Last edited by walduxas; 09-13-2012 at 01:26 AM.

  2. #2
    Registered User
    Join Date
    03-20-2009
    Location
    Lithuania
    MS-Off Ver
    Excel 2013
    Posts
    99

    Re: Evaluate sumproduct function with range variable

    Considering that no one could help on this case, as usually I solved this by myself. Here is the solution (in this example StartRow, StartCol, and HowMany variables' values are set in advance, I don't give their value in this case):

    Please Login or Register  to view this content.
    Important thing to consider: if in chosen range Rng3 are any non numeric values, then evaluate formula returns an error. In my case there were column names in the first row, so I needed to include StartRow variable, which is equal to the next row number below column names row (so that only numeric values would be included in a range).
    Last edited by walduxas; 09-13-2012 at 01:31 AM.

+ 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