Hello all, Datesmatch.xlsxDatesmatch.xlsxI need some help with these complex conditions for my data. .
I have an input column which has 2/3/4 digits with a letter at the end in few cases( I don’t need them..need only the numbers). I have another column called the “dates” which I should use to compare with my input numbers.
My input tells me which year and month
eg: CASE 1:
Input: 0901 (means 2009)
Dates:1/12/2009
As my 09 matches the year in the “dates” Column, I go ahead with the condition to check if the date is before 15th or after 15th of the month. If it is before 15th--then I will have to make sure my output is--> 1/15/2009
CASE 2:
Input: 0203
Dates: 03/27/2002
My year 02 matches 2002 in the “dates” column. The condition to check will be is it before or after 15th. If after 15th, my output should be the last date of that month --->03/31/2002
CASE 3:
Input:03J
Dates: 12/12/2003
The year 03 does matches my year in “dates”.But there is no month given. I should make my output show the mid of the year 2003 Output--> 7/1/2003
CASE 4:
Input: 06
Dates:3/2/2009
The year 06 does not match my year in “dates”. Hence for such cases I should make my output show the mid of the year 2006. Output-->7/1/2006
I have attached a sample excel workbook.
Thanks,
Chippi
Bookmarks