There should be an even number. It may not always be what I provided in File1_Before.xlsx, but for every Sum_ there will be a Detail_. I tried to run it using the FILE1_BEFORE.XLSX file.