Help with IF Function in Excel

EH_47 0 Reputation points
2025-02-18T18:39:37.41+00:00

I need help with an IF function if that is what makes the most sense for the following scenario:

  • In Sheet 1, I have a list of User IDs
  • In Sheet 2, I have the same list of User IDs, but they could be listed multiple times in the same column
  • In Sheet 2, I have a list of different training codes in another column for training that the users have taken

I need a formula that can help me produce the value TRUE or FALSE in a cell on Sheet 1:

If User ID in Sheet 1 matches User ID in Sheet 2 in a specific column range and in the same row where the User ID matches in Sheet 2 there is a specific training code listed in a specific column range in Sheet 2, then produce the value TRUE. If not, then produce the value False.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
{count} votes

Accepted answer
  1. Emi Zhang-MSFT 28,056 Reputation points Microsoft Vendor
    2025-02-27T06:24:12.5+00:00

    Hi,

    Please try these formulas:

    UID-SWP-826365 training: =IF(COUNTIFS(Sheet2!A:A, C2, Sheet2!D:D, "UID-SWP-826365") > 0, TRUE, FALSE)

    User's image

    ABC-SWP-123456 training: =IF(COUNTIFS(Sheet2!A:A, C2, Sheet2!D:D, "ABC-SWP-123456") > 0, TRUE, FALSE)

    User's image

    Hope it will help.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.