+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT showing #VALUE - Can't understand why it won't work

  1. #1
    Registered User
    Join Date
    11-11-2015
    Location
    manchester
    MS-Off Ver
    Excel 2010
    Posts
    13

    Angry SUMPRODUCT showing #VALUE - Can't understand why it won't work

    Ok so I have two unhidden tabs on the attached spreadsheet.....

    Hopefully the results I want to see are quite self-explanatory. I want the formula in the second tab, to look at the cost information in the first tab and show me cost total for anything coded to "OR" and "GBNHA271693".

    I've used this formula, for this kind of task before but it's not playing ball today. Anybody any ideas?
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMPRODUCT showing #VALUE - Can't understand why it won't work

    Here's the formula

    =SUMPRODUCT((Step2!C2:C795='Andy Hull'!B6)*(Step2!O2:O795='Andy Hull'!B4:F4),(Step2!G2:G795))

    It's this part causing the issue.
    Step2!O2:O795='Andy Hull'!B4:F4

    Comparing values in O to a multicell range B4:F4
    Can't do that.
    That should just be B4
    And it should be using some absolute references.

    Try
    =SUMPRODUCT((Step2!C$2:C$795='Andy Hull'!B6)*(Step2!O$2:O$795='Andy Hull'!B$4),(Step2!G$2:G$795))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: SUMPRODUCT showing #VALUE - Can't understand why it won't work

    Try

    =SUMPRODUCT((Step2!$C$2:$C$795='Andy Hull'!$B6)*(Step2!$O$2:$O$795='Andy Hull'!$B$4)*(Step2!$G$2:$G$795))

    Your "OR" in "Andy Hull" has a leading blank (" OR") so remove

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: SUMPRODUCT showing #VALUE - Can't understand why it won't work

    A couple of reasons.

    The "OR" in B6 has a leading space that needs to be removed, and the reference to B4:F4 should only be to B4.

    =SUMPRODUCT((Step2!C2:C795='Andy Hull'!B6)*(Step2!O2:O795='Andy Hull'!B4),(Step2!G2:G795))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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 vs. SUM: Trying to understand why SUM will not work in a formula
    By McStagger in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-09-2014, 03:22 AM
  2. Replies: 0
    Last Post: 01-15-2014, 12:11 PM
  3. Do not understand sumproduct formula
    By alowry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2013, 01:34 PM
  4. Sumproduct with an if statement.... showing '#value'
    By Steve-B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-10-2008, 08:04 AM
  5. Replies: 1
    Last Post: 09-18-2007, 02:07 PM
  6. [SOLVED] I need to understand how the IRR, NPV and FPV formulas work? Thks
    By Juanmi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2006, 12:35 PM
  7. Select case statement - it will not work and i dont understand why! :o(
    By Thomas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-26-2005, 01:05 PM

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