Share via

Look up function

Anonymous
2024-08-21T02:42:04+00:00

Hi there,

The file attachedincludes a sample of data from two separate sources, shown in two tables:

  • Table 1 lists completed vehicle checks on a date and time for a vehicle ID #
  • Table 2 lists vehicle ID # where a check has not been recorded

Records in Table 2 are not relevant if there is a record for the same vehicle ID AND on the same date; listed in Table 1. Can you help me with a function to answer this question please?

Example below indicates that there is already a record for Vehicle #170 in Table 1, therefore the report for this vehicle in Table 2 is not relevant.

thankyou.

Table 1

19/08/2024 7:09 Redacted BEN 1.PreTrip 170 19/08/2024 7:34 658486

Table 2

Redacted Redacted FALSE FALSE Place name 170 18/08/2024 15:30 19/08/2024 2:00
Microsoft 365 and Office | Excel | Other | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-08-21T22:36:15+00:00

    Good morning Andreas,

    I think I have got it to work, thankyou so much again.

    These functions do save lots of time and effort.

    Thankyou

    Jillian

    Was this answer helpful?

    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2024-08-21T07:09:18+00:00

    T2: =MATCH([@VehicleID],Table1[VEHICLEID],0)

    You'll get the row number if the ID is found in the other table, otherwise an error. Therefore:

    T2: =IF(ISERROR(MATCH([@VehicleID],Table1[VEHICLEID],0)),"Relevant","Not relevant")

    Andreas.

    Was this answer helpful?

    0 comments No comments