+ Reply to Thread
Results 1 to 4 of 4

Evaluate sumproduct with cell value returning #value error

  1. #1
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Evaluate sumproduct with cell value returning #value error

    Hi there, think this is a simple problem but can't find an answer in google because I'm not sure what to call the problem.

    The code:
    Please Login or Register  to view this content.
    Returns a #value error

    formula works if I am to hardcode the customerCode in double brackets with whatever string I wish, for example:

    Please Login or Register  to view this content.
    Will work but not when trying to pass in a variable as string.

    What's the, most likely, simple work around?

    Thanks.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Evaluate sumproduct with cell value returning #value error

    Due to
    Dim customerCode As String
    Perhaps
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-06-2014
    Location
    Hong Kong
    MS-Off Ver
    2010
    Posts
    91

    Re: Evaluate sumproduct with cell value returning #value error

    That works!
    Much appreciated.

    To further my understanding, and if you have the time, any chance you could tell me what was the issue and why the solution works?

    Thanks.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Evaluate sumproduct with cell value returning #value error

    Look at your formula that is working in the cell
    Please Login or Register  to view this content.
    When you use double quote, you need to add extra double quotes.

+ 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. SUMPRODUCT returning VALUE error
    By tonkasmum in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-03-2020, 11:33 AM
  2. [SOLVED] Sumproduct function returning error.
    By [email protected] in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2019, 02:54 PM
  3. Sumproduct formula returning #Value! error
    By brizmol1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2014, 05:16 PM
  4. [SOLVED] Using Evaluate / Sumproduct Combination - Error 2029/15
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2013, 07:03 PM
  5. Sumproduct - returning error #Div/0! - Please help
    By wvnimal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 09:41 AM
  6. [SOLVED] Sumproduct returning #Error
    By Knocknaboula in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2013, 03:24 PM
  7. [SOLVED] SUMPRODUCT formula returning #VALUE! error
    By Valerie in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-28-2006, 09:40 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