What about the other columns? Can you show a few rows of what you have and what you would like to see? Remember - we can't see what you can, we're relying upon your description.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden