문제

I need to add three cells in excel 2010, for example:

val1 = 1

val2 = 3

val3 = #N/A

sum = 4

As you can see, I need the result to be a number, not #N/A. I would like #N/A to count as 0.

Thank you!

도움이 되었습니까?

해결책 2

I have solved it myself, but L42 pointed me into the right direction.

In my table, data is located in J2, K2 and L2 and the sum is in M2 where I entered the final formula: =IFERROR(J2;0)+IFERROR(K2;0)+IFERROR(L2;0)

which basically means that I have manually added the 3 cells but checked for errors first, for each cell, with the function iferror and returned 0 if error exists.

Thank you!

다른 팁

Try this:

=SUM(IF(ISERROR(A1:A3),0,A1:A3))

Entered as Array Formula by pressing Ctrl+Shft+Enter in Cell A4 assuming your data is in Column A.
Change the address otherwise.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top