IF Statement/ Format Error

Hi,

I have an IF Statement in ColJ where im trying to establish whether dates in Cols L&D match.

At the moment the dates in both columns match but the IF says no, i suspect this is formatting but am not 100% sure how to amend.

Please find attached.

Thanks
Seamus
test.zip
Seamus2626Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zorvek (Kevin Jones)ConsultantCommented:
The date in column D is formatted as text. Use this formula to compare:

=IF(DATE(LEFT(D2,4),MID(D2,5,2),RIGHT(D2,2))=L2,"Yes","No")

Kevin
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

Your values in column D are not dates.

You can use this formula in J2, copied down

=IF(DATE(LEFT(D2,4),MID(D2,5,2),RIGHT(D2,2))=L2,"Yes","No")

cheers, teylyn
0
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Kevin, the values in column D are not text, they are numbers. They are formatted as General, but they don't represent the dates that Seamus wants to represent.
0
Seamus2626Author Commented:
I must request attention to reassign the points, that was meant to be a split.....
0
Seamus2626Author Commented:
Thanks again guys!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.