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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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
Thank you so much, this is amazing.
So, that's the reason I switched the marked solution with that post in this question.

@p3gladiator, please mark the solution post in the future instead of your last post (unless you post your own solution) to help future readers. Thanks.
 
Upvote 0

Forum statistics

Threads
1,215,504
Messages
6,125,185
Members
449,213
Latest member
Kirbito

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