Pestomania
Active Member
- Joined
- May 30, 2018
- Messages
- 332
- Office Version
- 365
- Platform
- Windows
I have a dataset that I cannot modify as it is a kick out from a database. In some cases the value has a 0 at the beginning and sometimes it does not. This causes parsing problems.
I have put together the "current data return" and "the correct data" in the below data. How can I write a formula that will parse the data to ensure the 0# in the center is the floor and everything before is the location and everything after is the post?
I have put together the "current data return" and "the correct data" in the below data. How can I write a formula that will parse the data to ensure the 0# in the center is the floor and everything before is the location and everything after is the post?
ASSETS by BUSUNIT.xlsx | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Data | Location | Floor | Post | Data | Location | Floor | Post | |||
2 | 03224R01BB26 | 03224R | 01 | BB26 | 03224R01BB26 | 03224R | 01 | BB26 | |||
3 | 03224R01N13 | 03224R | 01 | N13 | 03224R01N13 | 03224R | 01 | N13 | |||
4 | 02278M02A10 | 02278M | 02 | A10 | 02278M02A10 | 02278M | 02 | A10 | |||
5 | 02278M02B08 | 02278M | 02 | B08 | 02278M02B08 | 02278M | 02 | B08 | |||
6 | 03224R01 | 03224R | 01 | 03224R01 | 03224R | 01 | |||||
7 | 03224R01BB32 | 03224R | 01 | BB32 | 03224R01BB32 | 03224R | 01 | BB32 | |||
8 | 03224R01G26 | 03224R | 01 | G26 | 03224R01G26 | 03224R | 01 | G26 | |||
9 | 5508701B08 | 550870 | 1B | 08 | 5508701B08 | 55087 | 01 | B08 | |||
10 | 5506101C02 | 550610 | 1C | 02 | 5506101C02 | 55061 | 01 | C02 | |||
11 | 5506101D09 | 550610 | 1D | 09 | 5506101D09 | 55061 | 01 | D09 | |||
12 | CURRENT Data | Correct Data | |||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B11,G2:G8 | B2 | =LEFT(A2,6) |
C2:C11,H2:H8 | C2 | =MID(A2,7,2) |
D2:D11,I2:I8 | D2 | =MID(A2,9,5) |