Excel batch modify, split, merge file names

Table of contents

Modify file names in batches

How to split a string in excel

how to merge strings in excel

convert excel formula result to text


Modify file names in batches

1. Obtain the file name of the file to be modified (enter the folder where the file name needs to be changed), and in this folder, create a new "Get file name list.bat" file

Create a new notepad and change the suffix to bat after writing the content. (requires 'Show file extensions' in the view setting)

The content is:

DIR *.*  /B >LIST.csv

2. Double-click to run the bat file

At this time, a csv file will be generated, which contains the file names of all files in the current folder. Delete other file names that do not need to be changed.

3. Open the csv file

Column A: original file name, column B: changed file name , column C: ren, input formula in column D: =C1&" "&A1&" "&B1

( The file name after the change involves splitting and merging , you can see the introduction at the back of the article )

4. Create a new text file in the current folder, open and copy the text in column D of step 3, paste it into it, save it, change the file name to XXXX.bat, double-click to run this file, and the file name will be broken. The modification was successful.

How to split a string in excel

how to merge strings in excel

=A1&B1&C1

=CONCATENATE(x,x,x)

Extended usage:

      

convert excel formula result to text

 

Guess you like

Origin blog.csdn.net/qq_41210783/article/details/114384028
Recommended