Converting list of file names into Excel document.

Started by Last Hussar, 25 July 2023, 10:45:21 AM

Previous topic - Next topic

Last Hussar

Good Morning Gentlemen. And Nobby.

I am typing this from work, as this is a work related question.

I have a folder full of files, with Name, First Name, Reference Number as the file name

HORSEMAN, Heedless, AB123
HUSSAR, Last, ZX987

etc.

I have an Excel spreadsheet with this info on.

Is there a way to match the file names against the spreadsheet to see where they differ?

The Spreadsheet is correct - we need to know if there are files missing, or people not on the Spreadsheet that we still have the file for.

There are about 400 lines on the Excel file, and we don't really want to check by hand.

Any ideas?
I have neither the time nor the crayons to explain why you are wrong.

"The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little."
Franklin D. Roosevelt

GNU PTerry

Lord Kermit of Birkenhead

FOG IN CHANNEL - EUROPE CUT OFF
Lord Kermit of Birkenhead
Muppet of the year 2019, 2020 and 2021

Ithoriel

If you don't already have something set up to do this I suspect it would take longer to program than it would to get two people, one reading the file names and one the spreadsheet. The person reading the spreadsheet recites the list, the one checking file names sings out if there's a mismatch.

Sometimes manual procedures are best.

"Never underestimate the bandwidth of a stationwagon full of mag tape hurtling down the highway!"
There are 100 types of people in the world, those who understand binary and those who can work from incomplete data

fsn

Nah.

You just need to get a directory*, paste it into a new sheet on the spreadsheet. Remove all the preamble** and do a vlookup to see if you can find it.  :)


* In file explorer, highlight the files, then right click and select "copy as path"
** e.g.for files in my list "C:\Users\nobby\Downloads\Picture.png" I'd replace "C:\Users\nobby\Downloads\ and the final " to leave Picture.png


Lord Oik of Runcorn (You may refer to me as Milord Oik)

Oik of the Year 2013, 2014; Prize for originality and 'having a go, bless him', 2015
3 votes in the 2016 Painting Competition!; 2017-2019 The Wilderness years
Oik of the Year 2020; 7 votes in the 2021 Painting Competition
11 votes in the 2022 Painting Competition (Double figures!)
2023 - the year of Gerald:
2024 Painting Competition - Runner-Up!

smallchild139

Hi

Assuming windows, then an alternative is to open a command prompt and use dir>filename.txt, which will create a text file called filename.txt with the current folder filenames in it, which can then be read by excel.

You can navigate to the folder you want using the CD command (e.g. CD desktop takes you to the desktop folder)

There are various options for the dir commannd, which you can see using the dir /? command.

This works with all versions of windows (that I know of)

Mark

fsn

Lord Oik of Runcorn (You may refer to me as Milord Oik)

Oik of the Year 2013, 2014; Prize for originality and 'having a go, bless him', 2015
3 votes in the 2016 Painting Competition!; 2017-2019 The Wilderness years
Oik of the Year 2020; 7 votes in the 2021 Painting Competition
11 votes in the 2022 Painting Competition (Double figures!)
2023 - the year of Gerald:
2024 Painting Competition - Runner-Up!

Last Hussar

 :o

Nobby was... right? It worked... IT WORKED?

Who are you and what have you done with FSN?
I have neither the time nor the crayons to explain why you are wrong.

"The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little."
Franklin D. Roosevelt

GNU PTerry

Last Hussar

I said I would pass my thanks on to a man overly interested in Centurion Tanks.
I have neither the time nor the crayons to explain why you are wrong.

"The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little."
Franklin D. Roosevelt

GNU PTerry

fsn

You're more than welcome.

I do have my uses.  :)
Lord Oik of Runcorn (You may refer to me as Milord Oik)

Oik of the Year 2013, 2014; Prize for originality and 'having a go, bless him', 2015
3 votes in the 2016 Painting Competition!; 2017-2019 The Wilderness years
Oik of the Year 2020; 7 votes in the 2021 Painting Competition
11 votes in the 2022 Painting Competition (Double figures!)
2023 - the year of Gerald:
2024 Painting Competition - Runner-Up!

Last Hussar

I have neither the time nor the crayons to explain why you are wrong.

"The test of our progress is not whether we add more to the abundance of those who have much; it is whether we provide enough for those who have too little."
Franklin D. Roosevelt

GNU PTerry

Orcs

Quote from: Last Hussar on 26 July 2023, 04:58:26 PMMany of which are illegal,  immoral or fattening.
But they are the most fun things in life to partake of.  :)
The cynics are right nine times out of ten. -Mencken, H. L.

Life is not a matter of holding good cards, but of playing a poor hand well. - Robert Louis Stevenson