# Loop through array from excel row

**URL:** <https://forum.electroneek.com/t/loop-through-array-from-excel-row/429>\
**Category:** RPA Automation\
**Tags:** js, excel\
**Created:** [May 19, 2020, 11:52am UTC](https://forum.electroneek.com/t/loop-through-array-from-excel-row/429 "2020-05-19T11:52:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnp](https://forum.electroneek.com/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@bnp](https://forum.electroneek.com/u/bnp)\
**Post date:** [May 19, 2020, 11:52am UTC](https://forum.electroneek.com/t/loop-through-array-from-excel-row/429/1 "2020-05-19T11:52:25Z")

</div>

Hi,

how do I loop through an array from excel row?

the array looks like this:

{“A”:“0710002”,“B”:57144937913,“C”:57144937890,“D”:57144937937}

I know I can get an element with: - excel\_row\_content[“A”] -

But how can use that arry in a loop, since I cant calculate column names? Or is it possible to do so?

Thanks  
Benjamin

---

<div class="post-metadata">

**Author:** ![a.polianskii](https://forum.electroneek.com/user_avatar/forum.electroneek.com/a.polianskii/32/1683_2.png) [@a.polianskii](https://forum.electroneek.com/u/a.polianskii)\
**Post date:** [May 19, 2020, 4:38pm UTC](https://forum.electroneek.com/t/loop-through-array-from-excel-row/429/2 "2020-05-19T16:38:29Z")

</div>

Hi, @bnp !

You can also loop through the elements in the object. To do this, you must first extract the keys of this object using the `Object.keys` method. It’s possible to build such an algorithm:

 ![image](https://community.electroneek.com/uploads/default/original/1X/38ed6393748a06d981247af82346551707c02661.png)

If you have any questions, please feel free to ask!
