You won't have to format anything just to gain access, don't worry.
I too faced a similar problem a year or two ago, when my uncle's laptop was in the same state as yours...
I followed the steps mentioned here:
How to reset Windows 7 password with USB | Windows 7 password reset USB
Worked like a charm for me...
It is always better to make a password reset disk/USB and keep it safe somewhere...