Latest Date

1AG

New Member
Joined
Apr 8, 2020
Messages
25
Office Version
  1. 2011
Platform
  1. Windows
Sheet 2 Cell A2 contains the Company ID to lookup in Sheet 1 Column A and then return the latest Service Dates located in Column H. The formula will be in Sheet 2 A6. There may be more than one service date, therefore the Service Date needs to post in the next available row(s) A5:A100 according to latest date. I have tried several ways, using MAX and DateValue and cannot get formula,I would appreciate the help! Lots of intelligence in this forum, I am still learning, but hope to be able to contribute the same.

VLOOKUP(A2,Sheet 1!A:A,MAX(DATEVALUE(IF(MATCH(B1,Sheet1!Print_Titles,0),0))))


Sheet 2
A B
1 Company ID
2 A-3-BT
3
4
5 Service Date Emp Unit
6 3/3/20
7 1/11/19
8
9
10



Sheet 1
A B C D E F G H
1 Company ID Service Date
2 A-3-BT 10/11/19
3 A-3-BT 3/3/20
4 D-1-CC 1/11/17
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Try this array formula

Dante Amor
AB
1Company ID
2A-3-BT
3
4
5Service Date Emp Unit
610/11/2019
703/03/2020
825/05/2020
9 
10 
Sheet2
Cell Formulas
RangeFormula
A6:A10A6=IFERROR(SMALL(IF(Sheet1!$A$2:$A$10=$A$2,Sheet1!$H$2:$H$10),ROWS($B$6:B6)),"")
Press CTRL+SHIFT+ENTER to enter array formulas surrounded with curly braces.


Dante Amor
AH
1Company IDDate
2A-3-BT10/11/2019
3A-3-BT03/03/2020
4A-3-BT25/05/2020
5D-1-CC01/11/2017
6
Sheet1
 
Upvote 0

Forum statistics

Threads
1,214,901
Messages
6,122,157
Members
449,068
Latest member
shiz11713

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