The only powder I have personally gotten ahold of that was bad was Hodgdon H-380 that was previously opened and was on a shelf with direct sunlight on it. A little one horse gun shop a while ago.
I have several cans of powder that I've had for years that is still good. Probably the oldest I have used was IMR 4227 bought already opened with a bunch of other stuff that we used in a friends Savage muzzeloader a few years ago. I probably bought this 25 years ago and it was old then. But is in an IMR tin can (grey) so really not that old. The main thing with powder is the way its stored. I remember reading (probably in the '70s that they tested Uniuqe that had been stored (UNDERWATER!!) every year and it was still good. I seem to remember the date as 1909 when it was originaly brought out.
Not touting that as gospel, but it has been a while.
That 380 was definitly bad, it was clumpted and smelled BAD! You will know, Gary