Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8384247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:21:33+00:00 2026-06-09T17:21:33+00:00

Consider the following: A B C —————- 1 a c 1 2 b f

  • 0

Consider the following:

    A    B    C
----------------
1   a    c    1
2   b    f    2
3   a    c    3
...
6   a    c    4

The goal here is to use a conditional SUMPRODUCT so that when the values in row 6 match values in their respective column, the SUMPRODUCT is computed. Here is the interesting thing.

When using:

=SUMPRODUCT((A3:A5=A1),(B3:B5=B1),C3:C5)

the input arguments are evaluated as:

=SUMPRODUCT({TRUE, FALSE, TRUE},{TRUE, FALSE, TRUE},{1, 2, 3})

but the result is 0.

Now when casting the boolean TRUEs and FALSEs to their 1 and 0 counterparts ‘before’ evaluation of the formula with a mathematical operator, the proper result populates:

=SUMPRODUCT(--(A3:A5=A1),--(B3:B5=B1),C3:C5)

or

=SUMPRODUCT(ABS(A3:A5=A1),ABS(B3:B5=B1),C3:C5)

or

=SUMPRODUCT((A3:A5=A1)^2,(B3:B5=B1)^2,C3:C5)

etc…,

eventually evaluates to 1s and 0s once the mathematical operator is applied,

=SUMPRODUCT({1, 0, 1},{1, 0, 1},{1, 2, 3})

and we get the proper value.

We having been racking our minds over Excel can’t seem to properly evaluate it’s own inputs. We think there is a line of code missing the the SUMPRODUCT compiled code that converts the TRUEs and FALSEs to 1 and 0 and error trapping simply returns a 0.

Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:21:34+00:00Added an answer on June 9, 2026 at 5:21 pm

    Most functions don’t coerce logical values to numbers in array arguments, and IMHO it’s preferable to err on the side of consistency rather than introducing new behavior for a few functions. Coercion also has a performance overhead associated so should only be implemented when needed.

    That said some extra functions like AVERAGEA, VARA, etc. were added that do treat logical values as numbers (and text values as zero) so i guess a SUMPRODUCTA function could have been added too but that might also add confusion and to application bloat. I believe the purpose of these was for compatablity with Lotus 123. There is also a setting for Transition Formula Evaluation in Excel Options | Advanced, which when activated will treat TRUE/FALSE as numbers in calculations like SUM but many functions don’t seem to respond to this as expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider following scenario: I have RESTful URL /articles that returns list of articles user
Please consider following example: The source image consists of 6 areas that need to
consider following url: http://sitename.com/School/Admin/PageViewer i have a subfolder in School named UserFiles that contains
Consider following table. I'm trying to write a query to display - Max values
Consider following code, I want to make it a thread safe class, so that
Consider following make: all: a b a: echo a exit 1 b: echo b
Consider following code: My problem is: 1) I can't seem to cast the errors
Consider following string Some string with quotes and \pre-slashed\ quotes Using regex, I want
Consider following text: $content=<<<EOT { translatorID: f4a5876a-3e53-40e2-9032-d99a30d7a6fc, label: ACL, creator: Nathan Schneider, target: ^https?://(www[.])?aclweb\\.org/anthology-new/[^#]+,
Consider following 2 programs giving same error First calss: public class Testing { Testing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.