I have a spreadsheet of data that includes the following:
S# Record # SO # Line # SIZE DATE
11A035 1 5703 1 12M 03/02/13
11A035 1 6177 1 12M 04/20/13
11A036 2 5804 1 12M 03/18/13
11A036 2 6295 1 NB 05/20/13
11A040 6 5804 35 12M 03/18/13
11A040 6 6295 6 NB 05/20/13
09A288 522 7037 7 18M 04/29/13
58A471 1143 5929 93 5T 03/29/13
58A471 1143 7167 20 2T 04/26/13
What I am trying to accomplish is to return the SO# with the earliest date based on the S#. I am trying to write a VLookup function that has the S# as the Lookup value and returns the SO# of the earliest date record.
For instance, my formula should return 5703 for S#11A035 and 5929 for S# 58A471.
I tried using a VLookup + MIN function but that didn't work out for me. Should I use a Pivot table? Any help would be greatly appreciated.
Bookmarks