Hi T2YUKI,
I like SGIII's AppleScript solution (find the fifth word). Neat solution, SG! 🙂.
In Numbers, (without AppleScript) it is an interesting challenge.
This forum does not always show screen shots. I have given up on screen shots, and this table was copied and pasted from Numbers. To make it easier when referring to cells, I have added another column (new column A) and another row (row 1).
A | B | C | D | E | F |
Row | String | Decimal Point | Price | Next Space | Previous Space? |
3 | 2014 HLF NOV 22 30.00 PUT | 19 | 30.00 | 22 |
|
4 | 2014 HLF NOV 22 300.00 PUT | 20 | 00.00 | 23 |
|
5 | 2014 HLF NOV 22 9.00 PUT | 18 | 9.00 | 21 |
|
6 | 2014 HLF NOV 22 8.50 PUT | 18 | 8.50 | 21 |
|
7 | 2014 Gobbledygook NOV 22 30.00 PUT | 28 | 30.00 | 31 |
|
Formula in C3 (and Fill Down
=SEARCH(".",B3)
(Assuming that the decimal point is the first "dot" in A3 B3)
Formula in D3 (and Fill Down)
=MID(B3,SEARCH("??.??",B3),5)
But that misses the first character (3) in 300.00 and adds the space before 9.00 and 8.50
Formula in E3 (and Fill Down)
=SEARCH(" ",B3,C3)
That is, look for the next space in B3, starting from the decimal point.
Previous space is our next challenge.
... I just saw an email reply from Wayne...
copy the data into a text editor and replace all the spaces with tabs then copy and paste back into Numbers. each item (field) will now be in its' own column
How simple! Thanks, Wayne! 🙂.
Regards,
Ian.
Edit (Assuming that the decimal point is the first "dot" in A3 B3)