From myside i can sum up these points
Looping through all rows using Find Children on the container that holds all the rows.
For each child (i.e., table row), use Get Text to check if the surcharge name variable value exits
Once found, use Get Attribute on that child row to fetch the constant tableRow value.
Now that you have the row number (e.g., 5), dynamically construct your selector to enter data into the correct column of that row.
Hope this helps