furbreath wrote:
Here is a sample of what might be in cells A1 through to A4 :
| 022-39567780 YYZ CDG 7 1091.0 2.94 Completely assigned to the booked flight. SCR LOGISTICS CDA INC 2 |
| 022-36952915 YYZ NTE 7 841.0 2.22 Goods have arrived at the station. BEMACER 2 |
| 022-39549720 YYZ SXB 7 369.0 .47 Completely assigned to the booked flight. ORC OVERSEAS RETRO CONSOLIDATORS 3 |
| 023-39147743 YYZ TLS 5 803.0 2.65 Completely assigned to the booked flight. STL CARGO AIR CARGO LOGISTICS INC 1 |
I need to parse out all what is considered data so that I can manipulate it further with formulas. As an example this is how I would like the first line to be separated :
022-39567780 YYZ CDG 7 1091.0 2.94 Completely assigned to the booked flight. SCR LOGISTICS CDA INC 2
Assuming your sample is representative of your data, i.e. you have strings that you need to parse into separate columns, you will probably find it easier to use a script.
The one below will do this:

To use, you copy-paste the script into Script Editor (in the Applications > Utilities folder), and in this example select cells A1:A4 (the ones with the strings you need to parse) and click the 'run' button. After the prompt in this example I clicked once in cell B1 and typed command-v to paste. You could paste somewhere else as well. That's it! Post back if you have any problems.
SG
tell application "Numbers"
tell front document to tell active sheet
tell (first table whose selection range's class is range)
set selRng to selection range
set pasteStr to ""
repeat with c in selRng's cells
set pasteStr to pasteStr & my parseText(c'svalue) & return
end repeat
end tell
end tell
end tell
set the clipboard topasteStr
display notification "Click once in Numbers cell and command-v to paste"
return pasteStr
to parseText(textToParse)
try
set col1 to textToParse's text 1 thru 12 --> "022-39567780"
set col2 to textToParse'sword 3 --> "YYZ"
set col3 to textToParse'sword 4 --> "CDG"
set col4 to textToParse'sword 5 --> 7
set col5 to textToParse'sword 6 --> "1091.0"
set col6 to textToParse'sword 7 -->"2.94"
set col8 to textToParse's characters ((offset of ". " in textToParse) + 2) thru -1 as text ¬
-->"SCR LOGISTICS CDA INC 2"
set col7Start to (offset of col6 in textToParse) + (length of col6) + 1 --> 37
set col7End to (offsetofcol8intextToParse) - 2 --> 79
set col7 to textToParse'scharacterscol7Start thru col7End as text ¬
--> "Completely assigned to the booked flight."
return col1 & tab & col2 & tab & col3 & tab & col4 & tab & col5 & tab & col6 & tab & col7 & tab & col8
on error
display dialog "Select only cells with data you want to parse." buttons "Cancel"
end try
end parseText