Forum Discussion
John_Garritano0212
Feb 03, 2023Copper Contributor
repeat cell answer from one cell to another
I am putting a formula in cell c20 and I want that answer to also appear in cell h4. Is there a formula that will allow me to do that?
4 Replies
- OliverScheurichGold Contributor
=IF(ISFORMULA(C20),C20,"")You can try this formula in cell H4.
An alternative could be this code. In the attached file you can enter a formula in cell C20 and the result is returned in cell H4 as well.
Private Sub Worksheet_Change(ByVal Target As Range) Dim rngBereich As Range Set rngBereich = Range("C20") If Target.Cells.Count > 1 Then GoTo done If Not Application.Intersect(Target, rngBereich) Is Nothing Then If Application.WorksheetFunction.IsFormula(Target) Then Target.Offset(-16, 5).Value = Target.Value Else Target.Offset(-16, 5).Value = "" End If End If done: Application.EnableEvents = True Exit Sub End Sub- John_Garritano0212Copper ContributorThank you for your response.
In H4:
=C20
or, if you want H4 to look empty while C20 is still empty:
=IF(C20="", "", C20)
- John_Garritano0212Copper Contributor