@Tobby - Would there always be only 2 numbers to extract..or may be more than 2...
Would be helpful if you share an example...in case, you wanna try on your own...try using SMALL or LARGE...instead of MAX
If you want all the row numbers in a single cell separated with a comma (,) than it cannot be possible through formula, we will need to use VBA for that.