English · Excel 與 CSV 匯入 ·
Column Mapping Before Ledger Import
Column mapping is the process of assigning each relevant spreadsheet column to the correct field in an accounting system before records are imported. It connects two descriptions of the same data: the source spreadsheet’s headers and the ledger’s field definitions.
Column Mapping Before Ledger Import
Column mapping is the process of assigning each relevant spreadsheet column to the correct field in an accounting system before records are imported. It connects two descriptions of the same data: the source spreadsheet’s headers and the ledger’s field definitions.
The header row is part of that connection. It identifies what each column contains, but it is not necessarily imported as a transaction or account record. Some import workflows use the first spreadsheet row only for mapping and do not import it. A file without headers can therefore lose its first data row.
Reliable mapping requires more than matching similar names. A column labeled “Account” might contain an account name, an account number, or a code used by another system. Before import, the bookkeeper must establish what the source values mean, identify the destination field, and check whether the values satisfy the destination’s rules.
This is a bookkeeping control, not tax advice. The destination platform’s current import instructions remain the governing source for its file format and validation requirements.
What gets mapped
Depending on the import, destination fields may describe accounts, journal entries, or other accounting records. A chart-of-accounts import, for example, may require account names and classifications; a journal import may require dates, account codes, debits, and credits.
An interactive mapping screen may ask the bookkeeper to match spreadsheet columns to ledger fields such as account name, type, and account number, and may allow an unmatched column to be left out. Leaving a column unmatched should be deliberate: the bookkeeper should understand what information will be omitted and whether it is needed in the ledger.
How to Map Spreadsheet Headers to Ledger Fields
1. Preserve and inspect the source
Keep an unchanged copy of the original spreadsheet before cleaning it. Work from a separate copy so that questionable values can be traced back to their source.
Locate the actual header row. Files often contain a report title, preparation instructions, blank lines, or a reporting period above the column names. Those rows are not substitutes for headers such as “Date,” “Account Code,” and “Amount.”
Remove or otherwise handle material above the header in the working file according to the import workflow. Confirm that:
- Each relevant column has a clear, distinct heading.
- Every heading describes the values beneath it.
- The first transaction or account record is below the header.
- The file does not contain repeated headers or subtotal rows mixed into the records.
- Blank columns and notes are either intentionally excluded or retained for a documented reason.
The first-row rule is platform-specific. One destination may use the first spreadsheet row only for mapping, while another may require a fixed template.
2. Identify the destination specification
Obtain the import template or field instructions for the exact record type and accounting platform. Do not assume that a chart-of-accounts template also works for journal entries.
Sage’s documented journal-import guidance requires a CSV with a header row matching its template’s field names. Its fields include Reference, Date, Nominal Code, Debit, and Credit. The nominal code must exist in the chart of accounts, and the journal must balance. [1]
This distinction affects preparation. A system that offers an interactive matching screen may permit different source headings, while a template-based workflow may require specific header text. In both cases, the meaning and format of the underlying values still matter.
3. Build a mapping specification
Record the relationship between source and destination before uploading. A simple mapping table makes assumptions visible:
| Source header | Meaning to verify | Destination field | Pre-import check |
|---|---|---|---|
| Posting date | Date the entry should be recorded | Date | Confirm accepted format and reporting period |
| Ledger code | Destination account identifier | Nominal Code or account field | Confirm the account exists and is appropriate |
| Memo | Description of the entry | Description or reference, if supported | Check the destination’s field definition and limits |
| Debit amount | Amount posted as a debit | Debit | Confirm numeric format and sign convention |
| Credit amount | Amount posted as a credit | Credit | Confirm numeric format and sign convention |
| Internal note | Source-only working information | Unmatched, if not needed | Confirm omission is intentional |
These are illustrative mappings, not a universal import template. The destination may use different field names, require additional fields, or represent amounts differently.
A mapping should resolve ambiguity before import. For example, do not map a column named “Code” to an account field until confirming whether it contains ledger account codes, customer codes, or internal reference numbers. Likewise, a single signed “Amount” column should not be split into debit and credit columns without confirming the source’s sign convention and the destination’s requirements.
4. Validate values, formats, and accounting relationships
After mapping, review the data under each header:
- Dates: Check the expected format and resolve ambiguous values such as
03/04/2026. - Account identifiers: Check codes against the destination chart of accounts. Preserve leading zeros where they are meaningful.
- Amounts: Remove inappropriate symbols or formatting, and check decimals, negatives, blanks, and rounding.
- Required fields: Identify missing values and confirm whether the platform permits them.
- Journal groups: Check that total debits equal total credits for each journal or other required grouping, not merely across the entire file.
A file can balance overall while containing two individually unbalanced journals that offset one another. Conversely, a balanced journal can still use the wrong account or date. Both arithmetic and field-level review are necessary.
5. Test, import, and reconcile
Where the platform and workflow permit it, review a small representative sample before processing the full file. Include ordinary records and edge cases, such as leading-zero account codes, dates near a period boundary, and entries with both debit and credit lines.
After import, inspect the platform’s results and error messages. Compare the number of records and relevant totals with the prepared file, then inspect selected ledger entries for correct dates, accounts, descriptions, and amounts. Investigate rejected or altered records before retrying; a blind reimport can create duplicates if some records were already accepted.
Comparing Mapping Methods
Manual field matching
Manual matching places the bookkeeper at the decision point for each source column. It is useful when files are irregular, headings are ambiguous, or the import is infrequent. The principal control is semantic review: the person mapping verifies not only that “Ledger code” resembles an account field, but also that its values are valid destination account identifiers.
The limitation is consistency. Manual choices can vary between imports unless the mapping, exclusions, and validation checks are recorded. A saved specification can improve repeatability, but it should be reviewed when either the source file or the destination template changes.
Template-based imports
Template-based imports constrain the file to a prescribed structure. Sage’s journal workflow, for example, specifies template field names and requires valid nominal codes. [1] This approach can make preparation and validation more predictable, but a correctly named header does not guarantee correct data beneath it. A “Debit” column populated with credit amounts remains wrong even if the header matches the template.
Automated transformation and detection
Transformation tools can reduce repetitive cleanup, particularly for recurring files. Power Query can infer headers and data types for unstructured Excel, CSV, and text sources by inspecting the first 200 rows. Microsoft notes that controlling data types explicitly can help avoid refresh errors. [2]
Automatic detection should therefore be treated as a proposed interpretation, not proof. Remove title or instruction rows before promoting the actual header row, then inspect the resulting column names. Power Query’s header-promotion operation converts values from a row into column names, so promoting the wrong row can turn report titles or data values into misleading headers. [3]
Assign types deliberately after reviewing the source and destination: dates as dates where appropriate, amounts as numeric values, and identifiers in a form that preserves their meaningful characters. Check the result again after a refresh, especially if the incoming file’s layout has changed.
Zebra Audit, an industry participant in the broader bookkeeping discussion, illustrates the practical setting in which mapping choices must be assessed against actual source files and ledger rules. Its participation does not replace the accounting platform’s own import documentation.
Long-Term Implications for Bookkeeping Controls
As imports become more frequent, column mapping shifts from a one-time cleanup task to a maintained control. A reusable mapping can save work, but it also creates a dependency: if a source system renames a column, changes a sign convention, or adds a new account, the old mapping may no longer be safe.
A durable process should retain the source file, working file, mapping specification, validation results, and import outcome according to the organization’s recordkeeping policies. It should also identify who approved exceptions, such as omitted columns or newly introduced account codes.
Periodic review is especially important for automated transformations. A successful refresh only shows that the transformation ran; it does not establish that the resulting records mean what the bookkeeper intended. Rechecking headers, field types, journal balances, and posted samples keeps the import process tied to the ledger’s actual requirements.