# How to replace nulls in a list (spreadsheet from Excel)

**URL:** <https://forum.dynamobim.com/t/how-to-replace-nulls-in-a-list-spreadsheet-from-excel/56482>\
**Category:** Lists-Logic\
**Tags:** excel, dynamo\
**Created:** [October 22, 2020, 6:24pm UTC](https://forum.dynamobim.com/t/how-to-replace-nulls-in-a-list-spreadsheet-from-excel/56482 "2020-10-22T18:24:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yellowjacket98](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@Yellowjacket98](https://forum.dynamobim.com/u/Yellowjacket98)\
**Post date:** [October 22, 2020, 6:24pm UTC](https://forum.dynamobim.com/t/how-to-replace-nulls-in-a-list-spreadsheet-from-excel/56482/1 "2020-10-22T18:24:15Z")

</div>

Hello again…  
I am now trying to get Dynamo to ignore “nulls” in my list (spreadsheet info), because it would be almost impossible to go into the spreadsheet and replace the empty cells with something else (such as “.” or other small symbols). Additionally, I know that once it begins reading it goes on beyond my limits and finds “nulls” there as well. I looked at the Chop node, but couldn’t make heads or tails from it.  
In the example images here, my spreadsheet is extremely simple – if cell A1 has the “x” in it, then the Dynamo script works fine. If I leave it empty, I get the error that says it does not like “nulls”. I have read many articles and suggestions today regarding extra-package nodes and such, but I have had no success. Understand as well that I use the AutoCAD Civil3D package add-on, so nothing needs to conflict with that.  
Thanks in advance!  
CRF ![Number Spreadsheet](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/e/1e43380b52aeb8a8961a8689c146d25b53e57052.jpeg)

 ![Bad](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/1/d169174caeba6d07aa81e95965ba36495022aa97.jpeg) ![Good](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/a/0a557e7977b5503f576957c35356d082fb6d0912.jpeg)

---

<div class="post-metadata">

**Author:** ![\_Vijay](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/_vijay/32/91307_2.png) [@\_Vijay](https://forum.dynamobim.com/u/_Vijay)\
**Post date:** [October 22, 2020, 6:33pm UTC](https://forum.dynamobim.com/t/how-to-replace-nulls-in-a-list-spreadsheet-from-excel/56482/2 "2020-10-22T18:33:06Z")

</div>

Did you tryed this methods…

> [@ReplaceByCondition not working on empty list](https://forum.dynamobim.com/t/replacebycondition-not-working-on-empty-list/56254/3):
>
> Hi Paul, The out of the box node requires an applicable Function to be passed into the condition input to work. While the List.IsEmpty node returns a function, its condition isn’t met as the result will be True or False, and the List.Empty node doesn’t return a function as it has no input ports. To solve this now, you can either use the Clockwork List.ReplaceEmptyLists node or approach slight_smile Andreas’ approach is to convert first to a true/false boolean list and then replace those ele…

---

<div class="post-metadata">

**Author:** ![Yellowjacket98](https://avatars.discourse-cdn.com/v4/letter/y/a6a055/32.png) [@Yellowjacket98](https://forum.dynamobim.com/u/Yellowjacket98)\
**Post date:** [October 23, 2020, 5:32am UTC](https://forum.dynamobim.com/t/how-to-replace-nulls-in-a-list-spreadsheet-from-excel/56482/3 "2020-10-23T05:32:19Z")

</div>

Thanks for the help on this… your input plus others helping got me the answer!
