What does で mean here in this sentence?


> みんな同じ地域で小学校から育ってきたところに学年で僕1人だけ渋谷から引っ越して入学したんだよね。

The で here confuses me, here is what I think the translation is and I'm not
sure if mine is even correct.

> When everyone from the same region grew up from elementary school, (Then the
> 2nd で confuses me)

I think the 2nd で serves as the location particle

> When everyone from the same region grew up from elementary school, in the
> school year I was the only one who moved from Shibuya to transfer to a
> school.

I'm pretty much confused on how the particles are used.




学年で means 同学年で(in the same grade), so it means "I was the only one who moved
from Shibuya in the same grade".




学年で means 同学年で(in the same grade), so it means "I was the only one who moved
from Shibuya in the same grade".

