See if the attached is what you're looking for. The two are identical, test1 uses a program, and test2 uses a range variable. The program is more flexible, but some people prefer range variables. If this isn't what you're looking for, please describe the output you are expecting.
Peter...