MACRO Help: Confirming A Database Remains Consistent

jcl408

Board Regular
Joined
Jun 3, 2009
Messages
87
I have a spreadsheet (let's call it SS1) which pulls data via a formula from a different spreadsheet (let's call it SS2) that is issued on a fairly frequent basis and undergoes changes - sometimes rows are removed or reclassified, for example.

To ensure the data on my spreadsheet stays accurate, I want to run a macro that cross-checks the data on my spreadsheet with the sheet it is pulling it from.

What I want it to do is:

Take cells B1, C1, D1 and H1 (in SS1) - so all the same row, just different columns, and ensure it finds a corresponding 'match' in the spreadsheet it is pulling from (SS2). If it does, it leaves the data. If it doesn't, it removes the entire row.

The corresponding columns are as follows:

B (SS1) corresponds to U (SS2)
C (SS1) corresponds to C (SS2)
D (SS1) corresponds to E (SS2)
H (SS1) corresponds to T (SS2)

Is this possible? If so, how would I go about implementing this?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

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