# No method matching iterate(::XLSX.Worksheet)

**URL:** <https://discourse.julialang.org/t/no-method-matching-iterate-xlsx-worksheet/57371>\
**Category:** General Usage\
**Created:** [March 17, 2021, 10:57am UTC](https://discourse.julialang.org/t/no-method-matching-iterate-xlsx-worksheet/57371 "2021-03-17T10:57:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaropro14](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yaropro14](https://discourse.julialang.org/u/Yaropro14)\
**Post date:** [March 17, 2021, 10:57am UTC](https://discourse.julialang.org/t/no-method-matching-iterate-xlsx-worksheet/57371/1 "2021-03-17T10:57:57Z")

</div>

file = XLSX.readxlsx(“ASG data 14.06.2018 (new data).xlsx”)  
f\_curves = file[“Curves”]  
DP = f\_curves[“C48:C56”] # (old) peak power consumption forecast by 2035, GW  
Seasons = f\_curves[“B28:E36”]  
D=Seasons.\*DP  
f\_gen\_and\_costs = file[“Generation\_and\_costs”]

MethodError: no method matching iterate(::XLSX.Worksheet)  
Closest candidates are:  
iterate(::Pkg.Resolve.NodePerm, ::Any…) at /Users/julia/buildbot/worker/package\_macos64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/maxsum.jl:228  
iterate(::Test.GenericString) at /Users/julia/buildbot/worker/package\_macos64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1589  
iterate(::Test.GenericString, ::Integer) at /Users/julia/buildbot/worker/package\_macos64/build/usr/share/julia/stdlib/v1.5/Test/src/Test.jl:1589

---

<div class="post-metadata">

**Author:** ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Post date:** [March 17, 2021, 12:14pm UTC](https://discourse.julialang.org/t/no-method-matching-iterate-xlsx-worksheet/57371/2 "2021-03-17T12:14:15Z")

</div>

Hi, have you read the post: [PSA: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757)? It is very helpful to those reading your question if you follow the conventions outlined there. In particular, it is very difficult to tell which line is throwing the error from the code you have posted, and a “minimum working example” would make it much clearer.

In addition, have you taken a look at the documentation for XLSX? It features a [Tutorial · XLSX.jl](https://felipenoris.github.io/XLSX.jl/stable/tutorial/) that could shed light on what is happening.
