|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
The Gavel
Join Date: Dec 1999
Location: Upland, CA
Posts: 6,311
|
Can this be done in Excel?
I have a cd with about 2,000 jpg photos on it. I need to get the file names only of all 2,000 jpg photos into an Excel spread sheet. In other words, I need a “list” of all the filenames in Excel. Is there some way to bring them (the filenames) into Excel without having to “copy and paste” each filename into a cell in Excel?
__________________
"To speak ill of others is a dishonest way of praising ourselves" |
|
|
|
|
|
#2 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 37,777
|
http://j-walk.com/ss/excel/usertips/tip077.htm
You can modify the directory listing accordingly - example - dir d:\*.jpg /s /b >c:\filename.txt Last edited by glc; 01-12-2007 at 03:39 PM. |
|
|
|
|
|
#3 |
|
The Gavel
Join Date: Dec 1999
Location: Upland, CA
Posts: 6,311
|
Cool. Thanks g!
|
|
|
|
|
|
#4 |
|
The Gavel
Join Date: Dec 1999
Location: Upland, CA
Posts: 6,311
|
OK, I got that to work, but I have another question. I was able to create the txt file and open it in Exel. However, the photo filenames have the path in front of them, eg: c:\photo.jpg. How do I quickly remove the path name in front of the photo's filename in Excel? The path name is the same in front of every photo's filename.
|
|
|
|
|
|
#5 |
|
Come in Ray...
Join Date: Sep 2004
Posts: 1,668
|
Assuming your path is always c:\ and the filename is in column A, this formula would work:
Code:
=MID(A1,4,100000) If your files were in c:\photos\picture.jpg, this would work: Code:
=MID(A1,11,100000) |
|
|
|
|
|
#6 |
|
The Gavel
Join Date: Dec 1999
Location: Upland, CA
Posts: 6,311
|
Thanks. I'll give it a try.
|
|
|
|
|
|
#7 |
|
Forum Administrator
Staff
Premium Member
Join Date: May 2000
Location: Joplin MO
Posts: 37,777
|
How about opening the text file in Word and using Edit - Replace and replacing c:\ with nothing? That should even work directly in Excel too.
|
|
|
|
|
|
#8 |
|
The Gavel
Join Date: Dec 1999
Location: Upland, CA
Posts: 6,311
|
Yeah, that sounds good too.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Excel ActiveX Warning Disable | Stuey | Software Discussion & Support | 2 | 11-14-2005 04:49 PM |
| need to open excel spreadsheet | carolinagurrl | Software Discussion & Support | 4 | 02-26-2005 06:41 PM |
| Excel prob: Compile error in hidden module | calamospiza | Software Discussion & Support | 2 | 09-24-2002 04:12 AM |
| Excel data Formatting | fifi | Software Discussion & Support | 1 | 06-07-2002 12:08 PM |
| How to convert Lotus 123 to Excel? | robbsafc | Software Discussion & Support | 3 | 03-09-2002 04:31 PM |