OK, I think you probably need VBA to do that.
Right-click on the tab sheet name at the bottom of the screen, select "View Code", and paste this code in the VB Editor window that pops up:
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
Dim cell As Range
Dim r As Long
' Set entry range to look at
Set rng = Intersect(Target, Range("F:F"))
' Exit if no cells updated in watched range
If rng Is Nothing Then Exit Sub
' Check updated cell for duplicates
For Each cell In rng
' Get row of updated cell
r = cell.Row
' Check to see if value populated in column G already exists in column G
If Application.WorksheetFunction.CountIf(Range("G:G"), Range("G" & r)) > 1 Then
MsgBox "Entry in column F of row " & r & " causes a duplicate in column G", vbOKOnly, "ENTRY ERROR!"
' ***UNCOMMENT THE FOLLOWING 3 LINES IF YOU WANT TO CLEAR COLUMN F VALUE***
'Application.EnableEvents = False
'cell.Clear
'Application.EnableEvents = True
End If
Next cell
End Sub
Now, if any manual entry you make in column F causes a duplicate to occur in column G, it will give you an error message.
If you want it to also automatically remove the value from column F that you just entered that caused the duplicate value in column G, uncomment these three lines in the code by removing the single-quote mark that is at the front of each line:
VBA Code:
'Application.EnableEvents = False
'cell.Clear
'Application.EnableEvents = True