D
D
Danila Master2017-05-01 10:56:29
excel
Danila Master, 2017-05-01 10:56:29

Selecting values ​​in a table?

6e8cfd0060d64a5e8dd1c65ddf1d7db9.jpg
Guys, tell me how to select values ​​from the table, and summarize them in certain cells by category?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
John Smith, 2017-05-01
@dgmasster

There are many ways. Alternatively - SUMIF(range, condition, [sum_range]
) in your example in cell i8:
=SUMIF($E:$E, $h8, $d:$d)-SUMIF($E:$E, $h8, $c:$c)
The first sumif sums all cells in the column D (receipt), for which the value in column E of the same row is equal to the value of the cell in column H to the left of the formula. The second sumif does the same but sums the cells in column c (expense). As a result, the entire income for the position is summed up, the entire expense for the position is subtracted from it - as far as I understand, this is exactly what is needed. If you just need to sum the income or expense by the criterion, just take the first or second half of the formula.
For row 8 of the table (No. p / p 7), the above formula will lie in cell I8, the selection criterion will be taken from H8, respectively; dragged down to cell I9, the formula will take the criterion from H9, and so on.

A
Anton Fedoryan, 2017-05-01
@AnnTHony

Array formulas

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question