Vlookup with nested if statement

colmodoc

New Member
Joined
May 20, 2009
Messages
44
Office Version
  1. 365
Platform
  1. MacOS
Hi.
I would really appreciate assistance on what I believe will be a nested Vlookup and IF statement.
I wish to compare records in two separate lists using a VLookup. However I want to identify items (using Serial#) that appear in both lists where ownership is different in both lists.
Ownership is identified by email address.
Thank you!
See example:
Screenshot 2023-01-12 at 12.27.28.png
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what are your expected results with the data you have shown?
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Also what are your expected results with the data you have shown?
Thank you, Fluff.
Office 365 for macOS.

Expected results: I would like a statement in L6 to identify that the serial number in J6 exists in column E AND if where the email address for that item is different.
So the item in the above list that I'm interested in identifying is Serial # a13 where ownership has changed from Mary to Harry.
The result can be "Change of owner".
 
Upvote 0
Thanks for that, how about
Excel Formula:
=LET(x,XLOOKUP(J6,$E$6:$E$10,$F$6:$F$10,"",0),IF(x="","Not found",IF(x=K6,"Same","Change of Owner")))
 
Upvote 0
Thanks for that, how about
Excel Formula:
=LET(x,XLOOKUP(J6,$E$6:$E$10,$F$6:$F$10,"",0),IF(x="","Not found",IF(x=K6,"Same","Change of Owner")))
Thank you Fluff.
I'm seeing the error #Name?
 
Upvote 0
L6: =IFERROR(IF(VLOOKUP(J6,$E$6:$F$10,2,0)=K6,"","Change of Owner"),"")

1673529318021.png
 
Upvote 0
Solution
Can you please answer my question?
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,279
Members
449,075
Latest member
staticfluids

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