If I understand, not a formula, but VBA
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cRows As Long
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("B1")) Is Nothing Then
With Target
If .Value = "Tony" Then
cRows = Cells(Rows.Count, "L").End(xlUp).Row
If cRows < 6 Then cRows = 5
Cells(cRows + 1, "L").Value = Range("G26").Value
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
Karl said:
Hi I would like to put a name in B1(Tony) that triggers a total that i get
in G26(43)and have the total in G26 (43) come up in cell L6.Changing the
name 8 times with G26 number total for each going in L6,L7,L8 and so on.
Thanks for any help Karl