I am working on a spreadsheet that tracks backorders monthly. The workbook has 13 sheets - one for each month and a graph sheet that utilizes a drop down box to select the month of data to display in the graph. The drop down box is the reason for the INDIRECT function. Rather than reference a sheet directly within all the forumlas, the sheet names are all in the drop down and I indirectly reference the cell with the drop downs ($A$19).
Now the issue I have is within a COUNTIF formula, I indirectly reference a incremental range, but I cannot get the formula to autofill correctly. The range references remain absolute. Here is the formula that I need help with (I made the problem area bold):
=IF(COUNTIF(INDIRECT($A$19&"!M2:$M$1048576"),INDIRECT("'"&$A$19&"'"&CELL("address",M2)))=1,INDIRECT("'"&$A$19&"'!"&CELL("address",M51)),"")
The M2's in the formula above should all incrementally increase (M3, M4, etc) when I autofill. The CELL references autofill fine, but the M2 in the range does not.
I looked all over the web and was not able to figure this one out. Thanks in advance for your help!
Bookmarks