madhuchelliah
Board Regular
- Joined
- Nov 22, 2017
- Messages
- 226
- Office Version
- 2019
- Platform
- Windows
Hello all, i want to extract data from column A to column B using formula. If number of characters after the hyphen is less than or equal to 4 then it has to be copied to respective B column cell. Refer example. Thank you.
Book2 | ||||
---|---|---|---|---|
A | B | |||
1 | Heading | Extracted Data | ||
2 | AAAAAA-AA | AAAAAA-AA | ||
3 | BBBB-BB | BBBB-BB | ||
4 | CCCCC-CCCCC | |||
5 | DDDDDD-DDD | DDDDDD-DDD | ||
6 | EEE-EE | EEE-EE | ||
7 | FFFF-FFFFFF | |||
8 | GGGG-GGGG | GGGG-GGGG | ||
Sheet1 |