?
Solved

need a utility that  will flip contents of txt field

Posted on 2003-03-25
5
Medium Priority
?
233 Views
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
0
Comment
Question by:hiewall
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Expert Comment

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

Author Comment

by:hiewall
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
0
 
LVL 49

Accepted Solution

by:
dbrunton earned 150 total points
ID: 8207736
Suggestion.

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.
0
 

Author Comment

by:hiewall
ID: 8207793
Thanks --- good explanation !!
0
 

Expert Comment

by:vthoang
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".
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn different types of Android Layout and some basics of an Android App.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Starting up a Project

777 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