# Export excel schedule not behaving as expected

**URL:** <https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585>\
**Category:** Revit\
**Tags:** excel, dynamo\
**Created:** [June 7, 2018, 2:55pm UTC](https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585 "2018-06-07T14:55:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishabh.0.0](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rishabh.0.0](https://forum.dynamobim.com/u/rishabh.0.0)\
**Post date:** [June 7, 2018, 2:55pm UTC](https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585/1 "2018-06-07T14:55:48Z")

</div>

Hi,  
I can’t figure out what i’m doing wrong.  
Trying to export an excel of a schedule from elements in my revit model.  
The lists seem to be previewing ok in dynamo, but the list gets messed up in the Export to excel node and the file comes out all messed up.  
I’m trying to pull parameters from my elements and output a cutting schedule to excel.  
This is the workflow i’ve used:

1. Pick element
2. Get element category
3. Get parameter value by name
4. Create 2 lists- one is just header titles and the other is the values
5. Flatten and transpose lists
6. Combine lists by list create
7. Export to excel

Can’t pinpoint what i’m doing wrong, this is my first script in dynamo!

![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/3/537cc228bbe3dc882f7762005ef4f6af24b0d1d3.png)

---

<div class="post-metadata">

**Author:** ![rishabh.0.0](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rishabh.0.0](https://forum.dynamobim.com/u/rishabh.0.0)\
**Post date:** [June 7, 2018, 3:09pm UTC](https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585/2 "2018-06-07T15:09:20Z")

</div>

![2018-06-07%2009_40_54-blox%20scheduling%20test8%20-%20Saved](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/d/bd7baf23d481de32c799c3b4958848db1c76c6ea.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [June 7, 2018, 3:16pm UTC](https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585/3 "2018-06-07T15:16:34Z")

</div>

Your data list is not formatted properly. The list can only have 3 levels. You need to add your headers as a single item to the front of your data list before exporting to excel.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/c/acf4d171a28a66018b903f489e955410353d082b.png)

---

<div class="post-metadata">

**Author:** ![rishabh.0.0](https://avatars.discourse-cdn.com/v4/letter/r/c2a13f/32.png) [@rishabh.0.0](https://forum.dynamobim.com/u/rishabh.0.0)\
**Post date:** [June 7, 2018, 3:36pm UTC](https://forum.dynamobim.com/t/export-excel-schedule-not-behaving-as-expected/22585/4 "2018-06-07T15:36:35Z")

</div>

Fantastic! That helped, Thank you for the quick solution.
