CSV IMPORT LAB — PREPARATORY PRACTICE
===================================

Start here
----------
These three small, synthetic CSV files are unchanged copies of existing practice
downloads. They contain no spreadsheet formulas or macros. This package is data
plus expected results, not an automatically repaired file or a saved workbook.

Unpack the ZIP. Do not double-click a CSV and accept automatic conversion without
reviewing it. Keep the extracted inputs untouched. Inspect each file with CSV
Import Doctor at https://www.spreadsheet-tutorials.com/csv-import-doctor/ first,
then import it into a separate empty spreadsheet with the header in row 1.

EXPECTED-VALUES.json contains every header and data field, intended column types,
cell-specific identifier/date meanings, and exact original-file hashes. Its
raw_rows are strings as CSV text; expected_rows describe the intended typed
result. ISO dates and exact decimal spellings in the ledger are documentation,
not instructions to store dates or amounts as text. SHA256SUMS.txt checks all
other members; it deliberately does not hash itself.

Status and limits
-----------------
The source bytes, archive structure and expected values were checked without
running a spreadsheet application. This shared lab has NOT_RUN native import,
type, input-change/recalculation and save/reopen checks in each of the three apps.
Browser download delivery is unverified for this lab. The earlier lessons linked
below retain their own narrow historical evidence; they do not pass this lab.
CSV Doctor flags possible risks. Its output is not a native-import result.

1. Choose the right interpretation
----------------------------------
All files are UTF-8 without a byte-order mark, with LF line endings. Use straight
double quote (") as the text delimiter. Include the header, all data rows and all
fields. Do not merge delimiters or drop empty fields. CSV stores text, not cell
types: assign the following types before finishing the import.

inputs/order-ids-raw.csv
  Comma separator only. A1:C7 = one header plus six records, three fields each.
  A OrderID: Text. B Description: Text. C Quantity: numeric integer.
  A2:A7 must be these exact strings, in order:
    00001234                 (8 characters, identifier, not numeric 1234)
    12345678901234567890     (20 characters, distinct from the next ID)
    12345678901234567891     (20 characters, keep the final digit 1)
    00000000000000000001     (20 characters, identifier, not numeric 1)
    1E10                    (4 characters, identifier, not scientific notation)
    03-04                   (5 characters, identifier, not any calendar date)
  B2 is Notebook, blue in ONE field: the CSV quotation marks are syntax, not
  characters that should remain in the cell. Quantities are 2, 1, 3, 1, 4, 2.

inputs/dates-dmy.csv
  Comma separator only. A1:B5 = one header plus four records, two fields each.
  A Record: Text. B EventDate: actual date using DMY (day/month/year).
  This lab explicitly adopts the existing fixture author's declared dd/mm/yyyy
  convention; it is not guessed from an ambiguous string or computer locale.
  D-01: 03/04/2026 means 3 April 2026 (year 2026, month 4, day 3).
  D-02: 12/11/2026 means 12 November 2026 (year 2026, month 11, day 12).
  D-03: 13/04/2026 means 13 April 2026 (year 2026, month 4, day 13).
  D-04: 29/02/2024 means 29 February 2024 (year 2024, month 2, day 29).
  If your importer has no confirmed DMY route, stop or preserve EventDate as text
  for later deliberate conversion. Text preservation is a safe intermediate,
  not a pass for the actual-date target. Never invent a missing date convention
  for an unknown real-world export. No date serial number is prescribed here.

inputs/semicolon-decimal-comma.csv
  Semicolon separator only. A1:D5 = one header plus four records, four fields each.
  A InvoiceID: Text. B Item: Text. C Amount: number. D Note: text or blank.
  Use decimal-comma numeric parsing (the linked Calc lessons use German/Germany).
  A2:A5 are 000123, 000124, 123456789012345678, 000126. Their lengths are 6, 6,
  18 and 6; they are identifiers, never quantities. Keep every character.
  C2:C5 source 12,50; 3,75; -2,25; 1000,00 means 12.50; 3.75; -2.25; 1000.00.
  The minus sign is an ordinary negative amount in this defined synthetic file.
  No currency is specified. Decimal commas are not field separators here.
  D3 is Blue; fine tip in ONE field. B5 is Café supplies with U+00E9 (é), not
  garbled replacement text. D5 is genuinely empty, not zero, a space or "null".

2. Check every record and its stored type
----------------------------------------
Compare each imported field with raw_rows/expected_rows in EXPECTED-VALUES.json.
Counts and totals are secondary controls, never substitutes for that comparison.
Use unused cells for these suggested checks. Names below are English; localized
function names and argument separators may differ. These are expected results,
not recorded application results from this lab.

Order IDs:
  =ISTEXT(A2) should be TRUE; repeat through A7.
  =LEN(A2) through =LEN(A7) should give 8, 20, 20, 20, 4, 5 respectively.
  Confirm the exact characters too: equal length alone does not prove equality.
  =COUNT(C2:C7) should be 6 and =SUM(C2:C7) should be 13.
  Check each quantity individually; verify Description is text and B2 is one cell.

Dates:
  =ISNUMBER(B2) should be TRUE; repeat through B5 for numeric spreadsheet dates.
  Check =YEAR(B2), =MONTH(B2), =DAY(B2), repeating through B5. Expected triples:
    (2026,4,3), (2026,11,12), (2026,4,13), (2024,2,29).
  Numeric type alone does not prove the meaning; date-like display alone does
  not prove the type. Record remains text. All four dates must match.

Decimal commas:
  =ISTEXT(A2) through =ISTEXT(A5) should all be TRUE; verify all four exact IDs.
  =COUNT(C2:C5) should be 4 and =SUM(C2:C5) should be 1014.
  =ISNUMBER(C2) through =ISNUMBER(C5) should all be TRUE; compare all four values.
  Verify Item and nonempty Note are text. Inspect Café supplies and Blue; fine tip.
  =ISBLANK(D5) should be TRUE. Do not replace the empty source field with text.
  Worksheet display may use a decimal point or comma, or hide trailing zeros.
  That is separate from whether the stored numeric value is correct.

3. Reversible change and save/reopen checks
------------------------------------------
Only after the initial comparisons pass, work in a disposable native workbook,
never in the original CSV. On the orders sheet change C2 from numeric 2 to 4:
SUM(C2:C7) should change from 13 to 15. Restore 2 and expect 13 again.
On the amounts sheet change C2 from numeric 12.50 to 13.50 using your worksheet's
numeric entry convention: SUM(C2:C5) should change from 1014 to 1015. Restore the
original value and expect 1014. These are independent arithmetic expectations,
not proof of recalculation by any application.

Save separate working copies in the application's native spreadsheet format
(ODS for these Calc routes; Gnumeric format for Gnumeric), close and reopen them.
Repeat all row, character, type, date-meaning and formula checks. CSV itself cannot
preserve these native cell types or added formulas. If anything changed, retain
the failing copy for diagnosis and restart from the untouched CSV; formatting a
damaged numeric ID as text cannot recover its missing digits.

4. Three existing free-desktop routes and their exact evidence boundaries
------------------------------------------------------------------------
LibreOffice Calc:
  https://www.spreadsheet-tutorials.com/libreoffice/tutorials/preserve-leading-zeros-csv/
  File > Open, Text Import; select each identifier preview column and choose Text.
  The existing lesson tested different inputs in 26.8.1.1 on Linux, English UI,
  English USA locale, on 16 October 2026. It is not a run of this shared bundle.
  For dates, the documented Date (DMY) column type is described at:
  https://www.spreadsheet-tutorials.com/libreoffice/tutorials/prevent-csv-date-conversion/
  Official Text Import Help (labelled 26.8 when checked 26 October 2026 (America/Toronto)):
  https://help.libreoffice.org/latest/en-US/text/shared/00/00000208.html

Apache OpenOffice Calc:
  https://www.spreadsheet-tutorials.com/openoffice/tutorials/semicolon-csv-decimal-comma-import/
  File > Open, Text Import; select Semicolon only, UTF-8, German (Germany),
  identifier/text columns Text and Amount Standard. Follow the lesson's controls.
  The existing lesson tested this same decimal-comma file in 4.1.17, AOO4117m2,
  Build 9818, revision 49c05bc6fd, Linux x86_64, English UI, on 16 October 2026,
  including ODS save/close/reopen. This is historical evidence for that one file,
  not a new three-file lab result. Its documentation scope is desktop 4.1.
  Official CSV opening guide:
  https://wiki.openoffice.org/wiki/Documentation/AOO4_User_Guides/Calc_Guide/Introducing_Calc/Opening_CSV_Files

Gnumeric:
  https://www.spreadsheet-tutorials.com/gnumeric/tutorials/csv-delimiter-decimal-import/
  The existing lesson uses Data > Import Data > Import Text File, then encoding,
  separator and column-format/source-locale controls. It tested a DIFFERENT CSV
  in 1.12.57 on Debian 13.6 Linux, English UI, C worksheet locale and Germany
  (de_DE) import locale, on 16 October 2026. Its CSV import and save passed;
  close/reopen was explicitly not part of that test. Current package availability
  was not rechecked for this lab. The historical lesson is not an installation
  recommendation or evidence about a current package or another platform.

Record your own exact installed version, operating system, interface language,
worksheet locale, import language/locale, delimiters and types before testing.
Do not copy a historical version number into your actual-run record. If the
needed controls or a suitable already-available app are absent, leave that run
unperformed rather than guessing or claiming compatibility.

Suggested result record (initial state for every app):
  Actual version/platform/settings: NOT_RECORDED
  All three imports / exact fields / types / dates: NOT_RUN
  Reversible input changes and restored totals: NOT_RUN
  Native save/close/reopen comparisons: NOT_RUN
  Note the failing file, row, field, expected value and observed value if a check
  fails. Keep per-application results separate.

Input provenance
----------------
Original unchanged sources, also available separately:
  https://www.spreadsheet-tutorials.com/downloads/apple-numbers/tutorials/order-ids-raw.csv
  https://www.spreadsheet-tutorials.com/downloads/excel-practical/dates-dmy.csv
  https://www.spreadsheet-tutorials.com/downloads/openoffice-practical/semicolon-decimal-comma.csv
The original DMY convention is described at:
  https://www.spreadsheet-tutorials.com/excel/tutorials/csv-date-import-day-month-excel-2013/
Their program-named folders identify provenance; Excel or Numbers is not needed
to read these plain-text inputs. No input text was rewritten for this bundle.
