I have a Column A that contains integers. In some cases, the column will contain a comma-separated list of two integers represented as a string.
Example: 1,2 . In this situation I need to do two things.
- Identify if data has comma or not. If not populate value into Column B.
- If it does have a comma, it needs to populate the first number into Column C and the Second into Column B
If it helps to understand the problem better, we have a data vendor that has updated an ID field in their data. Their idea of maintaining the legacy ID is to simply list it followed by the new ID separated by a comma. Why they choose to do this instead of creating new columns I have no idea. I am sure they have their reasons.