Hi there Statlist community!

I am currently working on summarizing home value appreciation by neighborhood over time, and am wondering if there's a smarter way to do what I'm doing. In order to get median home values for each year by neighborhood, I've been doing

bysort saleyear: sum saleprice if neighborhood==1, detail

for each neighborhood, which has been time-consuming and cumbersome for my ultimate goal of a nicely-formatted multiple line graph in excel (with one line for each neighborhood, values on the y-axis, and year on the x). Does anyone have any ideas for a smarter, smoother way to do this? Thank you so much in advance for your help and best wishes!