We consider the rainbow Schur number RSm(n), defined to be the minimum number of colors such that every coloring of {1,2,…,n}, using all RSm(n) colors, contains a rainbow solution to the equation x1+x2+⋯+xm−1=xm. Recently, the exact values of RS3(n) and RS4(n) were determined for all n. In this paper, we expand upon this work by providing a formula for RSm(n) that holds for all m≥4 and all n. A weakened version of the rainbow Schur number is also considered, for which one seeks solutions to the above-mentioned linear equation where, for a fixed t≤m, at least t colors are used.