+ Reply to Thread
Results 1 to 10 of 10

worksheetFunction Sumproduct

  1. #1
    Forum Contributor
    Join Date
    10-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    114

    worksheetFunction Sumproduct

    Hi everyone - need a second set of eyes to look at this. Appreciate your help.
    error out on the last line of code
    v = Error2029

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: worksheetFunction Sumproduct

    You're passing VBA variables to the Sumproduct worksheet function as if they're meaningful in the worksheet.

    I'd try
    Please Login or Register  to view this content.
    Tim
    Never stop learning!
    <--- please consider *-ing !

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: worksheetFunction Sumproduct

    Hey Tim,

    I thought you shouldn't put the "=" in your formula. Hope the OP gets back and shows us what worked.
    This video says no equal sign needed. https://www.youtube.com/watch?v=UFTObyf_Flg
    Last edited by MarvinP; 04-03-2020 at 10:17 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: worksheetFunction Sumproduct

    Quote Originally Posted by MarvinP View Post
    Hey Tim,

    I thought you shouldn't put the "=" in your formula. Hope the OP gets back and shows us what worked.
    Well, actually I thought you were right, then I tried this in a blank workbook:
    Please Login or Register  to view this content.

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: worksheetFunction Sumproduct

    Did both work or only the second? This vid shows both ways:
    https://www.youtube.com/watch?v=CdQJqT_9uf4&t=210s
    Last edited by MarvinP; 04-03-2020 at 10:23 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: worksheetFunction Sumproduct

    Quote Originally Posted by MarvinP View Post
    Did both work or only the second?
    Both - with the correct answer.

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: worksheetFunction Sumproduct

    My Post two above shows a video saying both work.

  8. #8
    Forum Contributor
    Join Date
    10-22-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    114

    Re: worksheetFunction Sumproduct

    Hi harrisonland , Thanks for looking into this, but it says :" Type mismatch"

  9. #9
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: worksheetFunction Sumproduct

    Does it work in-cell if you replace the variables with their respective values? Error 2029 is equivalent to #NAME....

    Need to see the worksheet, really.

    Tim

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: worksheetFunction Sumproduct

    rngMasterID.adddress?
    Ben Van Johnson

+ 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. vba WorksheetFunction
    By Xceller in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2020, 07:53 AM
  2. [SOLVED] WorksheetFunction.Sum
    By kamaflage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2016, 08:56 AM
  3. WorksheetFunction.Min()
    By Peter Taylor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2016, 06:52 PM
  4. Worksheetfunction
    By pra.icwa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-18-2013, 11:53 AM
  5. worksheetfunction through vba
    By helpMe9999 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-08-2008, 07:15 AM
  6. WorksheetFunction
    By stoney1977 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2008, 02:19 PM
  7. WorksheetFunction with VBA
    By Ghislain Marcotte in forum Excel General
    Replies: 2
    Last Post: 02-13-2005, 04:07 AM

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