a newbie excel question

A friend had once given me a template to do something similar but I’ve lost it. I’m hoping someone can help me figure it out again here since I don’t really know what I’m doing yet.

I have a folder full of files that I want nested into certain sub-folders. I have an excel doc with the list of filenames and what folder they should go into. How do I look up the list form excel and move the files all in one go?
Thanks.

well i’ve figured out how do most of this sort of manually but i’m still a bit stuck. i’m building the move command in excel and then copying it into the script editor. the problem seems to be it isn’t putting a enter/carriage return at the end of what’s in a cell. any one know how to fix this? i don’t want to have to manually enter the enters since i’m trying to move over 200 files.
Thanks.