Alright, this should be so simple, yet I apparently can't get my brain to cooperate.
First some sample data. This is looking at transaction history for a group of accounts: (and it's in a table, I'll call Accounts)
[TT]
AccountID TransAmount TransType OtherFields..
11111 100 TypeA
11111 300 TypeA
11111 50.55 TypeB
11111 557.12 TypeA
11111 419.50 TypeC
11111 10349.99 TypeB
22222 12 TypeA
22222 422 TypeA
22222 50.55 TypeB
22222 627.92 TypeA
22222 439.50 TypeC
22222 49.99 TypeB
33333 18 TypeA
33333 427 TypeA
33333 51.55 TypeB
33333 115.13 TypeA
33333 .50 TypeC
33333 49.99 TypeB
[/TT]
So I'm trying to use an array formula, which I KNOW is not correct, but seem to get my mind to think about what SHOULD work.
Here's my array formula:
[/CODE]
So why it's not working is that I'm not looking for every instance where AccountID = THIS AccountID AND it is of TypeC, but what I really want to know is: Which Records are related to an Account that has a TransType = "TypeC".
Can anyone shed any light on my Monday stupor?
p.s. Please forgive my columns being squished together. Apparently TT doesn't seem to help anymore, nor does manually spacing.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
First some sample data. This is looking at transaction history for a group of accounts: (and it's in a table, I'll call Accounts)
[TT]
AccountID TransAmount TransType OtherFields..
11111 100 TypeA
11111 300 TypeA
11111 50.55 TypeB
11111 557.12 TypeA
11111 419.50 TypeC
11111 10349.99 TypeB
22222 12 TypeA
22222 422 TypeA
22222 50.55 TypeB
22222 627.92 TypeA
22222 439.50 TypeC
22222 49.99 TypeB
33333 18 TypeA
33333 427 TypeA
33333 51.55 TypeB
33333 115.13 TypeA
33333 .50 TypeC
33333 49.99 TypeB
[/TT]
So I'm trying to use an array formula, which I KNOW is not correct, but seem to get my mind to think about what SHOULD work.
Here's my array formula:
Code:
{=SUM(([TransType]="TypeC")*([AccountID]=[@AccountID]))}
So why it's not working is that I'm not looking for every instance where AccountID = THIS AccountID AND it is of TypeC, but what I really want to know is: Which Records are related to an Account that has a TransType = "TypeC".
Can anyone shed any light on my Monday stupor?
p.s. Please forgive my columns being squished together. Apparently TT doesn't seem to help anymore, nor does manually spacing.
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57