Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
4/30/2017 9:07:17 AM EDT
I have a lot of news files that i have saved from ar15.com and converted them to text. I was wondering if there is a easier way to bring them into Excel

Right now I have to

copy the title to Cell A and then right click insert comment then add the text into that and doing that 500+ times is going to suck just wondering if there is a easier way then what I am doing now.
4/30/2017 9:17:04 AM EDT
[#1]
Comma separated? perhaps?
4/30/2017 9:17:44 AM EDT
[#2]
What format is the text?  Separate lines, comma separated, etc...

Depending how the text file is laid out, there may be a way to directly import it.  Otherwise, I would write a quick python script to take care of it.
4/30/2017 9:20:26 AM EDT
[#3]
I gotta ask: Why are you putting them in Excel?
4/30/2017 9:23:01 AM EDT
[#4]
That's abuse, but I can't decide whether the software or the user is getting the worst end of the deal.

Save the files in a text editor or Word, with a simple copy paste operation.
4/30/2017 9:24:24 AM EDT
[#5]
Quote History
Quoted:
I gotta ask: Why are you putting them in Excel?
View Quote
That's what I wanted to know
4/30/2017 9:26:01 AM EDT
[#6]
Quote History
Quoted:
That's abuse, but I can't decide whether the software or the user is getting the worst end of the deal.

Save the files in a text editor or Word, with a simple copy paste operation.
View Quote
The best justification for Excelhere might be a mass table format - Word gets wonky with a huge pile of tables.
A better option might be Access.
4/30/2017 9:29:43 AM EDT
[#7]
tab delimited
4/30/2017 9:31:44 AM EDT
[#8]
not sure why anyone would want to do this,but put the .txt files in a folder:

\myfolder\articlename.txt

then in excel create a link:

file:\\myfolder\articlename.txt


then you can search articles in excel and open them by clicking the link.
4/30/2017 9:36:03 AM EDT
[#9]
I am trying to short all the shit on my computer and cut down on files and folders every were. I also run into problems when copying a lot of small files


If there is a better way to do this in access let me know I have never used it but it looks like this


Title of the text file
***FBI and Grand Jury grilling 20 NYPD over bibery of cash and travel***

Then the news (I remove all the bull shit so its just the article makes it easy to read)

A grand jury also has been convened, sources said.

The investigation began with an unrelated deal-gone-awry involving the two
businessmen — Mayor de Blasio buddies Jona Rechnitz and Jeremy Reichberg,
well-placed sources said.

They gave a large sum of money to a third party who was supposed to buy
discounted liquor for them to sell at a profit, but investors lost their
money and the feds opened a fraud probe, sources said.

Wiretaps on the two businessmen’s phones revealed relationships with
several NYPD cops — and the probe soon led the feds to then-NYPD Chief of
Department Philip Banks and his close pal, Corrections union president
Norman Seabrook, sources said.

Reichberg, who lives in Borough Park, is a police buff known for his NYPD
connections, while Rechnitz is a deep-pocketed de Blasio donor from the
Upper West Side, sources said.

The businessmen became close friends with Banks and Seabrook, with the
foursome traveling together to the Caribbean and to Israel in 2014.

Rechnitz picked up both men’s tab for the Caribbean jaunt, sources said.
He also paid Seabrook’s airfare and hotel bills in Israel, while Banks
paid for the flight but allowed Rechnitz to pick up his lodging tab, sources
said.

Although he was on his personal time, Banks wore his NYPD uniform during a
visit to the Western Wall in Jerusalem, and when he returned to New York,
shared what he had learned with authorities here, sources said.

As a thank-you gift for all Rechnitz had done, Banks and Seabrook bought him
a pricey backgammon set made of ancient wood.

“[We] spent $5,000 on the backgammon set — custom-made from Israel —
so that nobody could say they bought me the [plane] ticket,’’ Seabrook
told The Post Monday
4/30/2017 9:53:00 AM EDT
[#10]
A database is what I would be looking to use, but bulk importing will be a pain.
4/30/2017 10:07:02 AM EDT
[#11]
A database is made for this. A spreadsheet holds data in RAM, a DB writes it to disk. You stand a good shot at losing your work in a spreadsheet.
However, importing the data requires a consistent data format, or you'll get GIGO.
4/30/2017 10:14:05 AM EDT
[#12]
Still not clear to me what you are trying to accomplish, but why not copy and paste the text into a text box?
4/30/2017 10:16:22 AM EDT
[#13]
Files from AR15?
Wtf?
Go ask the NSA help desk down the hall from you.
4/30/2017 10:26:41 AM EDT
[#14]
Why are you doing this OP? Genuinely curious.
4/30/2017 10:37:53 AM EDT
[#15]
Quote History
Quoted:
The best justification for Excelhere might be a mass table format - Word gets wonky with a huge pile of tables.
A better option might be Access.
View Quote View All Quotes
View All Quotes
Quote History
Quoted:
Quoted:
That's abuse, but I can't decide whether the software or the user is getting the worst end of the deal.

Save the files in a text editor or Word, with a simple copy paste operation.
The best justification for Excelhere might be a mass table format - Word gets wonky with a huge pile of tables.
A better option might be Access.
Few news articles contain tables.  Word 2013 is much better behaved than earlier versions and it is still my last choice for work, but copying articles is far easier by selecting the entire article,  ctrl c, then ctrl v into the destination.  Done.

Editing to clean out the trash is usually needed.

I will bet that a table of annotated links is better choice for this thread author.
4/30/2017 11:13:55 AM EDT
[#16]
I have many articles alot is news some is science and so on and so on. So having 1000 .txt files in just one folder can be searched and i can just open the txt file but I just don't want all of these individual txt files i want just 1 excel file. Its also easier to  share with other people when dealing with 1 files rather then 1,000 files

Yes ctrl C and Ctrl V is what I am doing now but its really slow going. But when you do that in excel the text covers many cells which is why i was doing the comments in excel.

I am trying to find a faster way but it looks like i might be shit out of luck and just have to work on it little by little
4/30/2017 11:20:25 AM EDT
[#17]
Quote History
Quoted:
I gotta ask: Why are you putting them in Excel?
View Quote
This... not really what excel is for
4/30/2017 11:21:11 AM EDT
[#18]
Open Excel.

Depending on what version of Excel you have, you'll have to figure out where the button is, but you want to "Record Macro"

Give the macro a name and a shortcut key (something like ctrl+J that you don't use for anything else in Excel).

Start recording. Go to file --> open and tell it "all files"

Select one of the files and click "open."

It'll bring up the Text Import Wizard.

You can tell it to use certain characters in the text file to separate cells (such as commas, semicolons, spaces, tabs, or whathaveyou - very useful for making a list of email addresses), or just have a set number of characters per column.

Finish to import the file, then do whatever editing you need to do - but only the editing that will be the same for all the files. Then click "Stop Recording."

When you click on the macro button, or hit your keyboard shortcut, it'll open up the "open file" dialog and you can click on a file and it'll do all that stuff automatically for you.

If you want to get fancy, you can hit alt+F11 to open up the VISUAL BASIC editor and you can google for help to make a dialog box to open ALL the files at once and process them, instead of doing them one at a time. If you're dealing with 500+ files, it may be faster to learn the basics of VISUAL BASIC (and it is pretty easy - I'm not a computer programmer at all!) and write the program than to do them all by hand. Especially if you think you might want to do this again later.
4/30/2017 11:31:55 AM EDT
[#19]
Quote History
Quoted:
A database is made for this. A spreadsheet holds data in RAM, a DB writes it to disk. You stand a good shot at losing your work in a spreadsheet.
View Quote
4/30/2017 11:33:31 AM EDT
[#20]
You should just install one note or Evernote.
4/30/2017 11:52:26 AM EDT
[#21]
As the_naked_profit stated, your best bet to do what you want in Excel is the macro system.

Though I'd give Access a try first, a database is better suited to hold that amount of data. Its been a while but IIRC Access has import wizards that might do what you want.
4/30/2017 12:02:30 PM EDT
[#22]
Quote History
Quoted:
I have many articles alot is news some is science and so on and so on. So having 1000 .txt files in just one folder can be searched and i can just open the txt file but I just don't want all of these individual txt files i want just 1 excel file. Its also easier to  share with other people when dealing with 1 files rather then 1,000 files

Yes ctrl C and Ctrl V is what I am doing now but its really slow going. But when you do that in excel the text covers many cells which is why i was doing the comments in excel.

I am trying to find a faster way but it looks like i might be shit out of luck and just have to work on it little by little
View Quote
I still don't understand why you're doing this.
4/30/2017 12:06:35 PM EDT
[#23]
Quote History
Quoted:
You should just install one note or Evernote.
View Quote
Good suggestion.  One of the guys that works for me uses One Note.
4/30/2017 12:12:03 PM EDT
[#24]
Quote History
Quoted:
I have many articles alot is news some is science and so on and so on. So having 1000 .txt files in just one folder can be searched and i can just open the txt file but I just don't want all of these individual txt files i want just 1 excel file. Its also easier to  share with other people when dealing with 1 files rather then 1,000 files

Yes ctrl C and Ctrl V is what I am doing now but its really slow going. But when you do that in excel the text covers many cells which is why i was doing the comments in excel.

I am trying to find a faster way but it looks like i might be shit out of luck and just have to work on it little by little
View Quote
You are better off searching individual files than spreadsheet tabs.  You will end up with many excel files, and won't be able to find anything quickly.  Excel is close enough to setting type by hand for this task.
4/30/2017 12:13:27 PM EDT
[#25]
Quote History
Quoted:


Good suggestion.  One of the guys that works for me uses One Note.
View Quote
The BT&E guys I work with use one note a lot. I've never used it but it seems to do a good job handling all the information we're generating for tests.
4/30/2017 12:15:37 PM EDT
[#26]
It can easily be done via VB in Microsoft Access or Excel. You can import the text from each text file into a database table field or an Excel cell.