# Automatically add +1 to an x number at each run

**URL:** <https://forum.dynamobim.com/t/automatically-add-1-to-an-x-number-at-each-run/15336>\
**Category:** Lists-Logic\
**Tags:** dynamo\
**Created:** [October 4, 2017, 9:52am UTC](https://forum.dynamobim.com/t/automatically-add-1-to-an-x-number-at-each-run/15336 "2017-10-04T09:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniorusconi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/antoniorusconi/32/33236_2.png) [@antoniorusconi](https://forum.dynamobim.com/u/antoniorusconi)\
**Post date:** [October 4, 2017, 9:52am UTC](https://forum.dynamobim.com/t/automatically-add-1-to-an-x-number-at-each-run/15336/1 "2017-10-04T09:52:30Z")

</div>

Dear all

I’m looking for a way to automatically add +1 to an x number for each run, but I need the number to be progressive. In other words, the first run should produce an x + 1 result, the second run should produce a result (x + 1) +1 and so on. This would allow me to automatically write in Excel spreadsheets the results of each run in different rows, without having to change the initial row manually each time i press run. I hope i was clear enough. Do you have any suggestion on how to do it? Thank you

Here’s a simplified scheme of what i’m trying to do. The issue is how to make the StartRow number increase automatically by +1 at each run.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/a/7a860a7aaad0bd9672e06db2b32d9bd689d768ff.png)

---

<div class="post-metadata">

**Author:** ![Yna\_Db](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/yna_db/32/30641_2.png) [@Yna\_Db](https://forum.dynamobim.com/u/Yna_Db)\
**Post date:** [October 4, 2017, 10:03am UTC](https://forum.dynamobim.com/t/automatically-add-1-to-an-x-number-at-each-run/15336/2 "2017-10-04T10:03:27Z")

</div>

You could need something as a Run Count:

> [@Create a RunCount to read from Excel, use as int, +1 and write back to excel](https://forum.dynamobim.com/t/create-a-runcount-to-read-from-excel-use-as-int-1-and-write-back-to-excel/6856):
>
> Hi, I’m trying to create a run count, using a specific cell in excel on a specific sheet. I’m using the Bumblebee node Read Excel, but it’s coming up with a traceback error, which causes a warning in my String.ToNumber node. Watching the Read Excel file gives me this:

---

<div class="post-metadata">

**Author:** ![antoniorusconi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/antoniorusconi/32/33236_2.png) [@antoniorusconi](https://forum.dynamobim.com/u/antoniorusconi)\
**Post date:** [October 4, 2017, 12:26pm UTC](https://forum.dynamobim.com/t/automatically-add-1-to-an-x-number-at-each-run/15336/3 "2017-10-04T12:26:42Z")

</div>

I managed to solve it in this way, thanks to Read Excel plus ForceChildrensEval. It can be run with periodic run and it will allow me to leave it compute by night and then catch the results of the generations on the Excel spredsheet. Thank you for your suggestion Yna, i came to the solution through your answer.

![screenshot](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/3/43050030b42dde0c7e4f7e83d075dfce022f8315.PNG)
