Technically speaking, unless there's a reason otherwise, all versions of Microsoft office should work with Windows 10. However, the official answer from Microsoft is as follows:

As of present, the following versions are compatible with Windows 10:

Office 365 (Version 16)
Office 2019 (Version 16)
Office 2016 (Version 16)
Office 2013 (Version 15)
Office 2010 (Version 14)

As for Microsoft Office 2007, its support is over with Microsoft, thus the company hasn't officially tested it with Windows 10. However, it will install and run well with Windows 10. All versions prior to Microsoft Office 2007 are out of support period. They may or may not work with Windows 10 and Microsoft does not want to comment about the same.