+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT Array Formula Help

  1. #1
    Registered User
    Join Date
    04-01-2008
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    85

    SUMPRODUCT Array Formula Help

    Hi All,

    I'm having issues with the below formula. In row 2 I have Dates across B2 to JB2 (2012 calendar). In row 3 I have alphanumeric data (8 or 4, and H, F, S). I’m trying to sum the numbers that are less than or equal to today’s date. I can get the formula to work for one alpha but when i try all three i get #Value errors and can't figure out how to fix.

    Please Login or Register  to view this content.
    Any help is greatly appreciated.

    Thanks,
    Cullen
    Last edited by Cullen8; 01-12-2012 at 10:50 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: SUMPRODUCT Array Formula Help

    Can you upload example workbook?

  3. #3
    Registered User
    Join Date
    04-01-2008
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    85

    Re: SUMPRODUCT Array Formula Help

    Here is what i've got so far.

    The issue is in column JH.

    Thanks for taking a look,
    Cullen
    Attached Files Attached Files

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: SUMPRODUCT Array Formula Help

    Try this:
    {=SUMPRODUCT(--(B$2:JB$2<=TODAY()),(IF((B$3:JB$3)="H",0,(B$3:JB$3))))}

    Using multiplication for coersion will result in an error if any part of the array being multiplied is text. In your case, you still have F and S in your array. Using the double unary for coersion will ignore the text.

    ***EDIT***
    And if H=0, then we might as well ignore that as well and save use from making this an array formula

    =SUMPRODUCT(--(B$2:JB$2<=TODAY()),B$3:JB$3)
    Last edited by Whizbang; 01-12-2012 at 10:44 AM.

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: SUMPRODUCT Array Formula Help

    Will this do a trick:

    =SUMIF($B$2:$JC$2, "<="&TODAY(), B3:JB3)

    @Whizbang : I think you need to remove $ in second part of the formula

  6. #6
    Registered User
    Join Date
    04-01-2008
    Location
    Houston
    MS-Off Ver
    Office 365
    Posts
    85

    SOLVED: SUMPRODUCT Array Formula Help

    Thanks! I think I was overcomplicating as usual.

  7. #7
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: SUMPRODUCT Array Formula Help

    The $ were part of his original formula, so I left them in. I don't know if he will be copying this formula down or not. Normally I would assume so, but he specifically fixed the rows, so I left them.

    RE: SUMIF() - Duh. I should have thought of that.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: SUMPRODUCT Array Formula Help

    However you pointed nicely to clarify difference of * and -- in SUMPRODUCT 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