+ Reply to Thread
Results 1 to 9 of 9

Can you help shorten this sumproduct formula?

  1. #1
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Can you help shorten this sumproduct formula?

    Is there a way to shorten this?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Can you help shorten this sumproduct formula?

    Try this:
    Please Login or Register  to view this content.
    Does that work for you?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Can you help shorten this sumproduct formula?

    Worked like a charm! Thanks Ron

  4. #4
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Can you help shorten this sumproduct formula?

    One last one. I tried your brackets thing and it didn't work?
    Please Login or Register  to view this content.

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Can you help shorten this sumproduct formula?

    When mentioning that a formula "didn't work", it's really helpful if you post that formula. It increases the chances that we'll spot an error.
    Absent that...try this:
    =SUMPRODUCT(($D31:$D131={"PR","SD","DD","CD","BN"})*($E31:$E131="N")*($F31:$F131))

    Does that work?

  6. #6
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Can you help shorten this sumproduct formula?

    Hey Ron,

    My apologies I will post the formula in the future.

    I tried your formula you provided and I got #VALUE! returned:
    Please Login or Register  to view this content.
    The formula I was referring to when trying to shorten the first time was also returning a #VALUE!:
    Please Login or Register  to view this content.
    Thanks,
    Lorne

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Can you help shorten this sumproduct formula?

    That would happen if F31:F131 contains text values. Erasing them should help.
    If you need the text cells in that range, the solution becomes a bit more complicated.
    Let us know what you find.

  8. #8
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Can you help shorten this sumproduct formula?

    Well they are not text, they are merely equations that come up empty because our workbook is not populated yet. It will be an ongoing list that continuously populates, but until then there are blank cells...is it possible to ignore that value rule and calculate empty cells?

  9. #9
    Registered User
    Join Date
    03-13-2008
    Posts
    87

    Re: Can you help shorten this sumproduct formula?

    FYI, rather than using this formula:
    Please Login or Register  to view this content.
    I used this and made it not equal to CA rather than typing out all the other codes.
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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