Hi,
*
I have a list that is constantly updated with “codes”, names, and dollar amounts. I am trying to make a list of the top five loans by dollar amounts based on the lowest code, first.
*
For example, if there are seven code 1s in my list:
*
Code Name Amount
1 Tri. $1,000
1 Mike. $600
1 Ben. $250
1 Daniel. $900
1 Hector. $150F
1 Nick. $75
1 Matt. $850
2 Anu. $3,000
2 Steven. $200
2 Brian. $450
2 John. $375
2 Kevin. $225
*
than the first five code 1s with the highest dollar amounts get listed so my following result would look like this:
*
#. Name Amount Code
1 Tri. $1,000. 1
2 Daniel. $900. 1
3 Matt. $850. 1
4 Mike. $600. 1
5 Ben. $250. 1
*
For this, I used the following CSEs:
*
The Name column:
{=INDEX($B$1:$B$14,SMALL(IF($C$1:$C$14=G6,ROW($C$1:$C$14)),COUNTIF(G$6:G6,G6)))}
*
The Amount column: {=LARGE(IF($A$1:$A$14=H6,$C$1:$C$14),ROW(1:1))}
*
The Code column: {=SMALL(IF($A$1:$A$14<>0,$A$1:$A$14),1)}
*
*
The issue I have is that since this list gets updated daily, there may not be more than five code 1s at one time, therefore, let’s say Ben, Hector, and Nick disappear leaving four code 1s (Tri, Mike, Daniel, and Matt), I want the #5 spot to fill with the next lowest code, which would be: code 2, Anu, $3,000. My following result would look like this:
*
Intended Result:
*
#. Name. Amount Code
1 Tri. $1,000. 1
2 Daniel. $900. 1
3 Matt. $850. 1
4 Mike. $600. 1
5 Anu. $3,000. 2
*
I'm doing all of this on my iPhone. I would attach an example in an Excel file but my iPhone won't allow it. This is for work and for some reason, I can't access Excel Forum at work. Any help would be greatly appreciated.
*
Thank you,
Tri
Bookmarks