# Creating Length formulas

**URL:** <https://community.baserow.io/t/creating-length-formulas/3468>\
**Category:** Technical Help\
**Created:** [September 24, 2023, 9:18am UTC](https://community.baserow.io/t/creating-length-formulas/3468 "2023-09-24T09:18:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![verifybudi](https://community.baserow.io/letter_avatar_proxy/v4/letter/v/e9a140/32.png) [@verifybudi](https://community.baserow.io/u/verifybudi)\
**Post date:** [September 24, 2023, 9:18am UTC](https://community.baserow.io/t/creating-length-formulas/3468/1 "2023-09-24T09:18:26Z")

</div>

Hi

I have installed baserow self-hosted on windows 10 using dockers.

I need help for a formula which i was usingin Airtable

In column “ID” i have values like DA03.2278733 or DA03.7474 and DA03.228964 . I want to create another column “Barcode” and want these values to be converted into 0002278733 or 0000007474 and 0000228964 for barcode machine which recognizes 10 digit format with leading Zeros automatically added if number length after “DA03.” is less than 10.

What formula can i use? can anyone post the correct formula for it

---

<div class="post-metadata">

**Author:** ![frederikdc](https://community.baserow.io/user_avatar/community.baserow.io/frederikdc/32/2086_2.png) [@frederikdc](https://community.baserow.io/u/frederikdc)\
**Post date:** [September 25, 2023, 6:14am UTC](https://community.baserow.io/t/creating-length-formulas/3468/2 "2023-09-25T06:14:08Z")

</div>

Hi,

You can do this with a pretty long if…else statement checking the value of the number: [Better number formatting - #4 by frederikdc](https://community.baserow.io/t/better-number-formatting/1579/4)
