How to range mixed data

This (with a slight modification) might help