legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,158
- Office Version
- 365
- Platform
- Windows
I have the following unique count formula. The problem is that the lookup value (in bold) part of the match function is looking at the GL account from the text string immediately without first matching the GL account then finding the corresponding SGL account in the Rules sheet (see sample data below).
The formula in the TB sheet should get the GL account from the text string, then go to the Rules sheet to find the matching GL (cell D3:D6) and then return it's corresponding SGL account (E3:E6).
IF(ROWS($C$2:C2)>SUM(IF(FREQUENCY(MATCH(MID(VAATB,Rules!$I$3,Rules!$G$3),MID(VAATB,Rules!$I$3,Rules!$G$3),0),ROW(VAATB)-ROW($A$2)+1),1)),"",...............
https://app.box.com/s/t7kgntw5hgt4fks33nrqiddsx8eml8tv
TIA!
The formula in the TB sheet should get the GL account from the text string, then go to the Rules sheet to find the matching GL (cell D3:D6) and then return it's corresponding SGL account (E3:E6).
IF(ROWS($C$2:C2)>SUM(IF(FREQUENCY(MATCH(MID(VAATB,Rules!$I$3,Rules!$G$3),MID(VAATB,Rules!$I$3,Rules!$G$3),0),ROW(VAATB)-ROW($A$2)+1),1)),"",...............
https://app.box.com/s/t7kgntw5hgt4fks33nrqiddsx8eml8tv
TIA!