Link to home
Start Free TrialLog in
Avatar of Terry Rogers
Terry RogersFlag for United Kingdom of Great Britain and Northern Ireland

asked on

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?
Avatar of Mike in IT
Mike in IT
Flag of United States of America image

Please provide a workbook with some sample data that we can test against.
Avatar of Koen
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
Avatar of Terry Rogers

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Koen
Koen
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi Koen,

That worked perfectly, thank you for your help.

Regards