I think I figured it out:
If (InStr ({Chart.AccountID},"5000")>0) then 1
else if (InStr ({Chart.AccountID},"5050")>0) then 1
else if (InStr ({Chart.AccountID},"5060")>0) then 1
else if (InStr ({Chart.AccountID},"5070")>0) then 1
else if (InStr ({Chart.AccountID},"5100")>0) then 1
else if (InStr ({Chart.AccountID},"5200")>0) then 1
else if (InStr ({Chart.AccountID},"5325")>0) then 1
else if (InStr ({Chart.AccountID},"5400")>0) then 1
else if (InStr ({Chart.AccountID},"5550")>0) then 1
else if (InStr ({Chart.AccountID},"5625")>0) then 1
else if (InStr ({Chart.AccountID},"5650")>0) then 1
else if (InStr ({Chart.AccountID},"5725")>0) then 1
else if (InStr ({Chart.AccountID},"5825")>0) then 1
else if (InStr ({Chart.AccountID},"5900")>0) then 1
else if (InStr ({Chart.AccountID},"6000")>0) then 2
else if (InStr ({Chart.AccountID},"6005")>0) then 2
else if (InStr ({Chart.AccountID},"6010")>0) then 2
else if (InStr ({Chart.AccountID},"6050")>0) then 2
else if (InStr ({Chart.AccountID},"6100")>0) then 2
else if (InStr ({Chart.AccountID},"6125")>0) then 2
else if (InStr ({Chart.AccountID},"6150")>0) then 2
else if (InStr ({Chart.AccountID},"6200")>0) then 2
else if (InStr ({Chart.AccountID},"6275")>0) then 2
else if (InStr ({Chart.AccountID},"6300")>0) then 2
else if (InStr ({Chart.AccountID},"6399")>0) then 2
else if (InStr ({Chart.AccountID},"6400")>0) then 2
else if (InStr ({Chart.AccountID},"6450")>0) then 3
else if (InStr ({Chart.AccountID},"6460")>0) then 3
else if (InStr ({Chart.AccountID},"6470")>0) then 3
else if (InStr ({Chart.AccountID},"6480")>0) then 3
else if (InStr ({Chart.AccountID},"6500")>0) then 3
else if (InStr ({Chart.AccountID},"6525")>0) then 3
else if (InStr ({Chart.AccountID},"6550")>0) then 3
else if (InStr ({Chart.AccountID},"6565")>0) then 3
else if (InStr ({Chart.AccountID},"6575")>0) then 3
else if (InStr ({Chart.AccountID},"6600")>0) then 3
else if (InStr ({Chart.AccountID},"6625")>0) then 3
else if (InStr ({Chart.AccountID},"6650")>0) then 3
else if (InStr ({Chart.AccountID},"6675")>0) then 3
else if (InStr ({Chart.AccountID},"6700")>0) then 3
else if (InStr ({Chart.AccountID},"6725")>0) then 3
else if (InStr ({Chart.AccountID},"6750")>0) then 3
else if (InStr ({Chart.AccountID},"6775")>0) then 3
else if (InStr ({Chart.AccountID},"6800")>0) then 3
else if (InStr ({Chart.AccountID},"6850")>0) then 3
else if (InStr ({Chart.AccountID},"6900")>0) then 3
else if (InStr ({Chart.AccountID},"7000")>0) then 4
else if (InStr ({Chart.AccountID},"7002")>0) then 4
else if (InStr ({Chart.AccountID},"7003")>0) then 4
else if (InStr ({Chart.AccountID},"7005")>0) then 4
else if (InStr ({Chart.AccountID},"7025")>0) then 5
else if (InStr ({Chart.AccountID},"7030")>0) then 5
else if (InStr ({Chart.AccountID},"7050")>0) then 5
else if (InStr ({Chart.AccountID},"7100")>0) then 5
else if (InStr ({Chart.AccountID},"7125")>0) then 5
else if (InStr ({Chart.AccountID},"7650")>0) then 5
else if (InStr ({Chart.AccountID},"7775")>0) then 5
else if (InStr ({Chart.AccountID},"7950")>0) then 5
else if (InStr ({Chart.AccountID},"7960")>0) then 5
else if (InStr ({Chart.AccountID},"8025")>0) then 6
else if (InStr ({Chart.AccountID},"8050")>0) then 6
else if (InStr ({Chart.AccountID},"8150")>0) then 6
else if (InStr ({Chart.AccountID},"8200")>0) then 6
else if (InStr ({Chart.AccountID},"8250")>0) then 6
else if (InStr ({Chart.AccountID},"8300")>0) then 6
else if (InStr ({Chart.AccountID},"8350")>0) then 6
else if (InStr ({Chart.AccountID},"8352")>0) then 6
else if (InStr ({Chart.AccountID},"8360")>0) then 6
else if (InStr ({Chart.AccountID},"8400")>0) then 6
else if (InStr ({Chart.AccountID},"8450")>0) then 6
else if (InStr ({Chart.AccountID},"8460")>0) then 6
else if (InStr ({Chart.AccountID},"8500")>0) then 6
else if (InStr ({Chart.AccountID},"8510")>0) then 6
else if (InStr ({Chart.AccountID},"8520")>0) then 6
else if (InStr ({Chart.AccountID},"8525")>0) then 6
else if (InStr ({Chart.AccountID},"8530")>0) then 6
else if (InStr ({Chart.AccountID},"8600")>0) then 6
else if (InStr ({Chart.AccountID},"8650")>0) then 6
This lets me group on this formula and sorts the account numbers in a range in account # order.
Thanks.