Hello Shaina Russell, Welcome to the Microsoft Community.
Method 1: Using "Conditional Formatting" to Highlight Common Names
- Select column A in the first worksheet (assuming it's A1:A100).
- In Excel's "Home" tab, click on "Conditional Formatting".
- From the dropdown menu, select "New Rule".
- In the New Formatting Rule dialog box, choose "Use a formula to determine which cells to format".
- In the formula box, enter the following formula:
=COUNTIF(Sheet2!A:A, A1)>0- Here, "Sheet2" is the name of the second worksheet, and A:A is the column range in the second worksheet that contains the patient names.
- Click the "Format" button and set a noticeable format (e.g., fill color or font color).
- Click "OK" to save the rule, then click "Apply" and "OK" to complete the setup.
All cells in the first worksheet that have matching names in column A of the second worksheet will be highlighted with the format you set.
Method 2: Using the "VLOOKUP" Function to Find Common Names
- In the first worksheet, enter the following formula next to column B (assuming it starts from B1):
=IF(ISERROR(VLOOKUP(A1, Sheet2!A:A, 1, FALSE)), "Does not exist", "Exists") - Drag this formula down to apply it to all the cells you need to compare.
This way, column B will show whether each patient name exists in the second worksheet. If it exists, it will display "Exists"; otherwise, it will display "Does not exist".
If you think this information is helpful, or if you still have any questions about it, feel free to let me know in your reply!Best RegardsEliac | Microsoft Community Support Specialist