neodjandre
Well-known Member
- Joined
- Nov 29, 2006
- Messages
- 950
- Office Version
- 2019
- Platform
- Windows
I am using this formula which works fine:
=IF(ROWS(K$62:K62)>SUM(COUNTIFS(accounts_table[§],{"P","B"})),"",INDEX(accounts_table[Account Name],SMALL(IF(ISNUMBER(MATCH(accounts_table[§],{"P","B"},0)),ROW(accounts_table[§])-ROW(INDEX(accounts_table[§],1,1))+1),ROWS($K$62:K62))))
However, I need to add another COUNTIFS criteria:
COUNTIFS(accounts_table[§],{"P","B"},accounts_table[on],"On")
If I only make this change, the function doesn't work as expected. I presume I also need to change the second part of the function but can't figure out how.
=IF(ROWS(K$62:K62)>SUM(COUNTIFS(accounts_table[§],{"P","B"})),"",INDEX(accounts_table[Account Name],SMALL(IF(ISNUMBER(MATCH(accounts_table[§],{"P","B"},0)),ROW(accounts_table[§])-ROW(INDEX(accounts_table[§],1,1))+1),ROWS($K$62:K62))))
However, I need to add another COUNTIFS criteria:
COUNTIFS(accounts_table[§],{"P","B"},accounts_table[on],"On")
If I only make this change, the function doesn't work as expected. I presume I also need to change the second part of the function but can't figure out how.