The Dedekind–Hölder theorem states that Ramanujan’s sum and the Von Sterneck function are identical. In this article, we extend the Dedekind–Hölder theorem by generalizing both Ramanujan’s sum and the Von Sterneck function and showing that the two generalizations are identical.