Hi, Tesnobay
Thank you for using Microsoft products and posting them to the community.
I'm not sure I understand what you're saying, but my understanding is that if there is no data in column E, the row is hidden. If there is data, it is displayed.
I am using VBA to solve the problem with the code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim cell As Range
If Not Intersect(Target, Me.Columns("E")) Is Nothing Then
For Each cell In Intersect(Target, Me.Columns("E"))
If cell.Value <> "" Then
Me.Rows(cell.Row).Hidden = False
Else
Me.Rows(cell.Row).Hidden = True
End If
Next cell
End If
End Sub
Open the VBA editor via Option+F11, find your workbook in the Project Explorer on the left, it should be Sales Date, and paste the above code.
Close the VBA editor and return to Excel.
What this code does is that when a cell in column E changes, it displays the corresponding row if the cell is not empty, or hides the row if it is empty.
If you want to redisplay, for example, row 6 is hidden, you can select rows 5,7 and then right click and choose not to hide and row 6 will be redisplayed.
I hope the above information can help you. Feel free to send a message if you need further help.
Best wishes
Aiden.C - MSFT |Microsoft Community Support Specialist