ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Countifs anchoring formula when sorting (https://www.excelbanter.com/excel-discussion-misc-queries/263925-countifs-anchoring-formula-when-sorting.html)

rmclafferty1

Countifs anchoring formula when sorting
 
My Countifs seems to work as long as I do not sort.

For example, I want to sort by date rather than name:

€¢ Bob Smith that was on line 12 is now is on line 148.
€¢ In the Countifs formula Criteria 2 it is referencing cell C12 and
returning Jane Does information from the other worksheets.

I have tried anchoring and not anchoring the reference cell prior to sorting
(i.e., C12 or $C12) or $C$12 which returns 0 for everyone.


Luke M[_4_]

Countifs anchoring formula when sorting
 
If you want to do a CountIf by Bob everytime, instead of by what's in cell
12, why not replace the cell reference w/ "Bob Smith"?

The other option would be to create a static list that is not getting
sorted, and base the COUNTIFs off of that list.

--
Best Regards,

Luke M
"rmclafferty1" wrote in message
...
My Countifs seems to work as long as I do not sort.

For example, I want to sort by date rather than name:

. Bob Smith that was on line 12 is now is on line 148.
. In the Countifs formula Criteria 2 it is referencing cell C12 and
returning Jane Doe's information from the other worksheets.

I have tried anchoring and not anchoring the reference cell prior to
sorting
(i.e., C12 or $C12) or $C$12 which returns 0 for everyone.





All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com