mid command to locate commas

S

steve

I have a table with a name field that looks like this:

jones, rhonda
buckley, riley
adams, bill
jefferson, tom

I want to create two new fields: one for first name, one
for last name. Can the mid command (or some version of
the 'len', 'trim' commands) locate the comma and give me
all characters prior to the comma for the last name, and
all characters beyond the comma for the first name?

I want my output to be in these two fields:
LAST NAME FIRST NAME
jones rhonda
buckley riley
adams bill
jefferson tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top