Aarwangen is a municipality of the administrative district of Oberaargau in the canton of Bern in Switzerland.