I have dates in col A and Col B. I want to match the col A dates with Col B and want to have the dates which matches.
for eg
A B C
15/2/2009 15/2/2009 Y
25/2/2009 26/2/2009 N
5/2/2009 26/2/2009 N
Please reply & thanks in advance.
I have dates in col A and Col B. I want to match the col A dates with Col B and want to have the dates which matches.
for eg
A B C
15/2/2009 15/2/2009 Y
25/2/2009 26/2/2009 N
5/2/2009 26/2/2009 N
Please reply & thanks in advance.
Hi
in column C1 use formula =IF(A1=B1,"Y","N") to return a Y value for matches and an N value for non-matches, drag formula down as far as cells A & B are populated
I think should better post the ques as...
I need to match A1 with the entire B column and not only with the adjacent value.
Please help me resolving this.
Thanks for answering.
ok you will need a vlookup then eg =VLOOKUP(A:A,B:B,1,FALSE) where cell C will return an #N/A where it doesn't recognise the date in column A anywhere in column B and a date value where it recognises across both columns. you can then change all #N/A values to "N" and all else to "Y"
there's probably way fancier ways our there though- that's my quick solution, hope it helps
Try this
={IF(EXACT(A1,B1:B26),"Y","N")}
Confirm w/ ctrl+shift+enter
Maybe it will help
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
poojabans , perhaps you should post a workbook and explain what you want in context.
ContaminatedWitExcel, EXACT only serves to make Excel do case-sensitive compares, and is not relevant to numbers.
Entia non sunt multiplicanda sine necessitate
Here’s something I ran up if I understand correctly what you want this will do what I suggested earlier but take the manual right out. Macro- Record Macro- Stop straight away and paste the code in in place of what was recorded- close and hit macro- run. This assumes that your data compares A&B in C and that the worksheet is called "Sheet1" (if not change to whatever you have it called on line 2)
![]()
Please Login or Register to view this content.
Last edited by somesoldiers; 05-18-2009 at 12:15 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks