VLOOKUP VBA to only target blank cells

KGards7

New Member
Joined
Mar 31, 2022
Messages
9
Office Version
  1. 2016
Platform
  1. Windows
Hey all I have two workbooks:
1. "SAS MI Data"
2. "OIMDataRefresh_DMZ"

I want to set up a button to run 3 vlookups in the SAS MI Data workbook:

1. To be run in Column S in SAS MI Data workbook
If Column R in "SAS MI Data" matches column F in "OIMDataRefresh_DMZ" then show the contents of column F in column S BUT only for blank cells in column S (basically don't override any information already in column S)

2. To be run in column T in SAS MI Data workbook
If column R in "SAS MI Data" matches column H in "OIMDataRefresh_DMZ" then show the contents of column H in column T BUT only for blank cells in column T (basically don't override any information already in column T)

3. To be run in column U in SAS MI Data workbook
If column R in "SAS MI Data" matches column J in "OIMDataRefresh_DMZ" then show the contents of column J in column U BUT only for blank cells in column U (basically don't override any information already in column U)

Sorry if all that information is overkill, its essentially the same exact formula run 3 times for different columns for the VLOOKUP but its imperative that it only targets blank cells in columns S, T and U. Any help would be GREATLY appreciated.

Thank you so much
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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