See Live Example ↗️https://docs.google.com/spreadsheets/d/1EhXLccF8aE9XOzQAVMgYhGmJuCtWM4-U14ELVQ7jEmY/edit#gid=191960985TypeTemplate