diff --git a/src/officecli/Handlers/Excel/ExcelHandler.Helpers.Cell.cs b/src/officecli/Handlers/Excel/ExcelHandler.Helpers.Cell.cs index d6967b0c9..a063615c2 100644 --- a/src/officecli/Handlers/Excel/ExcelHandler.Helpers.Cell.cs +++ b/src/officecli/Handlers/Excel/ExcelHandler.Helpers.Cell.cs @@ -53,7 +53,16 @@ private string GetCellDisplayValue(Cell cell, Core.FormulaEvaluator? evaluator = if (sst?.SharedStringTable != null && int.TryParse(value, out int idx)) { var item = sst.SharedStringTable.Elements().ElementAtOrDefault(idx); - return item?.InnerText ?? value; + if (item != null) + { + // CT_Rst.InnerText also includes phonetic-guide text. + // That text annotates the base value; it is not part of the + // ordinary cell content. Read only the direct value or + // rich-text runs, while BuildCellNode continues to + // expose the guide separately as Format["phonetic"]. + return item.Text?.Text + ?? string.Concat(item.Elements().Select(r => r.Text?.Text ?? "")); + } } }