Having issues with a IF(MAX(INDEX formula returning Yes or No

mattbird

Active Member
Joined
Oct 15, 2013
Messages
305
Office Version
  1. 2016
Hi,

I'm trying to use a ID number to return the most current training date for a staff member and whether its in date or out of date, using the following formulas:

Formula in Colum Q: {=IF(MAX(INDEX((S2=$S$2:$S$8)*$P$2:$P$8,))=S2,"Yes","No")} - Keeps returning 'No' for everything

Formula in Colum R: =IF(P2 < TODAY()-365,"Out of Date","In Date") - Seems to work, but if there is a better formula please let me know

but it keeps returning 'No' for everything?

Example of what it should do:

PQRS
1Training DateFormula column/ResultsIn Date / Out of DateStaff ID
222/02/2021NoOut of Date22222222
315/09/2021YesOut of Date22222222
428/08/2020NoOut of Date22222222
515/09/2021YesOut of Date22222222
622/10/2021NoOut of Date66666666
722/09/2023YesIn Date66666666
807/11/2020YesOut of Date33333333
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
MAX is returning the highest date but you're comparing that to column S which is the ID number, so none of them will match.
 
Upvote 0
Solution
MAX is returning the highest date but you're comparing that to column S which is the ID number, so none of them will match.
Hi Rory,

I've been looking at the formula for ages, don't know how I didn't see that :).

Thanks for pointing that out to me.
 
Upvote 0
Glad we could help.

Please note that I have changed the marked solution as your post wasn't actually the answer. ;)
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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