martijn1988
New Member
- Joined
- Apr 18, 2011
- Messages
- 4
I'm currently trying to program several graphs with dynamic axes. Now i know i need to use OFFSET for this but for some reason i'm not getting anywhere. I made the following formula:
=OFFSET(INDIRECT(Berekeningen!C266),0,0,0,COUNTIF(F75:LK75,">1"))
I'm using the indirect function to allow users to have a different starting cell. Changing the function to a normal cellreference has no effect. If i remove the last 2 arguments the formula returns the value of the cell the indirect function is referring to. The COUNTIF function on its own works perfectly. If i look at the formula from the formula box, theres no reference error from one of the individual arguments. So basically all the separate parts work but combined into the OFFSET formula it gives an #REF! error. Can somebody tell me, based on this information, why the formula isn't not working?
=OFFSET(INDIRECT(Berekeningen!C266),0,0,0,COUNTIF(F75:LK75,">1"))
I'm using the indirect function to allow users to have a different starting cell. Changing the function to a normal cellreference has no effect. If i remove the last 2 arguments the formula returns the value of the cell the indirect function is referring to. The COUNTIF function on its own works perfectly. If i look at the formula from the formula box, theres no reference error from one of the individual arguments. So basically all the separate parts work but combined into the OFFSET formula it gives an #REF! error. Can somebody tell me, based on this information, why the formula isn't not working?