Finding the minimum based on two criteria but one of them is Variable.

smalik

Board Regular
Joined
Oct 26, 2006
Messages
180
Office Version
  1. 365
Platform
  1. Windows
Various insurance policies are prioritized in this order.
1602517438323.png


Many owners have only handful policies. What is the best way to find the earliest month their policy is effective based on the above criteria?
For example,
  1. YOUNED1 has two Auto policies. Since this is the first criteria it should look for the earlier effective policy month based on Auto and YOUNED1. The result should be March (3)
  2. GENNTH1 does not have an Auto policy so formula should automatically look for the next item on the list which is EXFL. In this case since there is only one EXFL policy, the result should be Dec (12)
Can this be done without writing a VBA code? It can be done using multiple columns.
I started thinking about "vlookup" as first step but then I got lost

Any help is greatly appreciated.
1602517627504.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Never mind. I figured it out using the MINIFS twice
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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