The step
Choose step 4, Output. Its title is Export the matches, and two buttons under it choose the kind:
| Excel workbook | A new workbook with a line for each product of the master and its match, the columns you ticked Keep for, and the status. Your own files aren't changed. |
| Update a list with the matches | Writes the matches into the master's or the comparison's own file: an Excel workbook's columns, or a Spanner document's Matches and classifications. A backup of the file is kept first. |
Both write what the Match screen shows. Until the lists have been matched, the step says Match the two lists first., with Go to Match. Where a list or a setting has changed since they were matched, it says so, with Go to Match to press Match again there.
Exporting to an Excel workbook
- Choose Excel workbook. Under What will be written the step says how many products of the master it will write and how many have a match, the columns in order, and the sheets.
- Read the note under it, if there is one, such as how many products are still in Review or Options.
- Click Export to Excel… and choose where to save it. The name starts as the project's name and matches, such as Cooking sauces matches.xlsx, in the folder you exported to last time, else the project's folder.
After saving, the step says Saved and when, with the workbook's path, Open and Show in folder. Where the export went is kept with the project, so save the project afterwards. On a long list the step shows how far it has got, with Cancel, which leaves nothing behind.
If the workbook can't be written, the step says why in plain words, with Save under another name…. The commonest is a workbook of that name open in Excel: close it there, or save under another name.
What's in the workbook
The sheet ‘Matches’
A line for each product of the master that the Match screen shows, in the master's order. A product matched with several partners has a line for each. One with no match has its match cells blank. Rows that a row filter leaves out aren't on it.
| Product ID | The master product's ID. |
| Product Name | Its description. |
| Match ID | The partner's ID in the comparison; blank when there's none. |
| Match Name | The partner's description; blank when there's none. |
| The Keep columns | Each column ticked Keep on the master's import, then those on the comparison's, under their own headings. Where both lists have a heading of the same name, the list's name goes in front of it. |
| Status | Matched, Review, Options or Unmatched. |
The sheet of what isn't matched
The comparison's products that have no match, so that nothing is lost: their ID, Name, the comparison's Keep columns and Status. It is named after the comparison, such as Not matched in Tollbray Foods p, cut to the 31 characters a sheet's name can have. It isn't there when every product has a match.
Codes stay codes
IDs, names and codes are written as text, exactly as they were read: leading zeros are kept, and a code is never turned into a date or a number. A Keep column of plain quantities, such as prices, is written as numbers, so that it adds up in Excel. The heading row is frozen, with a filter on it.
Updating a list with the matches
The second kind writes the matches into one of the two lists' own files, so that your range carries the supplier's codes, say, or a Spanner document finds its products by them. It changes the file on purpose, after keeping a backup of it.
- Choose Update a list with the matches.
- Under The list to update, choose the master or the comparison. Each names its file.
- Under What goes where, say which fields of the match go into which columns: see The pairs.
- Read What will happen.
- Click the button that names the file, such as Update Quillmart cooking sauces range.xlsx. There is no save dialog: the file itself is updated.
º, and the supplier's description into a new column. What will happen says how many products get each.Which files can be updated
An Excel workbook, .xlsx or .xlsm, on the sheet the list was read from, with its macros kept; and a Spanner document, .spanner, as a file. A list Matcher can't update in place, such as a CSV file, says why, with Export to Excel… beside it, which makes a new workbook of the matches instead.
The pairs
Each line of What goes where is a pair: a Field of the match, the column it Goes into, and How. Add a pair adds a line, and the × at its end takes one away. The first line is Match ID.
| Field of the match | What of the partner is written: Match ID, Match Name, its Barcode, Brand, Size or Pack, or one of the other list's Keep columns. |
| Goes into | A column of the sheet, shown with its letter and what the import uses it for, or New column…, with its name typed under it. The list's own ID column is greyed: it is how the rows are known. In a Spanner document: Matches, a classification, or New classification…. |
| How | Overwrite replaces what's there. Append with line feed, Append with semicolon and Append with º add after it, with that between. |
A pair starts on Overwrite, but one into a Match column of the list, or into a Spanner document's Matches, starts on Append with º, so that the codes already there stay. Codes in such a column are parted by º or a new line, never a semicolon, so Append with semicolon is refused there.
Appending never adds a value the cell already holds, so updating twice gives the same file as updating once. A place chosen twice, or a new column with no name, is said, and the update waits until it is put right.
What gets written
- Only Matched rows. A product gets values only where the Match screen shows it matched. Rows in Review, Options or Unmatched, and rows left out by row filters, are left exactly as they were. What will happen says how many products are still in Review or Options.
- Nothing is added. Only rows that are in the sheet, and products that are in the document, get values. No rows and no products are added.
- Nothing is blanked. A matched product whose partner has no value for a field is left as it is, and the step says how many.
- Several partners go in together: with Overwrite joined by a semicolon (or
ºin a Match column), with an Append each added in turn. - A column the import uses, such as the description or a Match column, can be written. The step says what that does: ‘Supplier product code’ is one of this list's Match columns: what's written there changes how it's matched once it's read again.
Afterwards the step says Updated and when, with the file's path, Open, Show in folder and Show the backup. Matcher reads the list again, with its columns as they were, and says so. Where nothing needed changing, it says so, and the file isn't touched.
Keeping the file safe
- A backup first. Before anything is written, a copy of the file as it was goes into Matcher's own folder, never beside your file:
%LocalAppData%\Catman Matcher\Backups. Show the backup shows it in File Explorer. The last 20 backups are kept. No backup, no update. - Written aside, then checked. The update is written to a new file beside the original, read back and checked: every planned value as planned, and everything else as it was. Only then does it take the original's place. If anything is wrong, the original is left as it was, and the step says why.
- Only what changes, changes. In a workbook, the other sheets, the formatting, the formulas and the macros are kept. A cell written keeps its style.
- A file changed since it was read isn't updated: the step says so, with Read it again.
If the file is open in Excel, read-only, or has gone, the step says so. Close it in Excel, or put it right, and update again.
Spanner documents
A Spanner document can be the list to update, as a file. The first pair is Match ID into Matches, by Append with º: each product keeps its other codes, and gets its partner's ID among them, so that Spanner finds the product by it. Other fields can go into a classification, or a new one; a calculated classification can't be written, as Spanner works it out again.
The step also counts codes that are other products' IDs in the same document, and codes too short for Matcher to match by, which Spanner can still find products by. Only the lines of the document that must change, change: the planograms, pictures and everything else are kept byte for byte.