Excel 16.0 build 20430
Windows, 64-bit, CPU not recorded
1,214 captured inputs are indexed for this environment. Capture dates: 2026-09-29 to 2026-09-29. This is a reading count, not a comparison with another build.
Engineering functions
Matches all 1,218 recorded answers
Recorded: 1,214 in the answer bank and 4 workbook cells. How we measure this · See the Rust code
| Language | Name in Excel |
|---|---|
| Arabic | HEX2BIN |
| Bulgarian | HEX2BIN |
| Czech | HEX2BIN |
| Danish | HEX.TIL.BIN |
| German | HEX2BIN |
| Greek | HEX2BIN |
| English (Australia) | HEX2BIN |
| English (United Kingdom) | HEX2BIN |
| English (United States) | HEX2BIN |
| Spanish | HEX.A.BIN |
| Estonian | HEX2BIN |
| Finnish | HEKSABIN |
| French | HEXBIN |
| Hebrew | HEX2BIN |
| Croatian | HEX2BIN |
| Hungarian | HEX.BIN |
| Indonesian | HEX2BIN |
| Italian | HEX2BIN |
| Japanese | HEX2BIN |
| Korean | HEX2BIN |
| Lithuanian | HEX2BIN |
| Latvian | HEX2BIN |
| Norwegian | HEX2BIN |
| Dutch | HEX.N.BIN |
| Polish | SZESN.NA.DWÓJK |
| Portuguese (Brazil) | HEX2BIN |
| Portuguese (Portugal) | HEXABIN |
| Romanian | HEX2BIN |
| Russian | ШЕСТН.В.ДВ |
| Slovak | HEX2BIN |
| Slovenian | HEX2BIN |
| Serbian (Latin) | HEX2BIN |
| Swedish | HEX.TILL.BIN |
| Thai | HEX2BIN |
| Turkish | HEX2BIN işlevi |
| Ukrainian | HEX2BIN |
| Vietnamese | HEX2BIN |
| Chinese (Simplified) | HEX2BIN |
| Chinese (Hong Kong) | HEX2BIN |
| Chinese (Traditional) | HEX2BIN |
Names from Microsoft's support site.
HEX2BIN(number, [places])
HEX2BIN(number, [places]) converts hexadecimal to binary. The result is text, with optional leading zeros controlled by places.
=HEX2BIN("2D",8) returns "00101101". All of these represent the same integer: decimal 45, binary 101101, octal 55, and hexadecimal 2D.
For a negative value, =HEX2BIN("FFFFFFFFD3",4) returns "1111010011". Decode 1099511627731-2^40=-45, then encode 1024-45=979 in ten binary digits. A positive source such as "200" is 512, outside the signed binary range, and gives #NUM!.
These engineering conversions use signed fixed-width encodings, not arbitrary-length integers. The source accepts at most ten digits; a full ten-digit encoding uses 40-bit two’s complement. FFFFFFFFFF represents minus one. Invalid source digits or an oversized input give #NUM!. For a positive result a width too small gives #NUM!. A negative result uses ten digits; the current code still validates an explicitly supplied width before emitting it, despite documentation describing the width as ignored.
Separate input parsing, signed interpretation and output formatting. Uppercase the source, validate its digit set and length, and accumulate raw=raw*16+digit with checked integer arithmetic. Only a full ten-digit source with its top bit set is negative: subtract 2^40 to obtain signed integer v. Check v against the 10-bit signed target range. If negative, encode 2^10+v in base 2 using ten digits. Otherwise use repeated division by 2, reverse the remainders and left-pad to the requested width. Truncate the width and validate it in the current supported range one through ten. Return text; a decimal number formatted to look similar is a different value kind.
Quoted from the public repository DnaCalc/DnaCalc, crates calc-func and calc-fml, at commit 9e1884369a67. Comments are the source's own. A kernel shared with other functions appears once, on its module page.
HEX2BIN · 1 lines · calc-func/src/catalogue/engineering.rs on GitHub7 hex2bin "HEX2BIN" (1, 2) [V "number", V "places"] |s, a, sv| { between(s, a, radix::hex2bin_kernel) }
hex2bin_kernel · 3 lines · calc-func/src/ported/engineering_radix_family.rs on GitHubpub fn hex2bin_kernel(number: &str, places: Option<f64>) -> Result<ExcelText, WorksheetErrorCode> {
source_to_target_kernel(number, places, HEX_SPEC, BIN_SPEC)
}
radix_kind catalogue/engineeringplaces catalogue/engineeringbetween catalogue/engineeringint_to_base ported/base_fnbase_kernel ported/base_fnupper_ascii_digit_value ported/engineering_radix_familynormalize_radix_text ported/engineering_radix_familyparse_radix_text ported/engineering_radix_familynormalize_places ported/engineering_radix_familymin_signed_value ported/engineering_radix_familymax_signed_value ported/engineering_radix_familyencode_signed_value ported/engineering_radix_familysource_to_target_kernel ported/engineering_radix_familyNo implementation has been published with a Handbook test suite for this function.
The recorded environments below distinguish a reading from a same-input comparison. Counts describe captured inputs in each environment; overlapping captures and comparisons are not totals of unique worksheet calls.
| Excel 16.0 build | Platform and CPU | Captured inputs |
|---|---|---|
| 20430 | Windows, 64-bit, CPU not recorded | 1,214 |
The record contains no same-input comparison between these environments. Reading different inputs on different builds does not establish either a version change or cross-build agreement.
Recorded environments and comparison details.
Windows, 64-bit, CPU not recorded
1,214 captured inputs are indexed for this environment. Capture dates: 2026-09-29 to 2026-09-29. This is a reading count, not a comparison with another build.
BIN2HEX converts in the reverse direction. BASE and DECIMAL provide general radix conversion with different sign rules. A full-width negative engineering encoding is not a minus-prefixed numeral; choose the pair whose sign convention fits your input.
No named variants are recorded yet.
Suggest a correction or contribute an implementation · For agents