Best formula to compare 2 fields in a multi tab Excel Workbook

Ianteuk

New Member
Joined
Apr 6, 2018
Messages
2
Hi All,

My first post so please be kind to me :)

My question is a straightforward one, however there a a few complexities I need to work out.

I am trying to do a compare on 2 cells to see if the same text exists in both, now this is my problem, the cells are on different tabs, I would also need to search through all fields in the tab to find the matching email address & show the result as true of false.

Another issue is the field I am searching in contains 3 or more email addresses, so although the 2 cells do contain the same email address, because the second cell has more address in it, it comes back as False or errors. the format is smtp:First.Last@DomainA.local+smtp:First.Last@DomainB.local+Smtp:First.Last@DomainC.co.uk I know that the email address I need to find is always the last address in the cell, regardless of how many are in the cell, dont know if this helps matters.

I cannot show you my data as the content is confidential, but I can try to replicate some cells with dummy data, but I dont know if anyone could help me without me having to do that?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi there & welcome.
A couple of clarification questions. Let's call one tab sheet1 and the other sheet2.

Are you wanting to look at a column on sheet1 and see if the data is also on sheet2 in a specific column?
If so, on sheet1, choose a blank column at row 1, and type this:


Code:
=match("*" & a1 & "*",sheet2.range("A:A"),0)

Now, you'll need to fix my code above to fit your needs.
1) a1 will need to be changed to the column and first cell where your data is on sheet1
2) sheet2.range will need to be renamed to your exact name of your other sheet. 'This is a sample'! Do it exactly like that sample but replace "This is a sample" with the name of your sheet.
3) A:A will need to be changed to the range you want to compare on sheet2.

Once that is done, you can drag this code down as many rows as you have data. It should populate some cells with #N/A and some with numbers. The numbers are the rows numbers that the data is found on sheet2. #N/A means not found in this case. No match.
 
Upvote 0
Thanks so much for your reply.

I have tried your code and adapted it to match my sheet info, I get an error message.....

This is the code I have amended >>>> =MATCH("*" & D6 & "*","Office 365 Users 5th April 2018"("H6:H5000"),0)

I have also tried >>>> =MATCH("*" & D6 & "*",'Office 365 Users 5th April 2018'!H6:H5000,0) that just shows the same error.

Can you assist me further on this?

Thanks Ian
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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