+ Reply to Thread
Results 1 to 7 of 7

Sumproduct gives Value error

  1. #1
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Sumproduct gives Value error

    I have a data on multiple sheets, I am using Sumproduct formula for summation of values matching date and time, later on, a product of a time duration and finally a division by 60. But when there is any blank cell for multiplication it gives value error.
    Also, want to compact this formula as data are in multiple 5 sheets.

    =SUMPRODUCT(('BR1 grid'!$A$7:$A$54=$A3)*('BR1 grid'!$C$5:$AG$5=B$2),'BR1 grid'!$C$7:$AG$54)*'BR1 grid'!$L$1/60+SUMPRODUCT(('BR2 grid'!$A$7:$A$54=$A3)*('BR2 grid'!$C$5:$AG$5=B$2),'BR2 grid'!$C$7:$AG$54)*'BR2 grid'!$L$1/60

    See sheet 4 yellow shaded
    Attached Files Attached Files
    Last edited by tabkaz; 02-07-2018 at 09:25 AM. Reason: Adds Attachment

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,891

    Re: Sumproduct gives Value error

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Sumproduct gives Value error

    I suspect you need to multiply all the arguments there
    =SUMPRODUCT(('BR1 grid'!$A$7:$A$54=$A3)*('BR1 grid'!$C$5:$AG$5=B$2)*'BR1 grid'!$C$7:$AG$54)*'BR1 grid'!$L$1/60+SUMPRODUCT(('BR2 grid'!$A$7:$A$54=$A3)*('BR2 grid'!$C$5:$AG$5=B$2)*'BR2 grid'!$C$7:$AG$54)*'BR2 grid'!$L$1/60
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  4. #4
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Re: Sumproduct gives Value error

    I am already multiplying, but when the cell value becomes null it gives a value error.
    kindly see the attachment

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,891

    Re: Sumproduct gives Value error

    Edit:

    =SUMPRODUCT((Sheet2!A3:A5=A3)*(Sheet2!C1:D1=B2),Sheet2!C3:D5*N(Sheet2!F2)/60)
    +SUMPRODUCT((Sheet3!A3:A5=A3)*(Sheet3!C1:D1=B2),Sheet3!C3:D5*N(Sheet3!F2)/60)
    +SUMPRODUCT((Sheet4!A3:A5=A3)*(Sheet4!C1:D1=B2),Sheet4!C3:D5*N(Sheet4!F2)/60)

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,891

    Re: Sumproduct gives Value error

    Why do you need F2 on each sheet. Refer to G2 and it works fine.

  7. #7
    Registered User
    Join Date
    02-27-2012
    Location
    UK
    MS-Off Ver
    Excel 365
    Posts
    65

    Re: Sumproduct gives Value error

    Thanks....
    it's now working...though not sure what the 'N' purpose is...

+ 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 with Error #Value!
    By minhtien1900 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2017, 12:05 PM
  2. [SOLVED] Sumproduct error
    By Ravana in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-02-2015, 04:42 AM
  3. [SOLVED] Sumproduct error to #VALUE!
    By leakhna in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2015, 10:52 PM
  4. vba SumProduct Error
    By gingank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-21-2012, 04:31 AM
  5. IF with SUMPRODUCT error
    By ddub25 in forum Excel General
    Replies: 4
    Last Post: 02-16-2012, 08:47 AM
  6. Sumproduct Error
    By ltmaiyk in forum Excel General
    Replies: 4
    Last Post: 11-05-2009, 11:21 AM
  7. Error values:DIV/0! error in SumProduct formula with no division
    By Jerry W. Lewis in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07: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