Compare Values then Move files

Hello, I am attempt to create a loop that uses the list ordfldrtosrt from and excel speadsheet and compare it to the list in subfldoldtst and if it matches I want to move/copy files to a specific folders ON and OFF.
An example in the list in ordfldrtosrt from the spreadsheet

  • 1 - MAT - Matthew - ON
  • 2 - GEO - Geopath - ON
  • 3 - PAT - Path - OFF
  • 4 - GUS - Guspo - OFF
  • 1 - MAT - Matthew - ON
  • 2 - GEO - Geopath - ON
  • 3 - PAT - Path - OFF
  • 4 - GUS - Guspo - OFF
  • etc

An example in the list subfldoldtst from the Folder:

  • 1 - MAT - Matthew - ON
  • 2 - GEO - Geopath - ON
  • 3 - PAT - Path - OFF
  • 4 - GUS - Guspo - OFF
  • no duplicates in the folders

I tried to use the for loop to compare but I cannot make it happen. Can you assist me below? Thanks

ordfldrtosrt.append(str(yta.value) + ’ - ’ + ii.value + ’ - ’ + jj.value)`

 for root, d_names, f_names in os.walk(path):
    subfldoldtst.append(root)
       for itm in subfldoldtst:
          for itm2 in ordfldrtosrt:
             if itm and itm2 == True:
                print(itz)

The following is an update to the script when ran it does not provide a print out from on the print function. for your review. Thanks

for itm in range(0,len(subfldoldtst)):
        for itm2 in range(0,len(ordfldrtosrt)):
            if subfldoldtst[itm] == ordfldrtosrt[itm2]:
                #os.shutil(subfldoldtst[itm],)
                 print ("found a match " + str(subfldoldtst[itm]))
            elif itm2 == len(ordfldrtosrt):
                 print('It may not have worked')
        break