Three sensor readings came in. Did Excel keep all three as numbers?

A Home Assistant sensor CSV can use commas between fields and decimal points inside readings. Excel on a decimal-comma setup may need those two settings specified separately. Before you chart the data, check whether Excel kept each reading as a number.

Synthetic example. Three readings from the same sensor, all in kWh.

TimeOriginal valueExpected number
08:000.750.75
08:151.251.25
08:302.002.00
  1. In Excel, choose Data → From Text/CSV. Set the delimiter to comma and check that the timestamp and reading are in separate columns.
  2. In Power Query, keep a text copy of the original reading. If an automatic Changed Type step already converted the column, remove that step first. On the working copy of the reading column, use Change Type → Using Locale. Choose Decimal Number and a locale that uses a decimal point, such as English (United States). Apply that setting to the reading column.
  3. If the resulting readings land in C2:C4, =COUNT(C2:C4) should return 3 and =SUM(C2:C4) should return 4.00 for this sample. If one is still text, COUNT catches it even though all three rows are visible. This sum checks the sample import. For a cumulative meter, calculate usage from differences between readings.

Keep the original CSV and the conversion column together. Next time a value changes during import, you can point to the exact reading Excel received.

References: Home Assistant community discussion · Microsoft Power Query locale instructions.

Comments

Popular posts from this blog

Can AI Analyze a Messy Excel Workbook? Yes, but Check the Cells.

Five gifts cleared. How many people gave?

O consumo da van mudou por causa de um recibo