# Using excel file conditions as selected row

**URL:** <https://discourse.psychopy.org/t/using-excel-file-conditions-as-selected-row/17466>\
**Category:** Builder\
**Created:** [October 22, 2020, 3:47pm UTC](https://discourse.psychopy.org/t/using-excel-file-conditions-as-selected-row/17466 "2020-10-22T15:47:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Willman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/james_willman/32/11376_2.png) [@James\_Willman](https://discourse.psychopy.org/u/James_Willman)\
**Post date:** [October 22, 2020, 3:47pm UTC](https://discourse.psychopy.org/t/using-excel-file-conditions-as-selected-row/17466/1 "2020-10-22T15:47:47Z")

</div>

I’m wondering if I could use an excel files conditions as the selected rows in the same trial? I am trying it right now but keeps giving me the error that the name isn’t defined.

I have a screenshot of what I am trying to do. Thank You.  
 ![Screen Shot 2020-10-22 at 8.47.14 AM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/5/65039a8442706c19ccd6242d403992f8db61154a.png)

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [October 22, 2020, 3:50pm UTC](https://discourse.psychopy.org/t/using-excel-file-conditions-as-selected-row/17466/2 "2020-10-22T15:50:53Z")

</div>

Hi, yes but you will need a second loop around your inner loop. So the inner loop will take the BlockRows.xlsx and the outer loop will take a conditions file that contains the header myIndicies 🙂

Becca
