MAX Lookup Help

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).

OfficerDateSystemCategoryAmount
Adam5/1/19CLTotal Open Loans$51,000,000
Adam6/1/19CLTotal Open Loans$52,000,000
John5/1/19CLTotal Open Loans$12,000,000
John7/1/19CLTotal Open Loans$11,000,000

<tbody>
</tbody>

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!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this


Code:
=SUMPRODUCT((Port[Officer]=C7)*(Port[System]="CL")*(Port[Category]="Total Open Loans")*(Port[Date]=LOOKUP(2,1/((Port[Officer]=C7)*(Port[System]="CL")*(Port[Category]="Total Open Loans")),Port[Date]))*(Port[Amount]))
 
Last edited:
Upvote 0
Just to show the many options of Excel, here are a few more options:

Use this one if the loans are in date order by officer. It essentially finds the last entry by an officer.
Code:
=LOOKUP(2,1/(Port[Officer]=C7)/(Port[System]="CL"),Port[Amount])

If you have the MAXIFS function, you can adapt your existing formula as follows:
Code:
=SUMIFS(Port[Amount],Port[Officer],$C$7,Port[System],"CL",Port[Category],"Total Open Loans",Port[Date],[COLOR=#ff0000]MAXIFS(Port[Date],Port[Officer],C7,Port[System],"CL")[/COLOR])

Here's another option, but requires that your amounts are under $10 billion dollars:
Code:
=MOD(AGGREGATE(14,6,(Port[Date]*10^10+Port[Amount])/(Port[Officer]=C7)/(Port[System]="CL"),1),10^10)
 
Upvote 0

Forum statistics

Threads
1,214,589
Messages
6,120,415
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top