Formula to match data

RattlingCarp3048

Board Regular
Joined
Jan 12, 2022
Messages
166
Office Version
  1. 365
Platform
  1. Windows
I am trying to match data from one sheet to the next. I tried a vlookup but keep getting the #spill! error. Maybe you guys can help? Basically what i am trying to do is.... we have multiple employees with an assigned department but they cross train in other departments. I need to line their hours up in the appropriate fields. On Sheet #1 I need columns F, G, and H to search for the name in A + Packing, Produce, or register and return the value. This is a small example, there are many many more names so limiting the search to the name would not be dynamic enough. I would prefer a formula if possible rather that VBA.

In this case F2 should search for Matt + Packing and return 4.
F3 should search for John + Packing and return 17 etc...

Then G3 should search for John + Produce and return 1.

Then H4 should search for Annie + Register and return 15.


1643656821163.png
1643657337356.png
 
Glad we could help & thanks for the feedback.
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
You're welcome, thanks for the feedback, hopefully it all works out.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,520
Members
449,088
Latest member
RandomExceller01

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