changing the returned value from xlookup

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
What I want to do, if the employee name is in the list of the training then excel will put Yes, if not, then excel will enter "----". I managed to do the Yes part but not "----". Thanks you very much

Book3
ABCDEFGHIJ
1
2Employee IDEmployee NameAttended or not?List of Employee attended the training
3769Mary1#N/AName
4985David1#N/AAnna1
5954Sarah1#N/ALi1
6163Alex1#N/AJim1
7588Anna1yesLiz1
8481Sam1yesSam1
9631Jack1#N/AAnna2
10162Eric1#N/ALi2
11566Jim1yesJim2
12862Dan1#N/ALiz2
13630Andy1#N/ASam2
141000Li1yesAnna3
15637Liz1yesLi3
Sheet1 (2)
Cell Formulas
RangeFormula
C3:C15C3=IF(XLOOKUP(B3,$G$4:$G$24,$G$4:$G$24)="#N/A","---","yes")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Don't have XLOOKUP, but what about
Excel Formula:
=IF(ISNUMBER(MATCH(B3,$G$4:$G$24,0)),"YES","---")
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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