简体   繁体   中英

Excel Chart Referencing Cell With Formula

I have a chart (a chart page, not an embedded chart) that I have a title for in Excel 2010. I want to reference a cell so that title changes based on that cell's value. Let's say that the cell is A1. I seen forums saying you can link a chart's title to a cell by clicking it, pressing "=" and clicking on the referenced cell. This works just fine until I want to make put a formula in the title.

Say A1 = "Time", and I set the chart title to =Sheet1!A1 . The title updates to: Time . But if I want to make it more flexible, like ="It's about "&Sheet1!A1 , I get an error:

The formula you typed contains an error. Try one of the following: ... [clipped]

Is the title field limited as to its input? Is there another way to accomplish this without VBA?

It would seem that the Title field can accept only a simple cell reference.

(also tried creating a named range with the required formula, without success)

An alternative is to create another cell with the required formula, and refer to that cell for the chart title.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM