Lewiy
Well-known Member
- Joined
- Jan 5, 2007
- Messages
- 4,284
Here’s a little challenge to add to PGC’s “tough problems”.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Using only a worksheet formula, return the negative of a 4-bit binary number in binary without using any of Excel’s number base functions (DEC2BIN(), BIN2DEC(), BIN2HEX(), etc.).
<o> </o>
e.g:
9 in binary is “1001” and -9 is “0111”, so starting with “1001”, return the result “0111”.
<o> </o>
Rules:
Shortest formula wins
No VBA – only worksheet formulae
No use of number base functions
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o> </o>
Using only a worksheet formula, return the negative of a 4-bit binary number in binary without using any of Excel’s number base functions (DEC2BIN(), BIN2DEC(), BIN2HEX(), etc.).
<o> </o>
e.g:
9 in binary is “1001” and -9 is “0111”, so starting with “1001”, return the result “0111”.
<o> </o>
Rules:
Shortest formula wins
No VBA – only worksheet formulae
No use of number base functions