# List.Indexof Value -1

**URL:** <https://forum.dynamobim.com/t/list-indexof-value-1/100345>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [April 23, 2024, 8:25am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345 "2024-04-23T08:25:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikhsan.pc](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@ikhsan.pc](https://forum.dynamobim.com/u/ikhsan.pc)\
**Post date:** [April 23, 2024, 8:25am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345/1 "2024-04-23T08:25:02Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/61604ab0c0a7f0deb67f19513faefa6c5cdbd6d6.png)  
Why yes if the data from excel output is -1, while if it is made from within dynamo he managed to retrieve the index of it, even though the data is the same integer

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 23, 2024, 8:31am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345/2 "2024-04-23T08:31:59Z")

</div>

Hi @ikhsan.pc you are sure its the same object type ?

 ![Skærmbillede 2024-04-23 103049](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/3/b3dbbd2d6654c36fa4e01de7c1ae825e1e1dbda5.png)

---

<div class="post-metadata">

**Author:** ![ikhsan.pc](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@ikhsan.pc](https://forum.dynamobim.com/u/ikhsan.pc)\
**Post date:** [April 23, 2024, 8:43am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345/3 "2024-04-23T08:43:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/7/3772e85f508dbdae79258a32969a516948d2c4d4.png)  
oh okay, different object type, in order to use index of how?

---

<div class="post-metadata">

**Author:** ![sovitek](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/sovitek/32/116237_2.png) [@sovitek](https://forum.dynamobim.com/u/sovitek)\
**Post date:** [April 23, 2024, 8:46am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345/4 "2024-04-23T08:46:18Z")

</div>

you can fix it with math ceiling or floor in that case

 ![Skærmbillede 2024-04-23 104552](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/6/66997b3a3990a1febb86bb8e5bff3357943bc367.png)

---

<div class="post-metadata">

**Author:** ![ikhsan.pc](https://avatars.discourse-cdn.com/v4/letter/i/e68b1a/32.png) [@ikhsan.pc](https://forum.dynamobim.com/u/ikhsan.pc)\
**Post date:** [April 23, 2024, 8:48am UTC](https://forum.dynamobim.com/t/list-indexof-value-1/100345/5 "2024-04-23T08:48:18Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e17c613159c872f7116352f4edaf8facc5be0384.png)  
thank you very much solved
