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

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,215,528
Messages
6,125,342
Members
449,218
Latest member
Excel Master

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