A
A
Alexey2019-06-21 16:55:13
excel
Alexey, 2019-06-21 16:55:13

How to solve a problem with a condition and flags in Excel?

1) Column with flags (true/false);
2) A column with a number opposite the flags;
3) a cell with a sum of numbers;
Question:
How to calculate the sum of the numbers in the "total" cell, opposite which the checkboxes are marked?

5d0ce16f3c725776033226.png
Link to google spreadsheet with the task
Thank you in advance for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2019-06-21
@alexmirg

I found the formula:
SUMIF(range, criterion, [sum_range])
In the first parameter, we pass the column with flags (true / false)
The second parameter: this is the criterion (in our case, "=TRUE")
The third parameter, we pass the column with numbers. And this function already has the logic to summarize this column.
Exactly what you need
. As a result, we get a working functionality using:
=SUMIF(A2:A10, "=TRUE", B2:B10)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question