Ubah nilai menjadi angka
=N(value)
| Parameter | Deskripsi |
|---|---|
value |
The value to convert to a number. |
The N function converts text values to zero:
=N("apple") // returns 0
Numeric values and errors are not affected:
=N(100) // returns 100
=N(5/0) // returns #DIV/0!
The N function converts TRUE to 1 and FALSE to zero:
=N(TRUE) // returns 1
=N(FALSE) // returns 0
=N(3>1) // returns 1
=N(3<1) // returns 0
There are several ways to perform this conversion in Excel, which is useful in more advanced formulas. For example, the formula below will return a co
=SUMPRODUCT(N(LEN(range)>100))