Cell Reference of MAXIF output

pawan

New Member
Joined
Dec 25, 2009
Messages
44
Office Version
  1. 365
Platform
  1. Windows
Hi

I have a Loan Records table which has Following columns
Customer ReferenceLoan TypeLoan Disbursed DateLoan Closed Date
1Personal Loan1st January 202030th June 2021
1Personal Loan1st January 202131st December 2021
1Personal Loan1st January 202231st March 2022
1Loan against Shares1st June 202031st December 2021
1Loan against Shares1st October 202028th February 2022
2Car Loan1st January 201630th June 2021
2Car Loan1st January 201731st December 2021
2Car Loan1st January 2015 30st September 2021

The above is illustrative data

Now my problem is this. For each "Customer Reference", and for each "Loan Type", I want to pull the "Loan Closed Date" corresponding to the latest "Loan Disbursed Date". I have been able to use a MAXIF function to get the latest "Loan Disbursed Date" of a particular "Loan Type" (by setting MAXIF conditions to "Loan Type" and "Customer Reference".) However, the output of MAXIF is a value, but I need the cell reference so that I can Use Offset function on the Cell reference and get to the corresponding "Loan Closed Date"

In the above, Example, Customer 1 has 3 "Personal Loans" where the latest Loan Disbursed Date was on 1st January 2022. I want to pull the Loan Closed date corresponding to this loan i.e. 31st March 2022

Any help would be greatly appreciated

PS: I am not good at array formulae and would like to avoid the same if possible. Also I know this can be easily coded in VBA but would like to avoid VBA too.
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Thanks for updating your profile, although it would have helped if you had replied to my question. ;)

How about
+Fluff 1.xlsm
ABCDEFG
1Customer ReferenceLoan TypeLoan Disbursed DateLoan Closed Date
21Personal Loan01/01/202030/06/2021131/03/2022
31Personal Loan01/01/202131/12/2021Personal Loan
41Personal Loan01/01/202231/03/2022
51Loan against Shares01/06/202031/12/2021
61Loan against Shares01/10/202028/02/2022
72Car Loan01/01/201630/06/2021
82Car Loan01/01/201731/12/2021
92Car Loan01/01/201530/09/2021
Main
Cell Formulas
RangeFormula
G2G2=INDEX(SORT(FILTER(C2:D9,(A2:A9=F2)*(B2:B9=F3)),1,-1),1,2)
 
Upvote 0
Solution
Thanks for updating your profile, although it would have helped if you had replied to my question. ;)

How about
+Fluff 1.xlsm
ABCDEFG
1Customer ReferenceLoan TypeLoan Disbursed DateLoan Closed Date
21Personal Loan01/01/202030/06/2021131/03/2022
31Personal Loan01/01/202131/12/2021Personal Loan
41Personal Loan01/01/202231/03/2022
51Loan against Shares01/06/202031/12/2021
61Loan against Shares01/10/202028/02/2022
72Car Loan01/01/201630/06/2021
82Car Loan01/01/201731/12/2021
92Car Loan01/01/201530/09/2021
Main
Cell Formulas
RangeFormula
G2G2=INDEX(SORT(FILTER(C2:D9,(A2:A9=F2)*(B2:B9=F3)),1,-1),1,2)
Thank you so much!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,107
Members
453,021
Latest member
Justyna P

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