Hangover 1 was good and successful, but overall I don't think it's more so than The Office.
And Ed Helms's role in Hangover is nothing compared to Carrell on The Office.
I'm sure Carrell gets paid a lot for the shitty movies he does as well... Even Almighty, Date Night, Dinner for Schmuck, etc
Helms is in a successful franchise, but it's like saying Zack G. is more important than Steve Carrell. Carrell is a far bigger star than Helms. Carrell can still headline major movies (see: Crazy, Sexy, Love; Date Night; Megamind), Helms' major starring role was Cedar Rapids. SC beats Helms easily. It's more than just contract price, and I'd bet SC in The Office made more than EH in TH.
40 YOV: 109 million
Evan Almighty: 100 million (seriously?)
Dan in Real Life: $47 million
Horton Hears A Who: $154 million
Get Smart: $130 million
Date Night: $98 million
Despicable Me: $251 million
Dinner for Shmucks: $78 million
I'd say that's a respectable film career (and yes, I purposely left out Anchorman).
Hangover: $277 million
The Goods: $15 million
Cedar Rapids: $6 million
Hangover 2: $252 million