SAVING FILES IN 2 SEPARATE FOLDERS

Hi @lovebau, you should be able to adapt the idea from this thread.

Basically look at the part with the group loop, and where it mentions commodity/category, this is equivalent of your “close in system”.

You might want to replace excel writer with csv writer or whatever file output format you want.