Select the output based on multiple column conditions

rac241985

New Member
Joined
Jan 30, 2017
Messages
27
[TABLE="width: 240"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Phone[/TD]
[TD]Country[/TD]
[TD]Approval Date[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]Singapore[/TD]
[TD="align: right"]9/1/2016[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]Singapore[/TD]
[TD="align: right"]9/1/2017[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]Vietnam[/TD]
[TD="align: right"]9/15/2017[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]China[/TD]
[TD="align: right"]12/1/2016[/TD]
[/TR]
[TR]
[TD]Samsung [/TD]
[TD]Singapore[/TD]
[TD="align: right"]12/1/2017[/TD]
[/TR]
[TR]
[TD]Samsung[/TD]
[TD]China[/TD]
[TD="align: right"]12/15/2017[/TD]
[/TR]
[TR]
[TD]Samsung[/TD]
[TD]Turkey[/TD]
[TD="align: right"]1/5/2016[/TD]
[/TR]
[TR]
[TD]Samsung[/TD]
[TD]Turkey[/TD]
[TD="align: right"]1/5/2017[/TD]
[/TR]
</tbody>[/TABLE]

I have 3 columns as shown above. In column B, the country maybe repeated twice. How can I return only a specific row which has the latest approval date for each product in every country. I have a drop down menu formula based on the Index function where if the user selects Iphone I should see the following output.

[TABLE="width: 240"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD]Phone[/TD]
[TD]Country[/TD]
[TD]Approval Date[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]Singapore[/TD]
[TD="align: right"]9/1/2017[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]Vietnam[/TD]
[TD="align: right"]9/15/2017[/TD]
[/TR]
[TR]
[TD]Iphone[/TD]
[TD]China[/TD]
[TD="align: right"]12/1/2016[/TD]
[/TR]
</tbody>[/TABLE]


Can someone please help.

Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Make a helper column. The filter would be True for it and Iphone for field1.
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,300
Members
452,633
Latest member
DougMo

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