Tuesday, 25 July 2017

Rename multiple files using excel - Any format in less than 1 minute

Rename multiple files using excel -

There are 2 ways to rename file as far as I know. First one is just with single click and then change file name and second one by right click and choose rename option. It is very easy when number of files are less. But when there lots of files need to rename then above process will be time consuming and also boring. 

Today I'll show how to rename bunch files in just 1 minute with help of Excel. It's very simple and easy to understand.

There are two possibility - 


1. Do not have list of new names 
2. You have list of new names in Excel

We'll cover both possibilities in our tutorials. 

Lets Start -  

1. Do not have list of new names 

To rename multiple files in single folder quickly you have to download Change File Name file.



Once you download file then open that file. You can see below window. First you have to enable Macro to rename file. Click on Option and then mark Enable this content to Enable Marco.


There are 3 Columns in file

1. A column - Path of Old file names
2. B column - New Name
3. C column -  Path of New file names

Keep your all files in single folder which you want to rename. It will be better if you copy that folder on desktop. 

Now click on Get Files button and select destination folder where all files are kept. Then press Ctrl + A and select all files and hit Open.


You can see path of all files automatically updated in column A.


Then type new name of files in column B against old names. Here I want to rename all files in number sequence so I have written numeric number against same. After that click on Change File Name Button. It will update New Files path in column C.


Finally Click on Change Name in Folder button to rename multiple files at one time. You will get small error 400 which you can ignore that. Now check your destination folder. You notice that all files name have been rename to new file name.


2. You have list of new names in Excel

In case you have list of new name file in excel then you have to use some formula to get only name of new file in column B. All other processes are similar to above.

Suppose we have two columns contain in our file. First one is old name of files which we want to rename and second is new name of files. You can simply copy paste New names in column B in our master file and then follow other process.


We should noticed that sequence of both files are similar. Other wise result will be wrong. 

If suppose sequence of both files are different then we have to use lookup formula to update new file name in column B only against old file name in column A.

Here I have use below formula to get only names in column B without extension.

=VLOOKUP(MID(A11,28,4),[abc.xlsx]Sheet1!$C$2:$E$35,3,0)

Then follow same procedure as previously done in first condition.

Click on Clear Content if all files have been renamed to delete data.

Please keep below points in mind while renaming multiple files.

1. Not single file is open from files which you want to rename.
2. There should be no duplicate new name of files in column B
3. There should be no extension in column B
4. File should not be exist with same name in destination folder.

Please watch below video for live demonstration.
If you have any issue or any doubt then feel free to comments on this POST.

Hope you like above POST.

Thank you. 
 

33 comments:

  1. Where do I find the download button for the file :)? Must be dumb or something because I am not seing at the moment?

    ReplyDelete
    Replies
    1. Click on Download change file name 55 kb text

      Delete
    2. Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download Now

      >>>>> Download Full

      Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download LINK

      >>>>> Download Now

      Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download Full

      >>>>> Download LINK eD

      Delete
  2. when i wanted to get the files, it showed "type missmatch". why that happen? thank you

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. After renaming I've got Error 400 ...why is that

    ReplyDelete
  5. Superb tool! very useful! handy and lightweight! and its working fine
    Thank you for sharing

    ReplyDelete
  6. Excellent work! Just what I needed!

    ReplyDelete
  7. great application , but sir i also would like to change the file extension of all the file.. how do i do that?

    ReplyDelete
  8. How can I edit the VPA, password please....

    ReplyDelete
  9. Thanks for sharing this file dude, it is quite useful!
    I'll share your blog on my website also, was searching for something of this kind since a long time!

    Again, thanks
    iecivil.com

    ReplyDelete
  10. Please VBAProjecet Password
    Please
    Please

    ReplyDelete
  11. When loading the files it sorts the first entry to the bottom.

    ReplyDelete
  12. NICE ITS WORKING. THANKS FOR THIS.
    BUT I HAVE A PROBLEM. WHEN I CLICK GET FILE, THAN IF FOUND MY FIRST FILE IS IN END OF LIST.

    THANKS

    ReplyDelete
    Replies
    1. WHEN I CLICK GET FILE, THAN IF FOUND MY FIRST FILE IS IN END OF LIST. how can i fix this?

      Delete
  13. Hello

    Thanks for the wonderful effort!
    Question: I sometimes get an error stating - "File already exists" and a certain number of documents are not renamed. What's the cause and solution please?

    ReplyDelete
  14. TQ sooooo much u save my day....
    Keep guin buddy

    ReplyDelete
  15. does excel work on MAC OS X?

    ReplyDelete
  16. WHEN I CLICK GET FILE, THAN IF FOUND MY FIRST FILE IS IN END OF LIST. how can i fix this?

    ReplyDelete
  17. does this work on my mac

    ReplyDelete
  18. what we'll learning from that if you hide how you do that
    kindly share VBA code if you like to make it more useful than to make us just a users

    ReplyDelete
  19. Hello, I would like to also know how to filter in ascedning order, at first the first file shows at the bottom of the list, then if you filter in ascending order. It filters as 1 11 12 2 21 instead of 1 2 3 4 5 6 etc.. how can i change this. other than that thanks a bunch. great tool, i just cant start using it until i can clear that up as the name it will be renamed to is also in the same ascending order in a spreadsheet.

    ReplyDelete
  20. Dear sir,

    I have face that problem,
    An error stating - "File already exists" and a certain number of documents are not renamed. What's the cause and solution please?

    ReplyDelete
    Replies
    1. Please check new file names. It should not be same and no special character contains.

      Delete
    2. Even no special characters, no duplicate file naming

      Delete
  21. Many Thanks fnd..............

    ReplyDelete
  22. Hello
    First of all I would like to thank you for such cool work. Second I want to let you know that I am troubled using this work sheet as an error occurs and removes the vba script or micros you have made.
    Could you kindly please help me?

    Best Regards,
    Farshid

    ReplyDelete
  23. File already exists message is coming. How to solve it

    ReplyDelete
  24. Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download Now

    >>>>> Download Full

    Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download LINK

    >>>>> Download Now

    Computer Cool Tricks: Rename Multiple Files Using Excel - Any Format In Less Than 1 Minute >>>>> Download Full

    >>>>> Download LINK 1w

    ReplyDelete