Our Knowledge Base covers a wide variety of technical topics, from the basic to the complex.
Home / QIN / Knowledge Base / Why doesn't the formula Nz([num1], [num2]) detect when [num1] is blank like it is supposed to? It just returns 0 instead of substituting the alternate value [num2].
Knowledge Base
Why doesn't the formula Nz([num1], [num2]) detect when [num1] is blank like it is supposed to? It just returns 0 instead of substituting the alternate value [num2].
This can happen because the field property for [num1] called "Treat blank as zero in calculations" is checked. This is checked by default, so you can do things like add and subtract lists of values which contain some blanks.
When this is checked, a blank field looks to formulas just like a zero, which is not the same as null. For the Nz() formula to work correctly, uncheck this box. Then blank fields will then be seen as null.
- 39462 reads
Rate This
Similar Articles
Browse by Category
Knowledge Base Categories
- Accounts (35)
- Application (45)
- E-Mail (7)
- Fields (41)
- Forms (20)
- Formulas (18)
- General (68)
- Other Product (7)
- Pages (1)
- Product (5)
- Reports (15)
- Roles (4)
- Search (1)
- Tables (6)
Formula Category
about_http_API
access
add
API
APIs
application
applications
automatically
billing
buttons
change
copy
email
error
exact form
excel
export
field
fields
form
formula
formulas
formula URL
http_api
IP
issues
limit
limits
page
password
patches
plan
QuickBase
records
Release Notes
release notes
remove
report
reports
SDK
security
September 30
software
space
status
techfest
user
users
video
view



Comments
Post new comment