diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index f419a4a..1b721b7 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -2503,9 +2503,18 @@ odf_graph_get_series (GnmOOExport *state, GogGraph *sog, GnmParsePos *pp)
 
 	for (;list != NULL; list = list->next) {
 		GOData *dat = list->data;
-		GnmExprTop const *texpr = gnm_go_data_get_expr (dat);
-		if (texpr != NULL && gnm_expr_top_is_rangeref (texpr)) {
-			char *formula = gnm_expr_top_as_string (texpr, pp, state->conv);
+		if (IS_GNM_GO_DATA_SCALAR (dat) ||
+		    IS_GNM_GO_DATA_VECTOR (dat) ||
+		    IS_GNM_GO_DATA_MATRIX (dat)) {
+			GnmExprTop const *texpr = gnm_go_data_get_expr (dat);
+			if (texpr != NULL && gnm_expr_top_is_rangeref (texpr)) {
+				char *formula = gnm_expr_top_as_string (texpr, pp, state->conv);
+				g_string_append (str, odf_strip_brackets (formula));
+				g_string_append_c (str, ' ');
+				g_free (formula);
+			}
+		} else {
+			char *formula = go_data_serialize (dat, NULL);
 			g_string_append (str, odf_strip_brackets (formula));
 			g_string_append_c (str, ' ');
 			g_free (formula);

