How can I truncate fields into rows and columns?