Disclosure: This is the English edition of an explainer I originally made in Japanese. It was translated with AI assistance, then reviewed and edited. Every example below uses dummy data.
Your received file should hold 5 records, but it spans 7 lines. This post shows you why a line break hidden inside a cell does that, and how to replace it with a space using Find & Replace.
No record is missing. One of them is split across two lines, because its address continues on a second line inside the same cell. Count the lines in the file and you get 7: a header line plus the 5 records, one of them split in two. Count the records and you get 5.
(The addresses in this post are made up.)
Why it happens
The address cell contains a line break. The entry is a single record, but in the file it takes up two lines — so the line count no longer matches the number of records you received.
How to spot it
When the number of records and the number of lines do not match, suspect a line break inside a cell first. Look for a cell whose text continues on a second line — the address, in this example.
The fix: replace the line break with a space
- Open Find & Replace (Ctrl+H).
- In Find what, press Ctrl+J. That enters a line break as the value to search for.
- In Replace with, type a single space.
- Click Replace All.
Then count again. The address now sits on one line — "Naka-ku Sakae 1-2-3" in this example — and the file is back to one line per record: a header line plus the 5 records, 6 lines in all.
One caution before you run it: if the line breaks in your data carry meaning, check first. Replace All removes every break it finds, not just the one causing the mismatch.
That fixes the mismatch in this example. When your line count and your record count disagree, check inside the cells first — a hidden line break is the first thing to suspect.
This post is part of a small series checking what spreadsheets do to files you receive from other people — and how to open them without losing what's inside.