Hello pedjvak,
Not sure if the output of the attached workbook is what you want but it is a starting point. A new sheet has been added for the output. There is button at the top of the new sheet to run the macro. the macro is written for the data in this workbook. If you plan to use the macro in your other workbook, the macro will need to be updated. The statement that determines the last column of the data will need to be changed from "BM" to "IP, assuming 250 columns.
The macro will take some time to complete when run on a workbook 25000 rows by 250 columns. For my computer, I estimated about 23 minutes.
Bookmarks