First - you may need to clean your data before you can effectively manipulate it
glance over How to Create a Database in Excel