Checking list in 3 sheets

alvbnp

Board Regular
Joined
Jun 26, 2006
Messages
180
I have 3 sheet, named master sheet, sheet1 and sheet2.

My master sheet contain a full list. sheet1 contain part of the list from master sheet, same as sheet2. I want to make sure list in sheet1 and sheet2 is complete, which it include everything in the master sheet and nothing is mising. How can I do this?

Assume it's column C is all 3 sheets.

Thanks.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
the idea is to create a macro that will search every records of master sheet from Sheet1 & 2, from there you can identify which records does not exists.
 
Upvote 0
Macro is fine for me, as long as I get the result. Will you be able to provide the macro doing this? Thanks.
 
Upvote 0
based on your input, no. please provide more info ( ie; ranges,column) if possible use html maker to post few samples.
 
Upvote 0
MasterSheet : column C
a1
a2
a3
b1
b2
b3

Sheet1 : column C
a1
b1

Sheet2 : column B
b2
b3

from the above sample, a2 & a3 is missing, the macro should prompt me about this missing items.

Thanks.
 
Upvote 0
untested. this code will put missing in columnD of Master sheet.
Code:
Sub test()
Dim i As Long
With Sheets("Master")
    For i = 1 To .Range("c" & Rows.Count).End(xlUp).Row
        With Sheets("Sheet1").Columns("c")
            Set c = .Find(Sheets("Master").Cells(i, "c").Value, , , xlWhole)
                If c Is Nothing Then
                    With Sheets("Sheet2").Columns("c")
                        Set c = .Find(Sheets("Master").Cells(i, "c").Value, , , xlWhole)
                            If c Is Nothing Then
                                Sheets("Master").Cells(i, "d").Value = "Missing"
                            End If
                    End With
                End If
        End With
    Next
End With
End Sub
 
Upvote 0
How can I change this part to look for the cell value:

Code:
With Sheets("Sheet1").Columns("c")

The column is a formula.
 
Upvote 0
try changing
[code
With Sheets("Sheet1").Columns("c")
Set c = .Find(Sheets("Master").Cells(i, "c").Value,,,xlwhole)
[/code]
to
Code:
With Sheets("Sheet1").Columns("c")
            Set c = .Find(Sheets("Master").Cells(i, "c").Value, LookIn:=xlValues)
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

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