Yes it's possible :) You have 3 way:
1. Loop (example For)
Function FindPair(ByRef CellA As Range, ByRef CellB As Range) As Variant ' <- Change Variant for specific Type of data
'Set default value if not found match
Set FindPair = Nothing
Dim sheetToSearch As Worksheet
Dim lastRow As Long
'Check input
If CellA Is Nothing Or CellB Is Nothing Then
Call MsgBox("Something is wrong!", vbExclamation)
Exit Function
Exit Function
'For easy ro read
Set sheetToSearch = Sheets("Search")
lastRow = (sheetToSearch.UsedRange.Cells(1, 1).Row + sheetToSearch.UsedRange.Rows.Count) 'First row of UsedRange + rows count
'Look up
For r = 0 To lastRow
'Change column here, if you need
If sheetToSearch.Range("A" + r).Value = CellA.Value Then
If sheetToSearch.Range("B" + r).Value = CellB.Value Then
'Return data
FindPair = sheetToSearch.Range("A" + r).Value
Exit For
End If
End If
Next r
'You can compare *.Value = *.Value - for compare binary data
'or *.Text = *.Text - for compare value like as text with formatting
End Function
2. Find
Application.WorksheetFunction.Find()
Please look for documentation how it works: VBA Find
3. Vlookup
Application.WorksheetFunction.VLookup()
Please look for documentation how it works: Excel VLookup