I've actually been asked about IKEA in the past as well. The crux of the issue is that IKEA is the largest single employer and GDP powerhouse of Sweden. So, the country has been more than understanding of their "tax plan."
The founder of ikea essentially owns everything through a charity and avoid all taxes for effective purposes.
And, more recently, some details about how they do it: http://www.ft.com/intl/cms/s/0/2437643c-2985-11e0-bb9b-00144...