FrenchCadeau
Programmer
I have a worksheet that has several thousand rows and I need to extract the numbers, into separate cells, that are to the far right of the row and the length is different for each row. There are three numbers that I want to pull into separate cells.
Example of the data:
24 P1-SAC-LEV4 X(04). 48 51 4
21 ORG-STRE-CODE-AGCY X 101 102 2
20 I-CD 5 34 30
However, every once in a while the last number contains a "P"
Basically starting at the first cell to the right of the data row, I would like to have 48 on the row starting with 24 and 101 on the row starting with 21 and 5 on the starting with 20
Next cell would be 51 for row starting with 24, 102 for the row starting with 21 and 34 for the last example row
Third and final cell, self explanatory, however, I want to drop the "P" in the final row so I only have 30 as the value.
I know this is asking allot but I wouldn't even know where to start or even know if this is possible. Thank you very much.
Example of the data:
24 P1-SAC-LEV4 X(04). 48 51 4
21 ORG-STRE-CODE-AGCY X 101 102 2
20 I-CD 5 34 30
However, every once in a while the last number contains a "P"
Basically starting at the first cell to the right of the data row, I would like to have 48 on the row starting with 24 and 101 on the row starting with 21 and 5 on the starting with 20
Next cell would be 51 for row starting with 24, 102 for the row starting with 21 and 34 for the last example row
Third and final cell, self explanatory, however, I want to drop the "P" in the final row so I only have 30 as the value.
I know this is asking allot but I wouldn't even know where to start or even know if this is possible. Thank you very much.