Hi!
I've a library "Upload Library", where I upload the images (PNG, JPG, BMP, GIF). I choose the category from drop-down menu. For example "PNG". 
Then, based on the value in the Category field, the file is assigned an ID/type by concatenation of the Category fields and the value of the corresponding number in the Index_List. For example "PNG_0". After that, 'one' will be added to the number in the sheet and the next file with this extension will have Type/ID "PNG_1".
The file should move to the correct folder in the library "Destination_Library", according to the specified category. If the folder doesn't already exist, create a new one.

So, my question is, how can we choose the right number from the list "Index_List" to set the desired Type/ID for the file. And if we create a new category, how to add it to this sheet and take the number?
Thanks!