A
A
Artem Morozov2019-12-22 09:59:20
excel
Artem Morozov, 2019-12-22 09:59:20

How to correctly calculate the amount if some cells contain N/A?

I want to calculate the sum of the values ​​of column C.
There is a formula for column C: =ВПР(B2;$J$3:$K$5;2;ЛОЖЬ)
For those cells where values ​​have not yet been specified, the formula does not work and N/A is indicated.
Because of this, I can not calculate the SUM of the entire range.
5dff13756c699748057837.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BasiC2k, 2019-12-22
@artem-morozov

Wrap the result in the formula IFERROR
It turns out like this:
=IFERROR(VLOOKUP(B2,$J$3:$K$5,2,FALSE); 0)
If the value is calculated correctly, it will be displayed. If the result is N/A, it will be replaced with 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question