I have a table with three fields (ID, Price, Date) in excel. It has four records as following:
ID Price Date
1 $400 1/1/2010
2 $500 1/2/2010
3 $200 1/1/2010
4 $899 1/2/2010
I would like to take each value of the date and place it in a cell A2,A3,A4…. however, I want to take only unique dates and do not take any date that was already stored in a previous cell. For example, date 1/1/2010 should be stored in cell A2 and 1/2/2010 should be stored in cell A3. When it comes to the third record which is 1/1/2010 it should ignore it because a similar date was already found previously and so on.
Thanks for your help!
Here’s some VBA code you can use to loop through the first sheet and copy only the first unique row to the second sheet. Your question asked for just the value to be copied, but this code copies the entire row. You could easily remove the unnecessary columns or modify the code.