in reply to How to recognize Word and XLS files

I found this link: file sigs.
starting with: D0 CF 11 E0 A1 B1 1A E1
DOC, DOT, PPS, PPT, XLA, XLS, WIZ Microsoft Office applications (Word, Powerpoint, Excel, Wizard) (See also Word, Powerpoint, and Excel "subheaders" at byte offset 512)
So evidently the "magic" at the beginning just says that this is a MS Office document. There is an additional field at byte offset 512 that gives the sub-type. There appears to be some freeware apps at that link that will figure this out. If that fails, I guess you could do some hacking to figure out what the difference is at byte 512 yourself.

Update: I did some hacking around on some of my files. I suspect that different versions of MS Office have different formats - I'm not finding the signatures that some folks claim should be there in my Excel 2000 file - but maybe my brain isn't counting byte offsets right this late evening! However, I did notice that
57006F00 72006B00 62006F00 6F006B00 W.o.r.k.b.o.o.k
appears in my .XLS file. So maybe worst case, there is some adhoc string that can be found to search for that will give you the answer you need?