German Railways (DB) operates a train from Erlangen to Bamberg every 20 minutes. Tickets cost $17 - $24 and the journey takes 24 min. S-Bahn also services this route hourly. Alternatively, FlixBus operates a bus from Erlangen to Bamberg every 4 hours. Tickets cost $2 - $4 and the journey takes 35 min.
From Erlangen train to Bamberg. 24 min 13€. From Erlangen bus to Bamberg, Bamberg train. 35 min 3€. From Erlangen taxi to Bamberg. 26 min 105€. From Erlangen drive to Bamberg. 26 min 5€. From Erlangen rideshare to Bamberg. 48 min 2€.