RRinTetons
IS-IT--Management
Can a Structured Table Reference (STR) be used in place of cell references in COUNTIFS formulas?
I've got a coworker's workbook that takes several minutes to recalc and is taking up over a gb of disk. He's got hundreds of COUNTIFS in cells with multiple references that extend to row 1,048,576 in an effort to avoid missing data when it's added to the 20,000 or so rows he's got now. I immediately thought of putting the data in a table and using STR's in the functions, but is not working. I can use them fine in a SUM function, etc., but i'm struggling with them in this specific case.
This formula appears on a tab named 'OUTPUT' in a workbook that also has a sheet named 'Data'.
=COUNTIFS(Data!$A$2:$A$1048576,OUTPUT!$B$16)
I created a table to hold the data (7 columns) and renamed it 'tbl_Data'. One of the columns is named 'Order Year'. The names appear correctly in Name Manager.
If I write =SUM(tbl_Data[Order_Year]) I get the expected return.
If I write =COUNTIFS(tbl_Data[OrderYear],OUTPUT!$B$16) Excel barks at me and returns #VALUE.
What am I missing?
-
Richard Ray
Developer, Data Analyst
Jackson Hole, WY
I've got a coworker's workbook that takes several minutes to recalc and is taking up over a gb of disk. He's got hundreds of COUNTIFS in cells with multiple references that extend to row 1,048,576 in an effort to avoid missing data when it's added to the 20,000 or so rows he's got now. I immediately thought of putting the data in a table and using STR's in the functions, but is not working. I can use them fine in a SUM function, etc., but i'm struggling with them in this specific case.
This formula appears on a tab named 'OUTPUT' in a workbook that also has a sheet named 'Data'.
=COUNTIFS(Data!$A$2:$A$1048576,OUTPUT!$B$16)
I created a table to hold the data (7 columns) and renamed it 'tbl_Data'. One of the columns is named 'Order Year'. The names appear correctly in Name Manager.
If I write =SUM(tbl_Data[Order_Year]) I get the expected return.
If I write =COUNTIFS(tbl_Data[OrderYear],OUTPUT!$B$16) Excel barks at me and returns #VALUE.
What am I missing?
-
Richard Ray
Developer, Data Analyst
Jackson Hole, WY