I知 trying to figure out a formula and am hoping you might be able to help. Attached is a sample worksheet and the explanation of what I知 trying to figure out.
What I知 trying to do is flag a field if conditions are met ( First check the fiscal year. If the year is X, check list 1, if the year is Y, check list 2: )
More specific to the worksheet: If cell F2 of sheet 1 is < 2016, look at range a2:a6 of sheet 2 and if there is a match to cell a2 of sheet 1 , result should be "YES", else if no match "NO"; otherwise, If cell F2 of sheet 1 is equal to 2016, look at cells a7:a25 of sheet 2 and if there is a match to cell a2 of sheet 1, result should be "YES", else if no match "NO" ---- The only way I can think of the formula is as follows: =IF(f2<>2016,(COUNTIF('sheet2'!A$2:E$6, A2),"Yes",IF(f2=2016(COUNTIF('sheet2'!A$7:A$25, A2),"Yes","No")). Obviously, this is not working.
I致e looked online but have had no luck. I知 hoping you can help me out.
I tried to attach the worksheet but this is my first post so i'm not sure how to.
Bookmarks