A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I see where you're going with that but it's not quite what I need.
I have to manually put the x's in when I've ordered parts. I want the x's to automatically delete once H is higher than J.
Hi,
You need vb code for that. Right click the worksheet tab where you want this, view code and paste the code in on the right.
The code will execute for any change on the worksheet but that should not give a problem
Private Sub Worksheet_Change(ByVal Target As Range)
Dim LastRow As Long, c As Range
LastRow = Cells(Rows.Count, "H").End(xlUp).Row
Application.EnableEvents = False
For Each c In Range("H2:H" & LastRow)
If c.Value > c.Offset(, 2) Then
c.Offset(, -1).ClearContents
End If
Next
Application.EnableEvents = True
End Sub