Olá, Geneci.
Experimente uma cópia do código abaixo no módulo da planilha.
Código: Selecionar todosPrivate Sub Worksheet_Change(ByVal Target As Range)
Dim n As Range
If Target.Count > 1 Then Exit Sub
If Target.Address <> "$M$1" Or Target.Value = "" Then Exit Sub
Set n = [A7:J10].Find([M1], lookat:=xlWhole)
If Not n Is Nothing Then
n.Value = "": [P4] = Application.CountA([A7:J10])
Else: MsgBox "VALOR NÃO ENCONTRADO"
End If
On Error Resume Next
Set n = [A7:J10].Find([M1], lookat:=xlPart)
End Sub
Osvaldo
Quatro coisas que odeio: preguiçosos, políticos, Google planilhas e Outlook

Anexe arquivos diretamente no fórum:
+ Resposta / Adicionar um anexo / Selecione o arquivo
CÉLULAS MESCLADAS PODEM AFETAR FÓRMULAS E MACROS.