Macro to check if A#:F# on Sheet1 exists in another sheet, if not add to sheet

EricL89

New Member
Joined
May 29, 2014
Messages
34
Going to try to make this as brief and simple as possible.

My workbook has 3 worksheets, each sheet's data starts at A4, columns are A:F.

I'm trying to make my macro read Sheet1!A4:F4 as a single value, then check if it exists in either Sheet2 or Sheet3 (also A:F, not in a single cell). Essentially, I'm trying to get this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]Timmy[/TD]
[TD]Thomas[/TD]
[TD]Client[/TD]
[TD]Single[/TD]
[TD]Phone[/TD]
[TD]831-555-4321[/TD]
[/TR]
</tbody>[/TABLE]

To read the value of A:F as a single value, something like: "Timmy Thomas Client Single Phone 831-555-4321".

If it's not on either sheet, copy A4:F4 then paste it in the next available row on Sheet2. If Sheet1!A4:F4 is found in either Sheet2 or Sheet3, go to Sheet1!A5:F5, and so on until the last row of the data in Sheet1. The last row on each sheet will always be different, not at a predetermined row.

I'm sure this could be accomplished without macros, but this is one part of a larger macro. I appreciate any help you can offer! Thanks!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,723
Messages
6,174,115
Members
452,545
Latest member
boybenqn

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