# Calculated fields return null values

**URL:** <https://community.hubspot.com/t/calculated-fields-return-null-values/129401>\
**Category:** Data Hub\
**Tags:** format-data-actions\
**Created:** [April 7, 2025, 6:08pm UTC](https://community.hubspot.com/t/calculated-fields-return-null-values/129401 "2025-04-07T18:08:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [April 7, 2025, 6:11pm UTC](https://community.hubspot.com/t/calculated-fields-return-null-values/129401/2 "2025-04-07T18:11:38Z")

</div>

Hi @Huntscape-Ops,

You can solve this with an ‘if’ statement and the ‘is known’ function, both available through drop downs in the formula editor - no Operations Hub required. If the number is known, return the number, if not, return a 0. Repeat the same for the second part of the calculation and that should do the trick.

 ![karstenkoehler_0-1744049647724.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/5/65f969f6be203717b9678cc60bc611b88064defd.png)

Best regards

---

_[View the full topic](https://community.hubspot.com/t/calculated-fields-return-null-values/129401)._
