Using SUMIF with a checkbox in Excel Online

Anonymous
2024-09-06T17:14:05+00:00

Does anyone know how I can get this formula to work in Excel Online?

I'm trying to create a formula that totals the amount invoiced and paid for, using the checkbox to determine the total.

I've tried using 'TRUE' and 'CHECKED' but neither seems to work in Excel Online. I know in Google Sheets that 'TRUE' works and the only documentation I can find for Excel references 'Format Control' - but I can't find that in Excel online.

Microsoft 365 and Office | Excel | For business | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. riny 20,530 Reputation points Volunteer Moderator
    2024-09-07T09:40:43+00:00

    Not sure why Snow suggests that this is a bug. You have simply mixed up the arguments. SUMIF takes the criteria_range first, then the criteria, then the sum_range. And then I recommend that you keep the dimensions of both the criteria_ range and the sum_range the same.

    change your formula to:

    =SUMIF(H8:H13, TRUE, B8:B13)

    and it shall work.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-09-07T09:57:41+00:00

    When a checkbox is checked, the value of the cell is TRUE, not CHECKED.

    2.

    The rownumbers of the ranges in 1 formula must be the same;

    you used B8:B14 and H8:H13,

    it must be: B8:B13 and H8:H13

    or B8:B14 and H8:H14

    1. The solution of 'Snow Lu MSFT' is correct, but you also can use: =SUMIFS(B8:B14,H8:H14,TRUE)
    1 person found this answer helpful.
    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more