Solved

Aumatic data entry in Excel for Key Value Pairs

Posted on 2013-06-27
3
1,360 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
3 Comments
 
LVL 6

Expert Comment

by:Michael
Comment Utility
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 80

Expert Comment

by:byundt
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now