If formula help

Kyosti

Board Regular
Joined
Jun 2, 2008
Messages
90
I have the formula below that is currently working to return the most recent date in a table based on the if criteria within the formula:

=MAX(IF(Table1[Vendor Description]=[@Vendor],Table1[Record Create Date]))

But what I need to now factor is in s a secondary criteria to return the same result:

If(table1[Enrollment Status Description]="Explicit Enrollment")

What I cannot figure out is how to get the two criteria to work together to return the desired result.

Explicit Enrollment File.xlsm
ABCDEFGH
1Vendor CodeVendor DescriptionProducer NumberEnrollment Effective DateEnrollment Termination DateEnrollment Transaction Effective DateEnrollment Status CodeEnrollment Status Description
2001Vendor 1A15/1/20095/1/2009EEExplicit Enrollment
3001Vendor 1A23/4/20143/4/2014EEExplicit Enrollment
4002Vendor 2A310/13/200810/13/2008EEDerived Enrollment
5002Vendor 2A45/1/20095/1/2009EEExplicit Enrollment
6003Vendor 3A55/1/20095/1/2009EEDerived Enrollment
7003Vendor 3A62/18/20142/18/2014EEExplicit Enrollment
Sheet1
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi,

Try it like this, Untested:

Excel Formula:
=MAX(IF((Table1[Vendor Description]=[@Vendor])*(table1[Enrollment Status Description]="Explicit Enrollment")
,Table1[Record Create Date]))
 
Upvote 0
Solution
Hi,

Try it like this, Untested:

Excel Formula:
=MAX(IF((Table1[Vendor Description]=[@Vendor])*(table1[Enrollment Status Description]="Explicit Enrollment")
,Table1[Record Create Date]))
You are the MAN!!! Works perfectly!!
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,412
Messages
6,119,369
Members
448,888
Latest member
Arle8907

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