Many thanks, Pete_UK. I will have a go by using INDEX to define the dynamic range.