+ Reply to Thread
Results 1 to 8 of 8

Sumproduct Returns Value Error

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2008
    Posts
    4

    Sumproduct Returns Value Error

    I have a sheet that contains 3 columns for each day of the week.
    Hours, Code # (10-636), Category (ABC)
    I need weekly sums of the total hours by category and a weekly sum of hours by code #.
    This formula works for the latter
    =SUMPRODUCT(--(F9:A28=10),--B9:AT28
    but if I try to input a letter in the category column it gives a value error.
    I have been trying variations of this for 3 days with no luck, any advice would be greatly appreciated.

    Thank you,

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You may need to revert to a Sum(IF()) array formula setup in order to avoid the text entries.....

    Can we see a zipped sample of your sheet?
    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.

  3. #3
    Registered User
    Join Date
    04-08-2008
    Posts
    4
    Please see the attachment. The formula does work but only if no text is in that range.

    I have tried SumIf and it didn't work, but of course I am still a novice when it comes to excel.

    Thanks again

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

    make sure you zip it first and that it is less than 100kb in size.

    Then after you located the zipped file, click Upload. Then close.

  5. #5
    Registered User
    Join Date
    04-08-2008
    Posts
    4
    Hopefully it worked this time
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    First. You must be consistent with your raw data organization...

    For Tuesday you've got the Code and Category columns switched... please fix that first.

    Then in B31 use formula:
    =SUMPRODUCT(($F$9:$BG$28=D31)*ISNUMBER($B$9:$BC$28),$B$9:$BC$28)
    copied down. Then you can copy this group to the next group and so on horizontally.

    and in F47:
    =SUMPRODUCT(($J$9:$BK$28=B47)*ISNUMBER($B$9:$BC$28),$B$9:$BC$28)
    copied down.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,721
    Quote Originally Posted by annie46
    =SUMPRODUCT(--(F9:A28=10),--B9:AT28
    This formula doesn't look right, the ranges need to be the same size. Can you post the correct formula?

+ 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