Hi, Need some help on a spreadsheet that I frequently work on.
After a number of tries I have reached the end of my excel and macro knowledge (newbie).
The excel sheet only has one sheet(tab), in the first column of the sheet there are people's names or dates. In the fourth column are people's names again.
What I need to do is, if the value of each cell in column A is a name, leave it alone. If the value of the cell in column A is a date, shift the entire row to the right one cell.
Once this is done, i need to sort the rows under each name alphabetically between the empty cells. This can be done by first name since the first and last names are both in the same cell.
Sheet Example:
A B C D
Mike
9/28/11 item 1 code123 John Doe
9/28/11 item 2 code456 Jane Doe
9/27/11 item 1 code123 Mickey Mouse
Eric
9/28/11 item 1 code123 George Washington
9/28/11 item 2 code456 Abraham Lincoln
9/27/11 item 1 code123 John F Kennedy
Desired Results:
A B C D E
Mike
9/28/11 item 2 code456 Jane Doe
9/28/11 item 1 code123 John Doe
9/27/11 item 1 code123 Mickey Mouse
Eric
9/28/11 item 2 code456 Abraham Lincoln
9/28/11 item 1 code123 George Washington
9/27/11 item 1 code123 John F Kennedy
After a number of tries I have reached the end of my excel and macro knowledge (newbie).
The excel sheet only has one sheet(tab), in the first column of the sheet there are people's names or dates. In the fourth column are people's names again.
What I need to do is, if the value of each cell in column A is a name, leave it alone. If the value of the cell in column A is a date, shift the entire row to the right one cell.
Once this is done, i need to sort the rows under each name alphabetically between the empty cells. This can be done by first name since the first and last names are both in the same cell.
Sheet Example:
A B C D
Mike
9/28/11 item 1 code123 John Doe
9/28/11 item 2 code456 Jane Doe
9/27/11 item 1 code123 Mickey Mouse
Eric
9/28/11 item 1 code123 George Washington
9/28/11 item 2 code456 Abraham Lincoln
9/27/11 item 1 code123 John F Kennedy
Desired Results:
A B C D E
Mike
9/28/11 item 2 code456 Jane Doe
9/28/11 item 1 code123 John Doe
9/27/11 item 1 code123 Mickey Mouse
Eric
9/28/11 item 2 code456 Abraham Lincoln
9/28/11 item 1 code123 George Washington
9/27/11 item 1 code123 John F Kennedy