HI.
I'm using a dynamic chart with name ranges, and I also have a formulas link to a cell in another worksheet where the chart is. So this cell that's linked to the formula show me the amount a data points that I input into that linked cell. For example, if I input the number 10 it show the last ten entries that where put in. It works fine until I input a number that exceeds the number of data on the spreadsheet.
So if I only have twenty entries and input twenty-one into the link cell a dialog box pop up and give me the message below. After that that chart stops show any info. So I have to go into the define name dialog box and click on the formula to get it to link back to chart.
"A formula in this worksheet contains on or more invalid references. Verity that for formula contains a valid path"
Here is the formula that I using:
=OFFSET(SHEET1!$F$2,COUNT(SHEET1!$F$F)-'CHART'!$D1,0,'CHART'!$D$1,1)
Can something be added to this formula to stop it from giving me this message when I input a number that exceeds the number of records in the spreadsheet? I'm using excel 2007.
Thanks, Dan
I'm using a dynamic chart with name ranges, and I also have a formulas link to a cell in another worksheet where the chart is. So this cell that's linked to the formula show me the amount a data points that I input into that linked cell. For example, if I input the number 10 it show the last ten entries that where put in. It works fine until I input a number that exceeds the number of data on the spreadsheet.
So if I only have twenty entries and input twenty-one into the link cell a dialog box pop up and give me the message below. After that that chart stops show any info. So I have to go into the define name dialog box and click on the formula to get it to link back to chart.
"A formula in this worksheet contains on or more invalid references. Verity that for formula contains a valid path"
Here is the formula that I using:
=OFFSET(SHEET1!$F$2,COUNT(SHEET1!$F$F)-'CHART'!$D1,0,'CHART'!$D$1,1)
Can something be added to this formula to stop it from giving me this message when I input a number that exceeds the number of records in the spreadsheet? I'm using excel 2007.
Thanks, Dan