To offer something different, here is an AppleScript that will do this if you're using Numbers 3.1.
- Copy script from below and paste into AppleScript Editor, then "hit the hammer" to compile.
- Select the cells with the numbers in column A.
- Click the green run button in AppleScript Editor.
- Paste the result in the cell at the top of the second column (or wherever you want in any application on the Mac that can accept text).
--select cells with values, run script, select destination in Numbers or elsewhere, paste
set delimiter to "," -- change to space or tab as needed
try
tell application "Numbers" to tell front document to tell active sheet
tell (first table whose class of selection range is range)
set my_selection to the selection range
tell my_selection
set paste_str to ""
repeat with this_cell from 1 to (count of cells)
tell cell this_cell
set not_blank to value is not missing value
if not_blank then set paste_str to paste_str & value & delimiter
end tell
end repeat
end tell
if length of paste_str < 1 then error -- no non-blank cells selected
set paste_str to (characters 1 thru -2 of paste_str) as text --remove trailing ,
end tell
end tell
on error
display dialog "Select Cells" buttons {"Cancel"}
end try
set the clipboard topaste_str
display notification "Ready to paste" with title "Numbers"
return paste_str--this line optional - for testing in AppleScript Editor
-- end of script
SG