I don't know if this would help but the following Input uses a single attribute to set the value taken from Input_val; if less than Min then Min is used, if more than Max then Max is used, otherwise the Input_val is used - not ideal but it might help reduce your code a bit:
=IF(Input_val<Min_val,1,0)*Min_val+IF(Input_val>Max_val,1,0)Max_val+Input_valIF(Input_val>=Min_val,1,0)*IF(Input_val<=Max_val,1,0)
Regards, S