Formula to search a range of cells and then compare dates

shakeregg

New Member
Joined
Sep 2, 2018
Messages
39
Hey all,

Hopefully this makes sense!

I've got a long list of names in Column E (first name in E4) and I want to search Column AF which contains a different set of names. If there is a match I would like to compare the contents (dates) of two other cells (G and X). If the date in X is equal to or less than the date in G return a 'Yes'.

eg.......... Compare E4 with AF:AF............ There is a MATCH in AF22 so G4 is compared with X22.
Compare E8 with AF:AF............ There is a MATCH in AF6 so G8 is compared with X6 etc etc.

Cheers in advance!
 
Oooh! I have a formula in AF which changes the format of the name from Joe Smith to Smith, Joe (the same format as E) .......... is it that that's the problem??
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
What is Concentrate?
Also the formula is adding a comma between the words, but you showed it as Smith, Joe
ie comma space
 
Upvote 0
I think I got the formula from an old post from here and it combines two columns together. AC Column is the surname and AB is the first name. In AF it comes out as Surname, Firstname which is the same as format as E
 
Upvote 0
In an unused cell type
=E4=AF26
where AF26 is the cell that matches E4, what does it say?
Also try
=len(e4)
and
=len(af26)
what do those return?
 
Upvote 0
Just tried it again and it worked!! Thank you all three for your help.............. I really appreciate it! Apologies though for prolonging the thread! :eeek:
 
Upvote 0
Glad it's sorted & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,224,829
Messages
6,181,218
Members
453,024
Latest member
Wingit77

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