How to split a row into a table using index match