Find the index of a bin where a value between two bin value

Thank you, this is exactly what I need