Find the closest zip code from a list of office zip codes, to employee's home zip code

mhabert53

New Member
Joined
Jun 12, 2017
Messages
1
I have a list of employees, and a list of offices. I want to find which office location an employee is closest to, based on the employee's home zip code - so, find the closest zip code in the office list, to each employee's home zip code:

Employee NameHome Zip CodeOfficeOffice Zip Code
Employee170713Office160616
Employee270714Office260618
Employee370715Office360619
Employee470716Office460620
Employee570717Office560621
Employee670718Office660622
Employee770719
Employee870720
Employee970721
Employee1070722

<colgroup><col><col><col span="3"><col></colgroup><tbody>
</tbody>

Obviously all data is above is fake, just wanted to visually represent what I'm getting at. Is there an Excel formula or function that can help me do that, so that in the end I have a list of employees in one column, their home zips in another, and the closest office zip (and rest of office address I have), etc.?

Thanks in advance.
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,215,219
Messages
6,123,683
Members
449,116
Latest member
HypnoFant

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