Excel - Forumla to reference current row (even after rows get sorted)
Posted on 2012-12-30
I've got a cell, D2, that has this formula...
=COUNTIFS('WORKING DATA'!$C$2:$C$65000,'FINAL REPORT'!A2,'WORKING DATA'!$D$2:$D$65000,'FINAL REPORT'!$D$1,'WORKING DATA'!$E$2:$E$65000,'FINAL REPORT'!$B2)
...and it returns the correct information. It is looking to match information from multiple worksheets to be able to count numbers.
So, if I sort all of the rows, this row may move down to say, D203, but the formula is static, so now it is still referencing A2 and B2, but it is no longer part of row 2...
How can I modify this formula for A2 and B2 to simply reference cells A and B of the current row that this formula is part of (as the information in that row's D column).