Sorry, meant to include the version. It's 365. I've attached the spreadsheet with the code I found and was trying out.
Forum Rules