I use Excel 2010 also and the formula I gave above was just copied and pasted from Excel.
Perhaps regional settings for Portugal explain the difference in separators...

Glad it's sorted for you now