Excel Formula that will only return data from tab 2 if it is different than tab 1

p3gladiator

New Member
Joined
Oct 11, 2021
Messages
8
Office Version
  1. 2010
Platform
  1. Windows
Hi Everyone,
I was hoping that someone could help me, please. I have a spreadsheet with 2 tabs -
Tab 1 contains employee demographics
Tab 2 contains the dependent demographics.
I need a formula for Tab 1 that will return the addresses of Tab 2 if different than the employees. I will be using the Employees Name and or SSN. This would be easy peasy if the employee had only 1 child but, some have multiple children that may have different addresses.
Can anyone help me?
thanks so much!
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Post some rows of data to show as example
 
Upvote 0
I need the address in orange from tab 2 to be returned in the Dep address cell in orange on Tab 1.

different address retrieval.JPG
 
Upvote 0
If there could be more different addresses you need this formula. Pull down for multiple results

Excel Formula:
=IFERROR(INDEX(Sheet2!$C$3:$C$5,AGGREGATE(15,6,ROW($1:$3)/((Sheet2!$A$3:$A$5=Sheet1!$A$3)*(Sheet2!$C$3:$C$5<>Sheet1!$B$3)),ROW(A1))),"")
 
Upvote 0
Solution
If there could be more different addresses you need this formula. Pull down for multiple results

=IFERROR(INDEX(Sheet2!$C$3:$C$5,AGGREGATE(15,6,ROW($1:$3)/((Sheet2!$A$3:$A$5=Sheet1!$A$3)*(Sheet2!$C$3:$C$5<>Sheet1!$B$3)),ROW(A1))),"")[/CODE]
Thank you so much, this is amazing.
 
Upvote 0
You’re welcome!?
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,680
Members
449,091
Latest member
peppernaut

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