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:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
How about
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:2275.00%00:30:1100:30:11No
5295711110Morbid Obesity30668Sue Ellen WilliamsSueEllen.Williams@noemail.com5/15/2023 11:445/15/2023 11:44100.00%00:30:1100:30:11Yes
Master
Cell Formulas
RangeFormula
L2:L5L2=IF(OR(ISNUMBER(XMATCH([@Email],Table2[Provider Email])),ISNUMBER(XMATCH([@[Full Name]],Table2[First Name]&" "&Table2[Last Name]))),IF([@Coverage]>=90%,"Yes","No"),"No")
 
Upvote 0
Thanks, Fluff! That worked great to identify the matches on the VideoTracking sheet, except it seems that the formula is case sensitive. When I tried it, it would find the match for SueEllen.Williams@noemail.com but not for sueellen.williams@noemail.com. Is there a way for it not check case sensative too?

Any thoughts about this part of the question?

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​

Really appreciate your help!!!
 
Upvote 0
Is there a way for it not check case sensative too?
That formula is not case sensitive.
Any thoughts about this part of the question?

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
It already does that, which is why L4 shows No.
 
Upvote 0
That formula is not case sensitive.

It already does that, which is why L4 shows No.
How does column H (Sheet1[Completed Requirements ]) of the matching name or email become Yes? Maybe I'm not understanding?

In my real data sheet, I'm getting lots of No's that should be Yes's and all of the names with more than one first name or last name (e.g., Sue Ellen Williams, Mary Smith Jones) are coming back No. I checked to make sure the names and emails matched and that there weren't any extra spaces.
 
Upvote 0
I thought you wanted the formula in table1 rather than table2
 
Upvote 0
I'm sorry if my explanation was confusing.

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

This part is on the first tab, Sheet1 in Table2

4. No matches found, cell in column Q (VideoTracking[No Matches Found]) is No Matches

This part is on the second tab, VideoTracking in Table1
 
Upvote 0
So you are looking for two formulae not one?
 
Upvote 0
In that case for table2 try
Excel Formula:
=IF(OR(ISNUMBER(XMATCH([@Email],Table2[Provider Email])),ISNUMBER(XMATCH([@[Full Name]],Table2[First Name]&" "&Table2[Last Name]))),"Yes","No")
in Table1
Excel Formula:
=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")
 
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,129
Members
449,097
Latest member
mlckr

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