Checking Names from a list on another TAB

maddmann

New Member
Joined
Apr 8, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am having an issue with excel. I have racked my brain with all the tricks I can think of and I am stuck. For a little back story, I work at a shelter and we have a list where we input guests that come in for dinner. My staff inputs whole names like "John Doe". I have another tab where I have a list of guests that have been separated from the facility. This list has a first name column and a last name column. It is structured this was for easier usability. I want to check the name that is inputted from, let's say, cell H69 on Tab 1 and check it against the list on Tab 2 and highlight the name on tab 1 if there is a match. I am using conditional formatting to accomplish this. The is the currently formula that I am using "=COUNT(SEARCH('Alpha Separated-Trespass List'!$B$2:$B$107, $H69))". The problem I am having is that it is only checking the last name. I have tried adding and IF in there and essentially copying the code to add the first name column to no avail.

Secondary issue I am having, the list on tab 2 is ever changing. People being added or removed. The above code does not like blank spaces either. I would like it to check a list that is going to grow without me manually changing the coding.

Please help me before I light something on fire. Thank you for your time and consideration!
 

Attachments

  • Check-in Tab 1.png
    Check-in Tab 1.png
    62.5 KB · Views: 11
  • Separated Tab 2.png
    Separated Tab 2.png
    19.1 KB · Views: 10
See if this points you in the right direction:

Book1
A
1Full name
2John Jones
3Ann Smith
4Amy Wills
5
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A11Expression=COUNTIFS(Sheet2!$A:$A,TEXTBEFORE(A2," "),Sheet2!$B:$B,TEXTAFTER(A2," "))>0textYES


Book1
AB
1First NameLast Name
2JohnJones
3JohnSmith
4AmyWills
5
6
Sheet2
 
Upvote 0
See if this points you in the right direction:

Book1
A
1Full name
2John Jones
3Ann Smith
4Amy Wills
5
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A11Expression=COUNTIFS(Sheet2!$A:$A,TEXTBEFORE(A2," "),Sheet2!$B:$B,TEXTAFTER(A2," "))>0textYES


Book1
AB
1First NameLast Name
2JohnJones
3JohnSmith
4AmyWills
5
6
Sheet2
Kevin, that definitely did the trick, thank you! If I have anymore issues with this I will definitly post another comment
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top