Iferror(vlookup) with result being individual's max date for training

eobrien

New Member
Joined
Apr 29, 2017
Messages
27
Office Version
  1. 365
Platform
  1. Windows
Good Morning All,

I need a formula to place in Contract Sheet (Column E) that will reference a specific person's name from the training sheet (Training A4:A100 (Name) and then give a result of the maximum date in range (Training G4:O100 Floor Training)the range. Its a worksheet to worksheet pull. I tried on the contract sheet in column E {=max(if(Training!$A$4:$a$100=$a3,training!$g$4:$g$100))}. It doesn't work. Any help would be greatly appreciated! E
 

Attachments

  • Training Sheet.png
    Training Sheet.png
    20.2 KB · Views: 15
  • Contract Sheet.png
    Contract Sheet.png
    7.3 KB · Views: 15
Hi, Try to modify it like this :

Excel Formula:
=LET(m,MAX(XLOOKUP(A3,Training!A$4:A$100,Training!G$4:O$100)),IF(m=0,"Schedule",m))

This formula is to be inserted on Row 3 of your Contract sheet - as the XLOOKUP(A3 portion is for row 3. As you copy it down, it should move to A4, A5 etc. but keep the dataset between rows 4 and 100.

The G$4:O$100 needs to have the $ sign to ensure it keeps track of your whole data set (assuming the training sheet runs from row 4 to row 100 as you copy the formula down your sheet.... otherwise you will see it move to 5-101, 6-102, 7-103 etc inside the formula. but you can modify it accordingly to your last row of data if you have 200 rows for example...

Rob
 
Last edited:
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Slight modification to the above to cover the not found scenario
Excel Formula:
=LET(maxDate,MAX(XLOOKUP($A3,Training!$A$4:$A$100,Training!$G$4:$O$100,"")),IFERROR(IF(maxDate=0,"Schedule",maxDate),""))
And the filter alternative
Excel Formula:
=LET(maxDate,MAX(FILTER(Training!$G$4:$O$100,Training!$A$4:$A$100=$A3,"")),IFERROR(IF(maxDate=0,"Schedule",maxDate),""))
 
Upvote 0
Slight modification to the above to cover the not found scenario
Excel Formula:
=LET(maxDate,MAX(XLOOKUP($A3,Training!$A$4:$A$100,Training!$G$4:$O$100,"")),IFERROR(IF(maxDate=0,"Schedule",maxDate),""))
And the filter alternative
Excel Formula:
=LET(maxDate,MAX(FILTER(Training!$G$4:$O$100,Training!$A$4:$A$100=$A3,"")),IFERROR(IF(maxDate=0,"Schedule",maxDate),""))
Thank you Alex!
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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