Minimum of the multiple dates for a Product

soumen21

New Member
Joined
Aug 16, 2019
Messages
35
Hi,

I have a list of products and associated dates. A product will have multiple materials and each material have a expiry date. Something like table below.

[TABLE="width: 224"]
<colgroup><col span="2"><col></colgroup><tbody>[TR]
[TD]Product[/TD]
[TD]Material[/TD]
[TD]Material Expiry[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]a[/TD]
[TD]16-Aug-23[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]b[/TD]
[TD]17-May-23[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]b[/TD]
[TD]18-Aug-25[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]c[/TD]
[TD]19-Aug-22[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]b[/TD]
[TD]20-Aug-26[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]d[/TD]
[TD]21-Feb-20[/TD]
[/TR]
[TR]
[TD]BB[/TD]
[TD]a[/TD]
[TD]22-Aug-24[/TD]
[/TR]
[TR]
[TD]CC[/TD]
[TD]a[/TD]
[TD]23-Dec-19[/TD]
[/TR]
</tbody>[/TABLE]

I want to run a query where say I want to look for product 'AA' and say its expiry date. For example 'AA' has material 'd' whose expiry date is 21-Feb-20. So for query for expiry of product AA, I should get the earliest of all dates, in this case 21-Feb-20.
Could you please help with the excel formula to find this out?

Regards
Soumen
 
You're welcome & thanks for the feedback
 
Upvote 0

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.

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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