How to reference columns by name based on comma separated value in another column