No need to format before you install an OS. The installer can do that quite well. Just find your Windows 8 install disk and the license code and go ahead.

If, for some reason this scheme won't work, please tell why.

Kees