Philip
Philip

Reputation: 189

Static Formulas in Excel

I have a formula in excel that looks like such: =COUNTIF(Imports!$B$2:$B$999,"1")

It works like I want it to but part of my manipulation of the spreadsheet requires me to insert new columns in the sheet that formula is referencing. When I do that it changes the formula from column B to column C which is actually not what I want. I want it to reference column B no matter what. How would I achieve this in Excel? Thank you!

Upvotes: 0

Views: 164

Answers (1)

ttaaoossuu
ttaaoossuu

Reputation: 7894

Use INDIRECT to reference range from its text address:

=COUNTIF(INDIRECT("Imports!$B$2:$B$999"),"1")

Upvotes: 1

Related Questions