Returns the numeric value.
N(value)
returns the numeric value of value if possible. It returns the logical values TRUE and FALSE as 1 and 0 respectively.
N() is not intended to convert text to a number - use the VALUE() function instead.
N(123)
returns 123, because 123 is (already) a number.
N(TRUE)
returns 1.
N(A3)
where A3 contains FALSE, returns 0.
Using the N function in a Spreadsheet
Imagine you are managing a product inventory spreadsheet for a small business. You have a column for "Product Status," which contains text values, and you need to perform a calculation on these statuses to determine a "Stock Adjustment Value." You decide that 'Discontinued' products should have a value of -10, 'On Backorder' should be 0, and any other status should be 1. The N function can help you with this by converting the text status into a number that you can then use in a formula.
Scenario: You need to calculate the "Stock Adjustment Value" for each product based on its status.
Table:
Product ID | Product Status | N Function's Intermediate Result | Stock Adjustment Value (Calculated) | ||
|---|---|---|---|---|---|
A | B | C | D | ||
1 | P-101 | In Stock | 0 | 1 | |
2 | P-102 | Discontinued | 0 | -10 | |
3 | P-103 | On Backorder | 0 | 0 | |
4 | P-104 | In Stock | 0 | 1 | |
5 | P-105 | Re-stocked | 0 | 1 | |
6 | P-106 | 50 | 50 | 1 |
Explanation:
PRODUCT & FEATURES
RESOURCES
Terms | Privacy | Spam Policy
© 2026 Zapof