I'm attempting to use the COUNTIF formula in multiple fields of a report in a worksheet named "Cover Page". The data is in a worksheet named "Raw_Data". The issue I'm having is that the columns I'm using for the range criteria in the COUNTIF formula are never consistent. In other words, the columns in the worksheet "Raw_Data" are never in the same order. The header names are the same however. An example is where I'm counting instances 'Closed' in a column named 'Case Status':
=COUNTIF(Raw_Data!Y:Y,"Closed")
The formula works, but when I load the new data, chances are the 'Case Status' column will not be column Y. I considered using named ranges, but I'm not sure what formula to use for the reference (possibly the INDEX and MATCH function). I think this is the direction to go, as the formulas will be easier to manage and the ranges will dynamically change. I'm open to all suggestions.
Bookmarks