Trouble connecting to 4G when Wifi enabled, but low signal
On Android 4.4, there is an option "Avoid poor connections" under Settings->Wi-Fi->Advanced(perhaps under the menu). You want to set this option on. 

This option is not present in Android 6. I'm not sure whether it's present in Android 5.1.