The meanings are similar, but 'for' suggests throughout the time period, while 'in' suggests that it is only for a portion of the time period. Your #2 sentences carry no meaning.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.