Solved

Aumatic data entry in Excel for Key Value Pairs

Posted on 2013-06-27
3
1,620 Views
Last Modified: 2013-07-11
I have a txt file with entries with lines in the format:

Name=Value
eg.
error.booking.wrong-cc=You entered an invalid credit card number. Please enter a valid one.


It was nearly four hundred lines like this and I was hoping there was a way to automate the entry of this data into a two column excel spreadsheet. There the equal sign is would begin the second column.

Does anyone know how this could be done?
0
Comment
Question by:onaled777
[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
3 Comments
 
LVL 6

Expert Comment

by:Michael
ID: 39282987
Hi,

In Excel you can import the text file and then use the 'Text to columns'  function:

1. On the Data tab
2. Click on Get External Data from Text
3. Select your text file
4. Select Delimited, Next
5. Deselect all other options and select 'Other' and type '=' (without the quotes)
6. Click Finish

Nou you should have your data split in two columns.
0
 
LVL 81

Expert Comment

by:byundt
ID: 39283269
If your data is already in Excel, then you can split it on the equals sign using the Data...Text to Columns menu item. You want to specify Delimited in the first step of the wizard and choose Other with = in the second step.
0
 
LVL 8

Accepted Solution

by:
itjockey earned 500 total points
ID: 39287174
After - Text To Column

insert  this formual in Column C - Cell C1
=TEXT("="&B1,"###")
Copy past up till your data.

Copy Column C past to Column B past special values.

Delete Column C

See Attached File.Copy your text data & past to Cell A1

Thanks
text-to-column.xlsx
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
vba search, delete, and enter 0 for entire sheet row A 13 29
Checking references in VBA 3 25
Tricky Shapes formula part 4 4 14
macro to compare 2 Excel columns. 14 28
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

733 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