Guides
Procurement: compare two price lists
Compare supplier price lists in CSV or Excel and see which prices changed.
Suppliers send price lists as CSV or Excel. Compare this month's with last month's.
Two CSV files
fetlar diff p1.csv p2.csvSheet "Sheet1" C2 4.50 → 4.80
Sheet "Sheet1" A4 A3 → A4
Sheet "Sheet1" B4 Ink → Tape
Sheet "Sheet1" C4 19.00 → 2.10Cells are compared by position. In this example, the Paper price went up, and the last row was replaced by a different item.
Two Excel files
fetlar diff prices-v1.xlsx prices-v2.xlsx --highlight-xlsx "prices (changes).xlsx"You get a copy of the new list with changed cells in blue, added rows in green and a "Changes" sheet.
A CSV against an Excel file
A CSV cannot be compared with a workbook, because a CSV has no sheet names or number formats. Convert one to match the other first:
fetlar prices-v1.xlsx -t textOr write the CSV as a workbook: ask a colleague to save it as .xlsx, or build one with fetlar write.
Other tips
- CSV files in Arabic (Windows-1256 or UTF-8) are read correctly.
- Semicolon, tab and pipe separators are found automatically.
- Add
-f jsonto feed the changes into another program.
Related: Comparing files.