Match Data and Input Value

jessebh2003

Board Regular
Joined
Feb 28, 2020
Messages
71
Office Version
  1. 365
Platform
  1. Windows
Hello all!
I'm working on a workbook where I need to match data and if the match is found, input a value. The workbook has two sheets - Sheet1 and VideoTracking.

Here's what I'm trying to accomplish...

  1. Find an email match - match column F (VideoTracking) to column F (Sheet1[Provider Email ])
    1. If match found, move to step 3
    2. If no match found, move to step 2
  2. No match found - match column E (VideoTracking[Full Name]) to column A (Sheet1[First Name ]) and column C (Sheet1[Last Name ])
    1. If match found, move to step 3
    2. If no match found, move to step 4
  3. Match found, check that column I (VideoTracking[Coverage]) is equal to or greater than 90%
    1. If true, cell in column H (Sheet1[Completed Requirements ]) of matching name or email is Yes
  4. No matches found, cell in column Q (VideoTracking[No Matches Found]) is No Matches

I think I'm overcomplicating this with too many helper columns:

1. Matching column column F (VideoTracking[ Email]) to column F (Sheet1[Provider Email ])

Excel Formula:
=IF(ISNUMBER(MATCH([@Email],Table2[[Group Name ]])),"Match","No Match")


2. Splitting column E (VideoTracking[Full Name]) into column M (VideoTracking[First Name]) - this causes an issue if there are two first names (e.g., Sue Ellen)
Excel Formula:
=TEXTBEFORE([@[Full Name]]," ")

3. and column N (VideoTracking[Last Name]
Excel Formula:
=TEXTAFTER([@[Full Name]]," ")

4. Matching column M (VideoTracking[First Name]) to column A (Sheet1[First Name ])
Excel Formula:
=IF(ISNUMBER(MATCH([@[First Name]],Table2[[First Name ]])),"Match","No Match")

Unfortunately, my XLSBB add-in isn't working, even after uninstalling and reinstalling, so I'm pasting in my sample data.

File Name: Simple Portal Check Status Spreadsheet 5-15-23.xlsx
Sheet Name: Sheet1
Table Name: Table 2
Columns: A to I
Rows: 1 to 5
Cell Formulas: None
Cells with Data Validation:
H2 - Yes,No​
H3 - Yes,No​
H4 - Yes,No​
H5 - Yes,No​
I2 - Active,Un-Active,Delete​
I3 - Active,Un-Active,Delete​
I4 - Active,Un-Active,Delete​
I5 - Active,Un-Active,Delete​

First NameMiddle NameLast NameGroup NameGroup TINProvider EmailProvider NPICompleted RequirementsStatus
JohnSmithOffice Bldg 1
123456789​
John.Smith@noemail.com
9876543210​
NoActive
JaneA.JohnsonOffice Bldg 2
123456789​
Jjohnson@yesemail.org
9876543210​
NoActive
MaryCJonesOffice Bldg 3
123456789​
MCJones@newemail.net
9876543210​
NoActive
Sue EllenRWilliamsOffice Bldg 4
123456789​
SueEllen.Williams@noemail.com
9876543210​
NoActive


File Name: Simple Portal Check Status Spreadsheet 5-15-23.xlsx
Sheet Name: VideoTracking
Table Name: Table1
Columns: A to Q
Rows: 1 to 5
Cell Formulas:
L2 - =IF(ISNUMBER(MATCH([@Email],Table2[[Group Name ]])),"Match","No Match")​
L3 - =IF(ISNUMBER(MATCH([@Email],Table2[[Group Name ]])),"Match","No Match")​
L4 - =IF(ISNUMBER(MATCH([@Email],Table2[[Group Name ]])),"Match","No Match")​
L5 - =IF(ISNUMBER(MATCH([@Email],Table2[[Group Name ]])),"Match","No Match")​
M2 - =TEXTBEFORE([@[Full Name]]," ")​
M3 - =TEXTBEFORE([@[Full Name]]," ")​
M4 - =TEXTBEFORE([@[Full Name]]," ")​
M5 - =TEXTBEFORE([@[Full Name]]," ")​
N1 - =TEXTAFTER([@[Full Name]]," ")​
N2 - =TEXTAFTER([@[Full Name]]," ")​
N3 - =TEXTAFTER([@[Full Name]]," ")​
N4 - =TEXTAFTER([@[Full Name]]," ")​
O2 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[First Name ]])),"Match","No Match")​
O3 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[First Name ]])),"Match","No Match")​
O4 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[First Name ]])),"Match","No Match")​
O5 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[First Name ]])),"Match","No Match")​
P2 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[Last Name ]])),"Match","No Match")​
P3 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[Last Name ]])),"Match","No Match")​
P4 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[Last Name ]])),"Match","No Match")​
P5 - =IF(ISNUMBER(MATCH([@[First Name]],Table2[[Last Name ]])),"Match","No Match")​
Cells with Data Validation: None

Tracking IDCase IDCase TitleUser IDFull NameEmailInsert DateLast WatchedCoverageVideo Length (hh:mm:ss)Watch Time (hh:mm:ss)Email MatchFirst NameLast NameFirst Name MatchLast Name MatchNo Matches Found
29545​
1110​
Morbid Obesity
31036​
John SmithJohn.Smith@noemail.com
5/15/2023 10:37​
5/15/2023 10:37​
100.000%00:30:1100:30:11No MatchJohnSmithMatchNo Match
29546​
1110​
Morbid Obesity
30452​
Jane JohnsonJaneJohnson@noemail.com
5/15/2023 10:38​
5/15/2023 10:38​
100.000%00:30:1100:30:11No MatchJaneJohnsonMatchNo Match
29565​
1110​
Morbid Obesity
30409​
Mary JonesMCJones@newemail.net
5/15/2023 11:22​
5/15/2023 11:22​
100.000%00:30:1100:30:11No MatchMaryJonesMatchMatch
29571​
1110​
Morbid Obesity
30668​
Sue Ellen WilliamsSueEllen.Williams@noemail.com
5/15/2023 11:44​
5/15/2023 11:44​
100.000%00:30:1100:30:11MatchSueEllen WilliamsMatchMatch

The helper columns are needed unless they are for the solution. I've been trying to figure this out for a while now to no avail. Any help would be greatly appreciated. Thanks!!
 
Last edited by a moderator:
Thanks. The formulas gave me syntax errors, so I tried to update them but they're returning some correct data and some incorrect data. For instance:

In Table1, L2 has the formula
Excel Formula:
=IF(OR(XLOOKUP(Table2[@[Provider Email ]],[Email],[Coverage],0)>=90%,XLOOKUP(Table2[@[First Name ]]&" "&Table2[@[Last Name ]],[Full Name],[Coverage],0)>=90%),"Yes","No")

Tracking IDCase IDCase TitleUser IDFull NameEmailInsert DateLast WatchedCoverageVideo Length (hh:mm:ss:)Watch time (hh:mm:ss)Match Found
12345​
1110​
Morbid Obesity
12345​
Jane SmithJane.Smith@noemail.com
5/15/2023 22:21​
5/15/2023 22:21​
100.000%00:30:1100:30:11No
67890​
1110​
Morbid Obesity
67890​
John DoeJohn.Doe@noemail.com
5/18/2023 22:47​
5/18/2023 22:47​
100.000%00:30:1100:30:11Yes

In Table2, H2 has the formula
Excel Formula:
=IF(OR(ISNUMBER(XMATCH(Table1[@Email],[[Provider Email ]])),ISNUMBER(XMATCH(Table1[@[Full Name]],[[First Name ]]&" "&[[Last Name ]]))),"Yes","No")

First Name Middle Name Last Name Group Name Group TIN Provider Email Provider NPI Completed Requirements Status
JaneSmithBldg 1123456789Jane.smith@noemail.com1234567890NoActive
JohnDoeBldg 2987654321johndoe@gmail.com0987654321YesActive

However, both formulas for Jane Smith return "No" instead of "Yes," John Doe they return "Yes" instead of "No." Am I doing something wrong? I tried flipping "Yes" and "No" in the formulas but that doesn't give me the correct responses either.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
I get Yes for Jane Smith
Fluff.xlsm
ABCDEFGHI
1First NameMiddle NameLast NameGroup NameGroup TINProvider EmailProvider NPICompleted RequirementsStatus
2JohnSmithOffice Bldg 1123456789John.Smith@noemail.com9876543210YesActive
3JaneA.JohnsonOffice Bldg 2123456789Jjohnson@yesemail.org9876543210YesActive
4MaryCJonesOffice Bldg 3123456789MCJones@newemail.net9876543210YesActive
5Sue EllenRWilliamsOffice Bldg 4123456789SueEllen.Williams@noemail.com9876543210YesActive
6JaneSmithBldg 1123456789Jane.smith@noemail.com1234567890YesActive
7JohnDoeBldg 2987654321johndoe@gmail.com987654321YesActive
Main
Cell Formulas
RangeFormula
H2:H7H2=IF(OR(XLOOKUP([@[Provider Email]],Table1[Email],Table1[Coverage],0)>=90%,XLOOKUP([@[First Name]]&" "&[@[Last Name]],Table1[Full Name],Table1[Coverage],0)>=90%),"Yes","No")


Fluff.xlsm
ABCDEFGHIJKL
1Tracking IDCase IDCase TitleUser IDFull NameEmailInsert DateLast WatchedCoverageVideo Length (hh:mm:ss)Watch Time (hh:mm:ss)Column1
2295451110Morbid Obesity31036John SmithJohn.Smith@noemail.com5/15/2023 10:375/15/2023 10:37100.00%00:30:1100:30:11Yes
3295461110Morbid Obesity30452Jane JohnsonJaneJohnson@noemail.com5/15/2023 10:385/15/2023 10:38100.00%00:30:1100:30:11Yes
4295651110Morbid Obesity30409Mary JonesMCJones@newemail.net5/15/2023 11:225/15/2023 11:2295.00%00:30:1100:30:11Yes
5295711110Morbid Obesity30668Sue Ellen Williamssueellen.williams@noemail.com5/15/2023 11:445/15/2023 11:44100.00%00:30:1100:30:11Yes
6123451110Morbid Obesity12345Jane SmithJane.Smith@noemail.com5/15/2023 22:215/15/2023 22:21100.00%00:30:1100:30:11Yes
7678901110Morbid Obesity67890John DoeJohn.Doe@noemail.com5/18/2023 22:475/18/2023 22:47100.00%00:30:1100:30:11Yes
Master
Cell Formulas
RangeFormula
L2:L7L2=IF(OR(ISNUMBER(XMATCH([@Email],Table2[Provider Email])),ISNUMBER(XMATCH([@[Full Name]],Table2[First Name]&" "&Table2[Last Name]))),"Yes","No")


Why should John Doe be NO as the name matches?
 
Upvote 0
Solution

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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