
The Excel DEC2OCT function converts a decimal number to its octal equivalent.
Converts a decimal number to octal
Octal number
=DEC2OCT (number, [places])
The input must be a valid decimal number within the range [ -2^29, 2^29 - 1 ].
Excel internally represents octal numbers in binary using 30 bits. The first bit indicates whether the number is positive or negative. The remaining bits indicate the magnitude of the number.
The reason why -3 maps to 7777777775 is because excel represents negative numbers internally (in binary) using the two's complement notation. Two's complement notation, when converted to Octal, starts at the highest 10 digit octal number and goes backwards.

The Excel DEC2OCT function converts a decimal number to its octal equivalent.
Converts a decimal number to octal
Octal number
=DEC2OCT (number, [places])
The input must be a valid decimal number within the range [ -2^29, 2^29 - 1 ].
Excel internally represents octal numbers in binary using 30 bits. The first bit indicates whether the number is positive or negative. The remaining bits indicate the magnitude of the number.
The reason why -3 maps to 7777777775 is because excel represents negative numbers internally (in binary) using the two's complement notation. Two's complement notation, when converted to Octal, starts at the highest 10 digit octal number and goes backwards.