Skip to main content
All CollectionsYour DataUnderstanding and Managing your Data
Understanding Excel's Limitation with 16-Digit Numbers (with Solutions)
Understanding Excel's Limitation with 16-Digit Numbers (with Solutions)

Learn how to prevent Microsoft Excel from truncating data in Social Sync (and Facebook) data exports

Stuart Frank avatar
Written by Stuart Frank
Updated over 11 months ago

Microsoft Excel, a widely used spreadsheet program, is renowned for its versatility and functionality in handling data. One notable limitation, however, is its inability to accurately handle 16-digit numbers.

This issue impacts various applications, including the handling of transaction or fundraiser IDs from platforms like Facebook and Social Sync.

Let's delve into why this limitation exists and outline solutions to mitigate its effects.

The 16-Digit Number Limitation:

Excel stores numeric data using a floating-point number system, which imposes a maximum precision of approximately 15 significant digits. When attempting to input or manipulate 16-digit numbers in Excel, the program may truncate the digits beyond the 15th position, leading to data inaccuracies and loss of information.

This limitation arises from the internal representation of numeric data in Excel and is a fundamental constraint of the software architecture.

Impact on Transaction/Fundraiser/other IDs:

Platforms like Social Sync and Facebook generate unique transaction or fundraiser IDs consisting of 16 digits to track and manage user interactions, donations, or fundraising activities.

When attempting to import or analyse such IDs in Excel, users may encounter issues due to Excel's 16-digit limitation. This can result in incomplete or incorrect data representation, potentially compromising the accuracy and integrity of analyses or reports.

In practice, Excel will typically convert these transaction IDs into a exponential format, like so:

Unfortunately, the advice for this that is most easily found via an online search doesn't help solve the problem. This advice will typically suggest that you simply select the column affected and choose to Format as Text.

At first glance this does appear to work and the exponential formatting has been removed. On closer inspection however, some data truncation will still have occurred. Although the numbers appear fixed, you'll notice that the 16 digits numbers only have 15 significant digits. To clarify:

####,####,####,####

Will have been converted to:

####,####,####,###0

Whatever the final digit was, it will have been converted to a zero! 😱


How can I really fix the issue?

Unfortunately there's no one-size fits all answer to this question and we don't expect Microsoft to fix the issue as its been a longstanding issue for many years.

There are however a couple of options available:


1. Use an alternative software:

An obvious solution, worth mentioning - use something like Google Sheets, Apple Numbers instead of Microsoft Excel. Both of these are free (Numbers for Mac users only) options. We realise, however, that they may not be an option for everyone, e.g. for organisational/security reasons.

2. Open the data in Excel via data import:

Assuming you have to use Excel the following workaround should work, although the exact steps may vary based on your specific version/OS you're using.

  1. Open Excel: Launch Microsoft Excel on your computer.

  2. Open a New Workbook: If you're starting a new Excel file, open a new workbook. If you already have an existing workbook where you want to import the data, open that workbook instead.

  3. Navigate to the Data Tab: Click on the "Data" tab in the Excel ribbon at the top of the screen. This tab contains options related to data management and analysis.

  4. Select "Get Data" or "From Text/CSV": In the "Get & Transform Data" section (Excel 2016 and later versions) or the "Get External Data" section (Excel 2013 and earlier versions), you'll find an option to import data. Depending on your version of Excel, this option may be labeled as "Get Data" or "From Text/CSV" or "Import text file". Click on this option.

  5. Choose the CSV File: A dialog box will appear, prompting you to select the CSV file you want to import. Navigate to the location of the CSV file on your computer and select it. Then, click "Import" or "Open," depending on your version of Excel.

  6. Specify Import Options: Excel will open the "Text Import Wizard" or a similar dialog box, allowing you to specify how you want to import the data. You'll want to select the delimited option (if shown), then select the delimiter (comma in this case)

  7. Choose Column Data Format: On the final step of the wizard you can set the all-important data type for each column. Essentially all you need to do is go through each column in the file previewer and for any containing 16 digit IDs set the column type as "text" like so:

  8. Click Finish when you're Done. Click finish and choose where to import the data - e.g. the first cell of the existing sheet or a brand new one.

  9. Review the Data: Review the preview to ensure that the data is imported correctly. You can re-import and make adjustments to the import settings if needed. Once you're happy, you can view, edit, and analyze the imported data as normal using Excel's features and functions.

That's it! You've successfully imported data from a CSV file into Excel. By taking this slightly longer route you should have avoided the issue where the 16 digit IDs either appear as exponentials or all end in a zero.

You can repeat these steps to import data from additional CSV files or other data sources as needed.

Did this answer your question?