IF MAX to find most recent

wizardmagu

Board Regular
Joined
Dec 27, 2012
Messages
58
Office Version
  1. 365
Platform
  1. Windows
I have a file that I use and have a formula to find the most recent "Effective Date" based on the text in the "Header" column. The issue I have is that column B "Resource" is also unique and in the past I would filter the sheet and paste each resource to its own tab. I'm sure these is a way to get this done while all in the same sheet... Any thoughts on changing my current formula to also use column B as a requirement for a match


1691591648923.png
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
MrExcelPlayground19.xlsx
ABCDEFGHIJ
1HeaderResourceEffective DateMost Recent
2212123215/29/2000No
3212123216/30/2014Yes
4212123275/29/2000Yes
5212162115/29/2001Yes
6212162175/29/2000Yes
7219943319/3/2015Yes
8219943371/1/2010No
92199433710/3/2015Yes
Sheet23
Cell Formulas
RangeFormula
J2:J9J2=IF(MAX(FILTER($G$2:$G$9,($A$2:$A$9=A2)*($B$2:$B$9=B2)))=G2,"Yes","No")


Or you could just add ($B$2:$B$3000=B2) also in your formula.
 
Upvote 1
You could also use
Excel Formula:
=IF(MAXIFS(G:G,A:A,A2,B:B,B2)=G2,"Yes","No")
 
Upvote 1
Solution
They both worked great!

I am trying to follow this formula to understand it. I followed the steps on the function helper G:G,A:A,A2,B:B,B2 and I get this... how does the =G2 affecting formula?
=IF(MAXIFS(G:G,A:A,A2,B:B,B2)=G2,"Yes","No")
 
Upvote 0
I see. In your MAXIFS statement, the G:G is the max_range I am wanting to find for that row. The criteria_range2 is just adding that second criteria for it to return then return the Yes or No
 
Upvote 0

Forum statistics

Threads
1,215,327
Messages
6,124,276
Members
449,149
Latest member
mwdbActuary

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