michael248363
New Member
- Joined
- Jun 25, 2021
- Messages
- 3
- Office Version
- 2019
- Platform
- Windows
I've been trying to figure out how to do this and searching here and the internet, but I can't figure it out. Maybe I'm making it harder than it needs to be and getting lost in the weeds. I'd like to do this without an array formula as I need speed with real-time calculations and every time I do array formulas it slows things down. Here is my problem recreated from a much larger, multi-sheet workbook
I can't figure out how to do the top 3 days and limit it to the year referenced in cell F1. What I get is in H2:I5. What I want is represented in H8:I11. Note that duplicate amount values cause the date to be listed as oldest first. Column C will always be sorted oldest at the top.
I can't figure out how to do the top 3 days and limit it to the year referenced in cell F1. What I get is in H2:I5. What I want is represented in H8:I11. Note that duplicate amount values cause the date to be listed as oldest first. Column C will always be sorted oldest at the top.
Book1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
C | D | E | F | G | H | I | |||
1 | Date | Amount | 1/1/2020 | The Results I Get | |||||
2 | 1/6/2020 | $12.00 | Top 3 Days | Daily Amount | |||||
3 | 3/30/2020 | $37.00 | 7/8/2021 | $90.00 | |||||
4 | 5/15/2020 | $67.00 | 5/15/2020 | $84.00 | |||||
5 | 5/15/2020 | $84.00 | 5/15/2020 | $84.00 | |||||
6 | 9/8/2020 | $84.00 | |||||||
7 | 11/11/2020 | $50.00 | The Results I Want | ||||||
8 | 2/16/2021 | $19.00 | Top 3 Days | Daily Amount | |||||
9 | 6/4/2021 | $55.00 | 5/15/2020 | $84.00 | |||||
10 | 7/8/2021 | $90.00 | 9/8/2020 | $84.00 | |||||
11 | 9/1/2021 | $23.00 | 5/15/2020 | $67.00 | |||||
12 | 11/1/2021 | $84.00 | |||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H3:H5 | H3 | =INDEX(DATE,MATCH(LARGE(AMOUNT,ROWS(H$3:H3)),AMOUNT,0)) |
I3:I5 | I3 | =INDEX(AMOUNT,MATCH(LARGE(AMOUNT,ROWS(I$3:I3)),AMOUNT,0)) |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
AMOUNT | =Sheet1!$D:$D | H3:I5 |
DATE | =Sheet1!$C:$C | H3:H5 |