Golfpro1286
New Member
- Joined
- Aug 22, 2018
- Messages
- 30
I am working on a scorecard and for a portfolio section of it I want to either calculate or lookup the most recent dollar amount of total open loans of the officer in cell C7. The table below (Located in a separate sheet) is named "Port". The expected result is $52,000,000 (Adam, most recent date 6/1/19).
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Officer[/TD]
[TD]Date[/TD]
[TD]System[/TD]
[TD]Category[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Adam[/TD]
[TD]5/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$51,000,000[/TD]
[/TR]
[TR]
[TD]Adam[/TD]
[TD]6/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$52,000,000[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$12,000,000[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]7/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$11,000,000[/TD]
[/TR]
</tbody>[/TABLE]
C7: Adam
I first tried a SUMIFS formula but the MAX of the date did not work because it just gave the most recent date in the entire date column.
Is there an adjustment to this to make it work without being an array formula that requires ctrl+shift+enter to use or possibly an index formula to look it up?
Thanks!
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Officer[/TD]
[TD]Date[/TD]
[TD]System[/TD]
[TD]Category[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]Adam[/TD]
[TD]5/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$51,000,000[/TD]
[/TR]
[TR]
[TD]Adam[/TD]
[TD]6/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$52,000,000[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]5/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$12,000,000[/TD]
[/TR]
[TR]
[TD]John[/TD]
[TD]7/1/19[/TD]
[TD]CL[/TD]
[TD]Total Open Loans[/TD]
[TD]$11,000,000[/TD]
[/TR]
</tbody>[/TABLE]
C7: Adam
I first tried a SUMIFS formula but the MAX of the date did not work because it just gave the most recent date in the entire date column.
Code:
=SUMIFS(Port[Amount],Port[Officer],$C$7,Port[System],"CL",Port[Category],"Total Open Loans",Port[Date],MAX(Port[Date])
Is there an adjustment to this to make it work without being an array formula that requires ctrl+shift+enter to use or possibly an index formula to look it up?
Thanks!