Sephaerius
New Member
- Joined
- May 30, 2013
- Messages
- 45
I've got a spreadsheet where I need to identify three things: for each unique account number, find the max date, then within that, find the largest dollar amount.
So I've got three columns I'm working with, Account Number, Date, and Amount. The Account Number column may have 10,000 records, but only 200 or so are unique. Within that, each repeated account number has a Date, some of those repeated as well, but I only need to find the MAX, then within that, the Large of the Amount column.
I'd like to return TRUE/FALSE, so when I filter on TRUE, the results will be each unique account number's max date with associated largest amount. I hope that makes sense.
I'm nearly there with a non-array formula =IF(AND(MAX(B:B)=B2,LARGE(C:C,1)=C2),TRUE,FALSE) where B is the Date and C is the Amount. But this returns only the 1 row within the entire document, whereas I need to identify that row for each Account Number, so I'm thinking this will be an array instead.
I've been playing with =MAX(IF(... but can't quite seem to get there with it.
Thanks in advance,
So I've got three columns I'm working with, Account Number, Date, and Amount. The Account Number column may have 10,000 records, but only 200 or so are unique. Within that, each repeated account number has a Date, some of those repeated as well, but I only need to find the MAX, then within that, the Large of the Amount column.
I'd like to return TRUE/FALSE, so when I filter on TRUE, the results will be each unique account number's max date with associated largest amount. I hope that makes sense.
I'm nearly there with a non-array formula =IF(AND(MAX(B:B)=B2,LARGE(C:C,1)=C2),TRUE,FALSE) where B is the Date and C is the Amount. But this returns only the 1 row within the entire document, whereas I need to identify that row for each Account Number, so I'm thinking this will be an array instead.
I've been playing with =MAX(IF(... but can't quite seem to get there with it.
Thanks in advance,
Last edited: