Avatar of John Carney
John Carney
Flag for United States of America asked on

Excel formula that matches time values that are close but not exact

I'm trying to find a formula that will match two times that are very close to each other but not exact. They're also formatted different so I can't use the EXACT function. Pleae refernce the previous question which will explain what the situation is: https://www.experts-exchange.com/questions/29171053/Emulating-or-replacing-the-EXACT-function-to-return-TRUE-to-a-close-match.html

In any event unlike the two cells in that question, I have some situations where the times are off by a minute or so.


When the times are identical but formatted different I can use this formula: "=VALUE(G267) = VALUE(K267)" where G267 = 20:14 and K267 = 8:14 PM

But what do I do when G267 = 9:22 and K267 = 09:23 AM?

Thanks in advance!

John
Microsoft ExcelMicrosoft Office

Avatar of undefined
Last Comment
John Carney

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
byundt

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Norie

John


If both values are time values you could try something like this.


=IF(ABS(G267-K267) < TIME(0,2,0), "Match", "No Match")



John Carney

ASKER
Wow, you're feeding my need for instant gratification. It works perfectly plus unlike another question I asked recently, I instantly understand it!

Thanks,
John
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23