VLOOKUP type forumla needed

I have an Excel spreadsheet with two tables. The first table contains a log of data, in which there is no unique key, the second table is a list of unique keys and the most recent entry from the first table.

Table 1 - Assignment History
Columns:-
Date
Serial No.       - Device Serial Number, can appear multiple times.
Device Type   - Phone, Tablet, or Other
Action              - Assign or Unassign
Administrator - Name
Server               - Server A or Server B

Table 2 - Uniqueu Device List
Columns:-
Serial No.       - Device Serial Number, can appear multiple times.
Device Type   - Phone, Tablet, or Other
Last Action Date     - Date of last action (Currently this is a formula -
=MAX(IF(Assignment_History[Serial No.]='Unique Device List'!A2,Assignment_History[Date]))

Open in new window

Last Action              - Should be Assign or Unassign, looked up from Table 1, based on Serial No. and the Last Action Date.

My question is what excel formula can I use to lookup the Action from Assignment History and populate this in my Last Action Column in Table 2 using both Table 2's Serial No. and Last Action Date?
LVL 1
Terry RogersIT Senior EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike in ITIT System AdministratorCommented:
Please provide a workbook with some sample data that we can test against.
0
KoenChange and Transition ManagerCommented:
i think the attached file gives you the solution...

I turned assign/unassigned into 1 and 0 (in a column that could be hidden), to be able to use a sumproduct formula...
EE2.xlsx
0
Terry RogersIT Senior EngineerAuthor Commented:
Hi Koen,

We use VBA to manipulate and populate some of the day, so adding helper columns isn't possible.

Ive attached some randomised data.
0
KoenChange and Transition ManagerCommented:
Terry,

no attachement... :-(

anyways use the attached formula

notice it is an array formula : enter it and hit CTRL+SHIFT+ENTER
EE2.xlsx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Terry RogersIT Senior EngineerAuthor Commented:
Hi Koen,

That worked perfectly, thank you for your help.

Regards
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.