Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


need a utility that  will flip contents of txt field

Posted on 2003-03-25
Medium Priority
Last Modified: 2010-04-17
I have a large text file (pc file) that is comma delimited. the second field on that file is "first name  last name" i.e  Tiger Woods

is there something that can read the field from rigt to left snd when it reaches a blsnk save the characters that it checked as last name and then put the rest of the field as first name. i.e  Woods, Tiger
Question by:hiewall
  • 2
  • 2

Expert Comment

ID: 8207338
easiest: Import with access, move column, export.

Author Comment

ID: 8207701
That will not work ---- the first name and last name are in the same field and get inported into one column. If they were comma delimited then what you say would work
LVL 50

Accepted Solution

dbrunton earned 150 total points
ID: 8207736

Import into Excel
Remove all columns except the second column which should contain the "first_name second_name"
Global search and replace.  Replace the space with a comma.
Save as text file
It's now comma delimited.
Import into Excel.
You should now have two columns.
Move columns so that they are in reverse order.

Author Comment

ID: 8207793
Thanks --- good explanation !!

Expert Comment

ID: 8211395
you are free to select your delimiter type.
"space".  you don't have to go with the
default "," delimeter when importing.

excel has a 65K row limit, you'll lose data
if your text file has more than that.. which
you've indicated as "large".

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question