Mac Applications

Question

Parsing data in iWork Numbers?

by Nielleshee / June 20, 2012 4:39 AM PDT

For example, say in Column A I have data formatted like this :

apple/orange
banana/pear
grape/fig

I want a function that can splits the data into two columns based on the "/" : so column B would say

apple
banana
grape

And Column C would say

orange
pear
fig


How do I go about doing this? Thanks everyone!

Answer This Ask For Clarification
Discussion is locked
You are posting a reply to: Parsing data in iWork Numbers?
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Parsing data in iWork Numbers?
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.

All Answers

Collapse -
Answer
Well I can do this
by MarkFlax Forum moderator / June 20, 2012 5:43 AM PDT

but it's not pretty. I never do pretty in spreadsheets Happy

And it is not Mac's iWorks Numbers, but Windows' LibreOffice spreadsheet; however the method will be the same.

I am sure there are much easier ways to do it, either using visual basic, (or the Mac macro equivalent), or specialised functions, but I've used just TEXT functions.

Working on just apple/orange in C4 (I always leave gaps top and sides when I start as I very often have to add data and columns).

C4=apple/orange

H4 finds the position of the slash, "/" with this; =SEARCH("/",C4,1) where 1 is the start of the text string. Answer = 6

I4 finds the length of the whole string with this; =LEN(C4) Answer = 12

J4 returns, (shows), the text from the last character to just before the "/"; =RIGHT(C4,I4-H4) Answer = orange

K4 returns, (shows), the first part of the text before the "/" with; =LEFT(C4,H4-1) Answer = apple

D4 now lists the separated 1st part with; =K4 Answer = apple
E4 lists the separated last part with; =J4 Answer = orange

Pull down formulas in all columns (except C), with the fill handle bottom right of the cells.

Columns D and E become the new separated list columns for the data in C

So the result looks something like;

Col D ---|-- Col E

apple ---|- orange
banana -|- pear
grape ---|- fig

Does that help?

Mark

Collapse -
Amazing!
by CheckOutMyBuddy / March 22, 2013 9:10 AM PDT
In reply to: Well I can do this

Rarely do I ever stop what im doing, register an account, and leave a reply comment...but this was so helpful I had to say thanks.

Kudos! Great Stuff! Thank you so much!

Popular Forums
icon
Computer Help 47,885 discussions
icon
Computer Newbies 10,322 discussions
icon
iPhones, iPods, & iPads 3,188 discussions
icon
Security 30,333 discussions
icon
TVs & Home Theaters 20,177 discussions
icon
HDTV Picture Setting 1,932 discussions
icon
Phones 15,713 discussions
icon
Windows 7 6,210 discussions
icon
Networking & Wireless 14,510 discussions

Tech Tip

Know how to save a wet phone?

It's not with a dryer and it's not with rice. CNET shows you the secret to saving your phone.