Thanks for that Julius. I seem to have got it working now.
It seemed the problem was that I’d got the ‘When an input is changed’ set on one of the fields, but not the other. Strangely, when I was changing the field I had specified it wasn’t updating the repeating group until I clicked out of the field I’d changed. I have not set two workflows up; one for each field and it is now working perfectly.