Checking staff_name between 2 excel speadsheets

philky001

Board Regular
Joined
Jun 8, 2005
Messages
129
I have a spreadsheet with columns: Interested in staff_name and current role columns. Staff Name is one col. lastname,firstname(no space) and I am interested in the current roles
that have 'NULL' as their value. I have a second excel
Staff_nameJob_titleGroup_nameWorker_role IICommentsCurrent role Extra roles currently
Smith,John NULL

Second excel: the staff_name here does have a space between the last name and first name, like Smith, John. The objective is to match the names of the staff and verify that if the Current role has NULL then is_all_worker_roles have a '1'
staff_nameis_all_worker_roles
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You'll have to modify the ranges to suit your needs, but this formula will return the following:
  • "Staff_Name Not Found" if the formula returns an error
  • "NULL" if the Current role is blank
  • Current Role if staff_name is found and current role is filled in

Excel Formula:
=IFS(ISERROR(VLOOKUP(TRIM(SUBSTITUTE(A4,",",", ")),Sheet2!$A$2:$F$4,6,0)),"Staff_Name Not Found",VLOOKUP(TRIM(SUBSTITUTE(A4,",",", ")),Sheet2!$A$2:$F$4,6,0)=0,"NULL","TRUE",VLOOKUP(TRIM(SUBSTITUTE(A4,",",", ")),Sheet2!$A$2:$F$4,6,0))
 
Upvote 0

Forum statistics

Threads
1,215,790
Messages
6,126,917
Members
449,348
Latest member
Rdeane

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