madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hello all, i want to extract data in a selected range of cells based on condition. If the 9th character is an alphabet, then the rest of the characters(from 10th) in the cell to be copied to the adjacent cell. If it is not an alphabet then from 9th character in the cell to be copied to the adjacent cell. In both cases after copying, the copied data should be deleted from the selected range. Please see the example for better clarity. Example is just for reference. Thank you.
Book1 | |||||||
---|---|---|---|---|---|---|---|
I | J | K | L | M | |||
14 | Input | Output | |||||
15 | 12345678A002X | 12345678A | 002X | ||||
16 | 12345678910 | 12345678 | 910 | ||||
Sheet1 |