All guides
PDF & DOCUMENTS

PDF to CSV: Fix Data Showing in the Wrong Columns

Find out whether misaligned columns come from PDF extraction or CSV import, and check delimiters, rows and decimal values.

PDF365 Editorial••4 min read

If a PDF-to-CSV export appears in one column or values shift into the wrong cells, first identify where the problem starts: the extracted table, the CSV file or the spreadsheet import settings. Fixing the right stage avoids correcting the same data twice.

Check the extraction before downloading

Compare the extracted preview with the PDF. Are the column headers correct? Does a row with an empty cell still line up with its neighbors? Are multi-line descriptions kept with the right item? If not, review the selected table area and correct the columns or values before exporting.

For scanned pages, visually similar characters such as 0 and O may be confused by OCR. Compare identifiers and amounts with the source rather than assuming that a correctly positioned value is accurate.

    Check the CSV and import settings

    CSV stores fields as text separated by a delimiter. Spreadsheet software can interpret the file differently depending on import settings and regional conventions. Commas inside a quoted field, for example in a description, belong to that field; splitting the file manually at every comma can corrupt the rows.

    1. Keep the original export and inspect a few lines in a text editor. Note the delimiter and whether fields containing commas or line breaks are quoted.
    2. In Excel, use Data > From Text/CSV and inspect the preview. Choose the delimiter and encoding that match the file; exact options depend on the Excel version.
    3. Set identifier columns to text before loading. Check decimal and date interpretation against the source document and the import locale.
    4. After loading, compare row counts and representative first, middle and last rows with both the CSV and the PDF.

    Identify the stage that needs correction

    If the PDF365 review is already misaligned, adjust the selection or extracted results and export again. If the preview and CSV are correct but the worksheet is wrong, adjust the spreadsheet import settings and reimport the original file.

    Some documents contain irregular tables, merged cells or multi-line entries that need manual review. Keep the PDF and original export until you have verified the final spreadsheet.

      Sources

      1. Import or export text (.txt or .csv) filesMicrosoft Support
      2. Import data from data sources (Power Query)Microsoft Support
      TRY IT YOURSELF

      Ready to get started?

      Open the tool and work through the steps at your own pace.

      Open PDF to CSV
      KEEP READINGAll guides