How to Represent ASN.1 Data Types in Excel with WPS Spreadsheets
Question details
The user needs to represent and classify ASN.1 data types such as integers, unsigned integers, UTF strings, floating-point values, and bit strings in an Excel-compatible spreadsheet.

- Product
- WPS Spreadsheets
- Device & OS
- not provided
- Scenario
- The user has ASN.1 type names and decoded values and wants a structured Excel worksheet to display or classify them.
- Observed behavior
- Excel-compatible spreadsheets do not expose native ASN.1 data types, so the type must be stored as text and the decoded value must be formatted or converted separately.
Have the ASN.1 type name and decoded value available for each record, and check whether the source data is already decoded text or still in BER/DER-encoded binary form before building the worksheet.
Create a structured ASN.1 type and value table in WPS Spreadsheets
Use this method for most classification and reporting tasks when the ASN.1 values are already decoded or can be pasted as text.
Because spreadsheets do not provide a native ASN.1 data type, the practical approach is to keep the ASN.1 type name in one column and the decoded representation in another. This keeps the worksheet Excel-compatible and avoids unwanted type coercion.
Launch WPS Office, open WPS Spreadsheets, and create a new blank workbook.
In row 1, enter headers such as Type, Length, Raw Value, Decoded Value, and Notes.
In the Type column, enter values such as INTEGER, UnsignedInteger, UTF8String, Float, and BIT STRING. Format the column as Text to prevent automatic changes.
Place the human-readable value in the Decoded Value column, using text format for UTF strings and bit strings and General or Number format for numeric values.

Convert and validate ASN.1 values with spreadsheet formulas
Use formulas when numeric ASN.1 values are stored as text and you need them as numbers, or when you want to validate type and value pairs.
Decode ASN.1 binary data with an external routine and import the result
Use this when the source is BER/DER-encoded binary and must be decoded before it can be represented cleanly in the spreadsheet.
Represent ASN.1 data types in a structured Excel-compatible table with WPS Spreadsheets
Store ASN.1 type names as text, keep decoded values separate, apply conversion formulas such as VALUE and TEXT, and save the workbook as an .xlsx file for Excel compatibility.
- 1. Create a new workbook in WPS Spreadsheets: Open WPS Office, go to the left menu and choose Sheets, then click Blank to start a workbook.
- 2. Build the ASN.1 type table: Enter Type, Length, Raw Value, and Decoded Value as column headers and format the Type column as Text.
- 3. Enter and format ASN.1 values: Type the ASN.1 type names and decoded values, using text format for UTF strings and bit strings and Number format for integers and floats.
- 4. Apply conversion formulas where needed: Use =VALUE(cell) to convert numeric text values to numbers, and keep long bit strings as text to avoid precision loss.
- 5. Save as Excel-compatible .xlsx: Click Menu > Save As > Excel Workbook (*.xlsx) to preserve the table for use in Excel and WPS Office.

Frequently Asked Questions
Does WPS Spreadsheets have a native ASN.1 data type?
No. Neither Excel nor WPS Spreadsheets provides a native ASN.1 data type. Store the ASN.1 type name in a text column and the decoded value in another column.
How can I keep ASN.1 bit strings from losing leading zeros or precision?
Format the bit string column as Text before entering values, and do not apply VALUE or numeric conversion to long bit strings.
Can WPS Spreadsheets decode BER/DER encoded ASN.1 binary directly?
WPS Spreadsheets cannot natively decode BER/DER ASN.1 binary data. Decode it with an ASN.1-aware Python, .NET, or VBA routine, then import the decoded CSV or XLSX file.
Which formula should I use to convert an ASN.1 integer stored as text?
Use =VALUE(cell), for example =VALUE(C2), to convert a numeric ASN.1 value stored as text into a number. Use =TEXT(C2,"General") to keep a string representation stable.
Is the resulting ASN.1 table compatible with Microsoft Excel?
Yes. Save the workbook as Excel Workbook (*.xlsx) from WPS Spreadsheets, and the table will open in Microsoft Excel with the same structure and formatting.




