Looking for an excel formula

when cell A and B are empty than cell C must be 0 +
when cell A is equal to B than cell C must be 1 +
when cell A is bigger than B than cell must be 2 otherwise 0

*this must be 1 formula* anyone?
the following formula we used:


Just tested the i-podder.js script under Windows XP together with the new to be released Commodore e-VIC.
Working flawlessly. Automatically receive rss 2.0 enclosures and store it on the Music Player’s Harddrive. Kewl ..
Looking forward to more features like: progress indicator, detection if file already exist. Timer function, storage to specific folder according to file-extension .. etc. etc.