malaki1974
New Member
- Joined
- Feb 14, 2006
- Messages
- 46
Hello and thank you for looking at this.
I have just started using INDIRECT and am finding it very challenging. I have a couple of use cases. One I have solved, this new one is killing me on syntax.
I am using a dropdown to change a year. When it changes my formula updates to reference a new tab with same rows/columns. Works great.
But I have a similar formula that references the variable sheet name twice and I cannot figure out how to edit to make it work.
Thank you!
I have just started using INDIRECT and am finding it very challenging. I have a couple of use cases. One I have solved, this new one is killing me on syntax.
I am using a dropdown to change a year. When it changes my formula updates to reference a new tab with same rows/columns. Works great.
But I have a similar formula that references the variable sheet name twice and I cannot figure out how to edit to make it work.
Here is the troublesome one (it works but I want to also replace sheet explicit name with INDIRECT as in first part of formula=COUNTIF(INDIRECT("'"&B2&"'!$F$2:$F$100"),B20) // works great: b2 is the year/name of sheet, b20 is the name that should be counted in the column F
How to drop in INDIRECT("'"&B2&"'??? in place of the '2021' ?=COUNTIFS(INDIRECT("'"&B2&"'!$F$2:$F$117"),B20,'2021'!D2:D117,D15) // same as above but find the Product type (d15).
Thank you!