Vlookup best to check and lookup a pair of cells?

dellfo

New Member
Joined
Feb 22, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

I would like to do a check on an employee and their line manager and check the employee and line manager are the same or are different from a previous month, however my excel command is flawed.

I would like it to check a pair of cells are the same as another pair of cells.
My current formula is
=IF(AND($C2=$A2, D2=B2), "Match", "False")

would a pivot table help?




note to self:
if the feb employee name = january employee name, lookup the january employee manager against the feb employee manager, if true "true" else "false"
pivot table
 

Attachments

  • ExcelSheet.jpg
    ExcelSheet.jpg
    99.8 KB · Views: 6

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(XLOOKUP(C2,$A$2:$A$100,$B$2:$B$100)=D2,"Match")
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(XLOOKUP(C2,$A$2:$A$100,$B$2:$B$100)=D2,"Match")
Many thanks.
Seems to be working .... i'll check with a couple more sheets
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,157
Members
453,021
Latest member
Justyna P

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