+ Reply to Thread
Results 1 to 10 of 10

Sumproduct #Value! Error due to Text

Hybrid View

  1. #1
    Registered User
    Join Date
    05-02-2006
    Posts
    95

    Sumproduct #Value! Error due to Text

    Hello,
    I'm using this sumproduct and it works until a cell has text.
    =SUMPRODUCT(($C7:$C16=$C$2)*($D7:F16))

    I've tried =SUMPRODUCT(--($C7:$C16=$C$2),($D7:F16)) but got the #Value! error because of the D7:F16 range. If I changed it to become F7:F16, then it works. But...my original formula adds all values giving me a YTD result. If I changed the range to be only F7:F16, then all I get is just that column's data. I have January to December's data across the columns from D to F. Any ideas on keeping my D to F range? I've tried Transpose but it didn't work either.

    Thanks in advance,
    Ricky

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Why don't you upload a zipped copy of your worksheet, for a precise answer ...?
    HTH
    Carim


    Top Excel Links

  3. #3
    Registered User
    Join Date
    05-02-2006
    Posts
    95
    Quote Originally Posted by Carim
    Hi,

    Why don't you upload a zipped copy of your worksheet, for a precise answer ...?
    Hi Carim,
    Here's my file. I appreciate your help.

    Thanks,
    Ricky
    Attached Files Attached Files

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Thanks for your file ...
    Found out you are not in a "sumproduct-type" configuration ...which is when you are dealing with several conditions ...
    see attached ...
    Attached Files Attached Files

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702
    You can use an array formula

    =SUM(IF(C7:C16=C2,IF(ISNUMBER(D7:F16),D7:F16)))

    which needs to be confirmed with CTRL+SHIFT+ENTER

  6. #6
    Registered User
    Join Date
    05-02-2006
    Posts
    95
    Quote Originally Posted by Carim
    Hi,

    Thanks for your file ...
    Found out you are not in a "sumproduct-type" configuration ...which is when you are dealing with several conditions ...
    see attached ...
    Thank-you so much Carim and Daddylonglegs,
    You have helped me a lot.

    Thanks again,
    Ricky

  7. #7
    Registered User
    Join Date
    05-02-2006
    Posts
    95
    Quote Originally Posted by Carim
    Hi,

    Thanks for your file ...
    Found out you are not in a "sumproduct-type" configuration ...which is when you are dealing with several conditions ...
    see attached ...
    Hi again Carim,
    I've been using your formula and it works well. Just curious, the formula refers to row number "+5". Why the number 5?

    I'd like to use this formula for another section but it may not start from 2002 to 2007 anymore. It may start from 1999 and go as far as 2007 instead. Would I have to keep updating the "+5" number or is there a better way so that the formula could pick out the proper row automatically?

    Thanks again,
    Ricky

  8. #8
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    In order to get the exact row number, given the fact you are storing your different years from C6 or row 6 ... the five first rows are missing in the total to get the exact row number ...

+ 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