I am working on some inventory data in which I have account numbers and scan dates. I would like to pivot the data and be able to determine which is the latest date for each account. In the example below hospital 1234 has 2 scan dates, 20110101 and 20110505. I would like to flag the 20110505 Date with a rank or some kind of indicator that shows it is the most recent date. Would like to do this for each hospital.
Column A Column B Column C
Acct Scan Date Most Recent?
1234 20110101
1234 20110101
1234 20110101
1234 20110101
1234 20110505 Y
1234 20110505
1234 20110505
6789 20110202
6789 20110202
6789 20110202
6789 20110404 Y
6789 20110404
6789 20110404
Column A Column B Column C
Acct Scan Date Most Recent?
1234 20110101
1234 20110101
1234 20110101
1234 20110101
1234 20110505 Y
1234 20110505
1234 20110505
6789 20110202
6789 20110202
6789 20110202
6789 20110404 Y
6789 20110404
6789 20110404