Sort Å. Ä, Ö

Anonymous
2023-04-30T09:29:17+00:00

Sort Swedish Å, Ä, Ö. Problem!

How to ?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2023-04-30T11:18:12+00:00

    Sorting with words that contain special characters are often not supported by Excel, or also depend on the sorting method of your operating system... if your region settings allow different sorting methods.

    The (to me) most known problem comes from German where we have the character ß which can also be written as ss.

    In English we have the word sauce (in the sense of gravy, I guess sås in Swedish), which actually comes from French. The same word in German in Soße, but if you life in the nearby or in Switzerland you can also write Sosse. All this words means the same delicious juice. :-) Whatever, let us write this 2 German words into Excel and sort it AZ and ZA and see what happens:

    Image

    Absolutely nothing!

    That problem is not inside Excel, it's inside the OS. When sorting, the individual characters are assigned a value and ultimately sorted according to these numbers.

    If we add a VBA code we can make this values visible (in hexadecimal notation).

    Function HexCode(ByVal Expression As String) As String
    Dim i As Long
    For i = 1 To Len(Expression)
    HexCode = HexCode & Right$("00" & Hex(AscW(Mid$(Expression, i, 1))), 4)
    Next
    End Function

    Image

    B1: =HexCode(A1)

    That's the reason why Ä is sorted before Å. And there is no way to change the behavior, if you want a different sorting you either have to use helper routines similar to mine and sort by the helper column or write your own sorting routines.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-04-30T10:34:09+00:00

    Hej HansSöderbäck!

    För att sortera data i Microsoft Excel baserat på det svenska alfabetet med Å-, Ä- och Ö-tecken kan du följa dessa steg:

    Markera den kolumn som du vill sortera.

    Gå till fliken "Data" på menyfliksområdet.

    Klicka på knappen "Sortera".

    I dialogrutan "Sortera" väljer du den kolumn du vill sortera efter i rullgardinsmenyn "Sortera efter".

    Välj "Anpassad lista" i rullgardinsmenyn "Beställ".

    I dialogrutan "Anpassade listor" klickar du på "NY LISTA".

    I rutan "Listposter" skriver du Å, Ä, Ö (i den ordningen), avgränsade med kommatecken.

    Klicka på "Lägg till" och sedan "OK" för att spara den nya anpassade listan.

    Tillbaka i dialogrutan "Sortera", se till att "Sorteringsordning" är inställd på "Stigande".

    Klicka på "OK" för att sortera data i den valda kolumnen i det svenska alfabetet med Å-, Ä- och Ö-tecken.

    Vänligen meddela mig, om du behöver ytterligare hjälp, hjälper jag gärna vidare.

    Vänliga hälsningar Shakiru

    Det här svaret är maskinöversatt. Det kan därför innehålla grammatiska fel eller konstiga uttryck.

    Was this answer helpful?

    0 comments No comments