I actually recently began taking a B-complex.
I am pretty physically active, which is why I began taking it, but I have noticed a definite improvement in how long I can work with a 'clear head'. I did a bit of research around it and also found some studies suggesting it helps long-term with cognitive functions.
I suppose that is why redbull and a few other energy drinks throw a lot of B in their drinks.
(It is the only supplement I take, so perhaps through my diet I am missing a certain vit-B, YMMV)
A B-complex vitamin supplement (B-100) plus extra folate (to a total of 200% RDA of folic acid) definitely seems to help, though. And there's research to suggest that it reduces or prevents long-term cognitive decline.