# Days in between

**URL:** <https://community.glideapps.com/t/days-in-between/58321>\
**Category:** Ask for Help\
**Created:** [February 22, 2023, 9:53pm UTC](https://community.glideapps.com/t/days-in-between/58321 "2023-02-22T21:53:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas\_Ramelsberger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreas_ramelsberger/32/52780_2.png) [@Andreas\_Ramelsberger](https://community.glideapps.com/u/Andreas_Ramelsberger)\
**Post date:** [February 22, 2023, 9:53pm UTC](https://community.glideapps.com/t/days-in-between/58321/1 "2023-02-22T21:53:44Z")

</div>

Hey,

I have a simple question.  
I have to numbers and I want to have all numbers in between in a column.  
So column A is 15  
And column B 20  
Now I need a Math / Result Column that says 15,16,17,18,19,20

How to do that?

Thanks!  
Andi

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 22, 2023, 9:56pm UTC](https://community.glideapps.com/t/days-in-between/58321/2 "2023-02-22T21:56:20Z")

</div>

is there a preset number of days to pick from or could the number be infinite?

---

<div class="post-metadata">

**Author:** ![Andreas\_Ramelsberger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andreas_ramelsberger/32/52780_2.png) [@Andreas\_Ramelsberger](https://community.glideapps.com/u/Andreas_Ramelsberger)\
**Post date:** [February 22, 2023, 10:11pm UTC](https://community.glideapps.com/t/days-in-between/58321/3 "2023-02-22T22:11:42Z")

</div>

infinite

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 22, 2023, 10:25pm UTC](https://community.glideapps.com/t/days-in-between/58321/4 "2023-02-22T22:25:52Z")

</div>

Some javascript should do the trick:

 ![CleanShot 2023-02-22 at 17.25.11](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/3/4365d1eb9174cd5f2f162af1441e2c6dbf8337ea.jpeg)

```auto
function numbersBetween(start, end) {
  const numbers = [];

  for (let i = start; i <= end; i++) {
    numbers.push(i);
  }

  return numbers.join(",");
}

return numbersBetween(p1, p2);

```

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [February 22, 2023, 10:28pm UTC](https://community.glideapps.com/t/days-in-between/58321/5 "2023-02-22T22:28:16Z")

</div>

![Screen Shot 2023-02-22 at 5.27.50 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/8/68bf763429dc4fe4c340780023f796e859bb28ce.jpeg)
