Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim LastRw As Long, ThisRw As Long
Range("G2:G25").Formula = "=IFERROR(IF(VLOOKUP(A2,DATALIST,2,FALSE)="""","""",VLOOKUP(A2,DATALIST,2,FALSE)),"""")"
Range("H2:H25").Formula = "=IFERROR(IF(VLOOKUP(A2,DATALIST,3,FALSE)="""","""",VLOOKUP(A2,DATALIST,3,FALSE)),"""")"
Range("I2:I25").Formula = "=IFERROR(IF(VLOOKUP(A2,DATALIST,4,FALSE)="""","""",VLOOKUP(A2,DATALIST,4,FALSE)),"""")"
Range("K2:K25").Formula = "=IFERROR(IF(VLOOKUP(A2,DATALIST,5,FALSE)="""","""",VLOOKUP(A2,DATALIST,5,FALSE)),"""")"
Range("M2:M25").Formula = "=IFERROR(IF(VLOOKUP(A2,DATALIST,6,FALSE)="""","""",VLOOKUP(A2,DATALIST,6,FALSE)),"""")"
LastRw = Range("A" & Rows.Count).End(xlUp).Row
If Intersect(ActiveCell, Range("A2:N" & LastRw)) Is Nothing Then
Range("P6:N8,P10:P15,U10:U15").ClearContents
Else
ThisRw = ActiveCell.Row
Range("P6:P8").Value = Application.Transpose(Cells(ThisRw, "C").Resize(, 3).Value)
Range("P10:P13").Value = Application.Transpose(Cells(ThisRw, "F").Resize(, 4).Value)
Range("U10:U13").Value = Application.Transpose(Cells(ThisRw, "K").Resize(, 4).Value)
Range("P15").Value = Application.Transpose(Cells(ThisRw, "J").Resize(, 1).Value)
End If
End Sub