# Excel Producing False Null Values

**URL:** <https://forum.dynamobim.com/t/excel-producing-false-null-values/9087>\
**Category:** Lists-Logic\
**Created:** [January 23, 2017, 9:55pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087 "2017-01-23T21:55:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 23, 2017, 9:55pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/1 "2017-01-23T21:55:17Z")

</div>

Hey Guys totally new here! I have 2 seemingly identical excel files. 1 reads and creates lists perfectly in Dynamo. The other reads the same set of information but returns a seemingly arbitrary number of null values after reading the values intended. This is cause issues because I can’t feed null values into my next node. Any ideas what in excel would be causing these nulls to generate?

---

<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:** [January 24, 2017, 7:19am UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/2 "2017-01-24T07:19:32Z")

</div>

Hey, some screenshots would probably be useful here…

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [January 24, 2017, 7:35am UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/3 "2017-01-24T07:35:48Z")

</div>

I think these are just empty cells in excel, before or after the cells with data. You can use one of the remove/replace null nodes from Lunchbox or Clockwork:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/e/0e0e5ee9a02482f7d4b432cdcec04db7c5d168e0.jpg)

---

<div class="post-metadata">

**Author:** ![Racel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/racel/32/8562_2.png) [@Racel](https://forum.dynamobim.com/u/Racel)\
**Post date:** [January 24, 2017, 12:08pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/4 "2017-01-24T12:08:53Z")

</div>

@aclark - What versions of excel and Dynamo are you using? FYI @Neal_Burnham

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 3:06pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/5 "2017-01-24T15:06:39Z")

</div>

Reminder… i’m brand new and using scripts I can find and understand the output to sort of reverse engineer and learn. I did not create this script.

The first screen shot attached I’ve patched in a watch node and you can see the number of returned values is 1700 and change with loads of nulls.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/c/cce9c792469cc800ef5d424b8946a375bd1402f6.png)

The next is the exact same script with a working spreadsheet. Same column layout and naming, same values, everything the same as far as I can tell. Also you can see the list repeats, as it should, where the failing excel has nulls and then repeats. also, value count is WAY down.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/1/51fb61aa621bf713a0ebc8692b0094d34edcbec8.png)

I’m in Revit 2015 and Dynamo 1.2

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 3:08pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/6 "2017-01-24T15:08:15Z")

</div>

something about just removing the nulls kills some of the excel column reading further down the script

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [January 24, 2017, 3:52pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/7 "2017-01-24T15:52:51Z")

</div>

As a workaround you could replace the null values with a dummy value and filter the lists by that dummy value.

---

<div class="post-metadata">

**Author:** ![Incentive](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/incentive/32/11494_2.png) [@Incentive](https://forum.dynamobim.com/u/Incentive)\
**Post date:** [January 24, 2017, 3:54pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/8 "2017-01-24T15:54:35Z")

</div>

What version of Dynamo are you using?

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 3:56pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/9 "2017-01-24T15:56:05Z")

</div>

Thought about that… I just don’t know what is producing the null. Is there a “find and replace” node that can help with this?

---

<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:** [January 24, 2017, 4:02pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/10 "2017-01-24T16:02:09Z")

</div>

Could you also show us the list of values directly extracted from Excel (before the _List.OfRepeatedItem_ node)?

---

<div class="post-metadata">

**Author:** ![T\_Pover](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/t_pover/32/19147_2.png) [@T\_Pover](https://forum.dynamobim.com/u/T_Pover)\
**Post date:** [January 24, 2017, 4:07pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/11 "2017-01-24T16:07:58Z")

</div>

You can use manage.replacenulls from Lunchbox for finding and replacing values  
Something like this:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3f1ecaa4b201100db0c889a2110b26b749359c26.jpg)

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 4:16pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/12 "2017-01-24T16:16:26Z")

</div>

sure!

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/7/4754379b2063592077da695a90d4890e12f4633b.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:** [January 24, 2017, 4:18pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/13 "2017-01-24T16:18:50Z")

</div>

And I suppose you used an _Excel.ReadFromFile_ node before _List.Transpose_?

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 4:28pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/14 "2017-01-24T16:28:36Z")

</div>

oh yeah… it’s a whole process, again I can produce a clean result with a specific excel file. but I don’t know what it is that’s keeping that file clean. the “(TESTER)” file is the one producing the nulls

[ATCIC Program (TESTER).xlsx](https://forum.dynamobim.com/uploads/short-url/Av0GkzbcS1JlNbaswsi4DuwBz0f.xlsx) (15.6 KB)  
[Space Planning\_ATCIC.xlsx](https://forum.dynamobim.com/uploads/short-url/nMq2iGXoRF41IT2HXs1p5rIeP0U.xlsx) (16.4 KB)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 24, 2017, 4:38pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/15 "2017-01-24T16:38:02Z")

</div>

@aclark Try this file [For Clark.dyn](https://forum.dynamobim.com/uploads/short-url/igHM77DabsjSEIIofTetMoebKjt.dyn) (7.4 KB)

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

---

<div class="post-metadata">

**Author:** ![Racel](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/racel/32/8562_2.png) [@Racel](https://forum.dynamobim.com/u/Racel)\
**Post date:** [January 24, 2017, 4:39pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/16 "2017-01-24T16:39:15Z")

</div>

@aclark - Can you tell me what excel version you are using?

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 5:13pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/17 "2017-01-24T17:13:58Z")

</div>

so this is awesome, and interesting… when i run my functioning excel file i’m getting 550 values returned and your cleaned versions are returning 495… This is awesome, let me patch this in and see if it cleans up the issues.

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 5:15pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/18 "2017-01-24T17:15:19Z")

</div>

excel 2016

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 24, 2017, 5:28pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/19 "2017-01-24T17:28:24Z")

</div>

> [@aclark](#):
>
> This is awesome, let me patch this in and see if it cleans up the issues.

@aclark Report back here and if it is solved make sure you mark the post as solved. Thanks 🙂

---

<div class="post-metadata">

**Author:** ![aclark](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@aclark](https://forum.dynamobim.com/u/aclark)\
**Post date:** [January 24, 2017, 9:06pm UTC](https://forum.dynamobim.com/t/excel-producing-false-null-values/9087/20 "2017-01-24T21:06:19Z")

</div>

You guys!!! you did it… I patched in the list.clean node that @Kulkul provided and it works!

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/3/d36722a251c6ce6ce0a1cf65c81649c28f1f3c9e.png)
