• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

If condition

yaelcohen

Member
Hello

I am asking for help

What should be the condition if I need all these firms that have in there data the years 2008,2009,2010 (indicate in "1"). If one of these years is missing - this firm should not indicate in 1.

Attached an example

I appreciate for any clue

Yael
 

Attachments

Hi ,

Check your solution by entering the same year in 3 cells , say C13 , C14 and C15.

Narayan

Hi Narayan,

Thanks for the valuable input....

Now check this formula without helper column....
=IF(AND(COUNTIFS($A$2:$A$15,A2,$B$2:$B$15,2008)=1,COUNTIFS($A$2:$A$15,A2,$B$2:$B$15,2009)=1,COUNTIFS($A$2:$A$15,A2,$B$2:$B$15,2010)=1,OR(B2={2008,2009,2010})),1,"")
Please refer sheet 2........
 

Attachments

Back
Top