May 22 2023 02:42 PM
Hi,
I'm trying to lock the cell "4" so graph would retrieve data from that specific cell all the time!
However, if add a row the formula in the series values is changing and "$A$4" becoming "$A$5".
Please see the attached images for more details.
How would I lock the cell and keep the data only from "A4" ?
Thanks in advance.
May 22 2023 03:07 PM
On the Formulas tab of the ribbon, in the Defined Names group, click Define Name.
Enter a name consisting of a single word in the Name box, e.g. Data.
In the Refers to box, enter the formula =INDIRECT("Sheet1!A4")
Click OK.
Click anywhere on the chart.
On the Chart Design group of the ribbon, in the Data group, click Select Data.
Select the series, under Legend Entries (Series), then click Edit.
Clear the box, then enter the formula =Sheet1!Data (using the name that you specified earlier).
Click OK, then click OK to close the Select Data Source dialog.
May 23 2023 02:03 PM
@Hans Vogelaar Thanks for your reply!
You know what the problem is?
I defined the name, it went without error.. but, when I'm trying to select data from graph and type:
=TTT Sheet uno!Data it gives me the error above.
May 23 2023 02:25 PM
May 23 2023 02:34 PM
Could you attach a small sample workbook demonstrating the problem (without sensitive data), or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar? Alternatively, you can attach it to a private message to me. Thanks in advance.
May 23 2023 03:17 PM - edited May 23 2023 03:17 PM
See the attached workbook.
You can view the definition of the defined names in Formulas > Name Manager.
You can view the definition of the series by clicking on the chart, clicking 'Select Data' on the Chart Design tab of the ribbon, then selecting a series and clicking Edit.
May 23 2023 03:33 PM
May 23 2023 03:42 PM
I inserted a new row in row 3 on the QQQ Hold In sheet, shifting the value 5 down, then entered 80 in A3:
The chart on the Main sheet then looked like this:
Next, I inserted a new row in row 3 on the WWW Hold In sheet, shifting the value 28 down, then entered 5 in A3.
The chart now looked like this:
So it works as intended...
May 23 2023 03:52 PM
May 23 2023 03:55 PM
Check the definition of the named ranges. Are you sure that they point to the correct cells?
May 24 2023 09:03 AM
May 24 2023 09:21 AM
I'm sorry, but I have no idea. As I have shown, it works correctly for me.
Does the workbook that I attached exhibit the problem for you?
May 24 2023 09:27 AM
May 24 2023 09:40 AM
So the problem occurs in your workbook, but does it occur in the version that I attached (without modification)?
May 24 2023 09:48 AM
May 24 2023 09:52 AM - edited May 24 2023 09:53 AM
If possible, I'd like to see a copy of the 'real' workbook...