ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Managing a picture folder with excel data (https://www.excelbanter.com/excel-discussion-misc-queries/113289-managing-picture-folder-excel-data.html)

Neil

Managing a picture folder with excel data
 
I have an Excel file with some 2000 records and a folder with some 4000
pictures, the file name of the picture is the same as the id name in the
excel spreadsheet. Over time the some of the pictures have become
redundant, how do I automatically delete the redundant pictures based on the
excel spreadsheet. Or is it a manual exercise

tia
--
neil

MyVeryOwnSelf

Managing a picture folder with excel data
 
I have an Excel file with some 2000 records and a folder with some
4000 pictures, the file name of the picture is the same as the id name
in the excel spreadsheet. Over time the some of the pictures have
become redundant, how do I automatically delete the redundant pictures
based on the excel spreadsheet.


Here's one way.

First use the DIR command-line operation to get a folder listing into a
text file. You can start with http://support.microsoft.com/kb/196158.

In a new sheet of the workbook, paste the entire text file into column A.

In column B of the new sheet, use IF and MID and concatenation to
(a) identify which lines are files and
(b) get the file names into column B.

On the new sheet, use VLOOKUP to identify which files have (or don't have)
a corresponding record.

On the original sheet, use VLOOKUP to identify which records have (or don't
have) a corresponding file.


All times are GMT +1. The time now is 03:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com