Forum Discussion
Need Help-Excel formula for date exceptions
- Mar 30, 2023
Then see how this works
=IFS(C6="","",MAX(C6:AZ6)>=TODAY(),INDEX(C6:Z6,,MATCH(TODAY(),C6:Z6,1)),MAX(C6:AZ6)<=TODAY(),MAX(C6:AZ6))
That one will return today's date if today's date is in the range. If that's not what you want, you can tweak the MATCH section of the formula
If you have Excel 2021 or newer, this will work, taking advantage of the FILTER function where there are dates in the future to only look at those that are less than today, and get the max of those.
=IFS(C6="","",
MAX(C6:AZ6)>=TODAY(),MAX(FILTER(C6:AZ6,C6:AZ6<TODAY())),
MAX(C6:AZ6)<=TODAY(),MAX(C6:AZ6))
- christye1979410Mar 30, 2023Copper Contributor
mathetes Unfortunately, I have Microsoft Excel Professional Plus 2019, so this won't work. Sorry, I should have added that into the post.
- mathetesMar 30, 2023Silver Contributor
Then see how this works
=IFS(C6="","",MAX(C6:AZ6)>=TODAY(),INDEX(C6:Z6,,MATCH(TODAY(),C6:Z6,1)),MAX(C6:AZ6)<=TODAY(),MAX(C6:AZ6))
That one will return today's date if today's date is in the range. If that's not what you want, you can tweak the MATCH section of the formula
- christye1979410Mar 30, 2023Copper ContributorThat worked! TY so much! I've been working on this specific formula for 2 days. I really appreciate your help.