change all cells value based on if a any cell contains a value

Sharksfan

New Member
Joined
Nov 3, 2017
Messages
22
I have a problem which I don't know how to solve.. I have a list of part numbers and the location type in which these parts or stored on a warehouse. For example:
PART NO. LOCATION TYPE
S1039 H1
S1039 H2
S1039 H4
S1100 H1
S1100 H4
I would like to change the location type foe all the same part numbers to the same location type if the location type exists. For example, If "H2" exists, then change all the location types for "S1039" to "H2" since the "S1100" does not have a location type "H2", no changes would be made. Output would look like this. Of course this is simplified as my spreadsheet has almost 2000 lines.
S1039 H2
S1039 H2
S1039 H2
S1100 H1
S1100 H4

Thank you
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,214,606
Messages
6,120,479
Members
448,967
Latest member
visheshkotha

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