Hi! I’m trying to find a simple solution for my Excel VBA script. Sorry for my bad English in advance..
There is an excerpt from my code.
Sub TEST()
Range("E2").Value = Application.WorksheetFunction.CountIfs(Range("G4:G1000"), 100, Range("J4:J1000"), ">0")
End Sub
It puts (in E2 cell) an exact number of cells which have values based on two COUNTIFS criterion. As you see it counts all cells in G column with 100, but only that which also have >0 value in J column.
What next code string should I add to my script to HIGHLIGHT (for example, in RED) those cells in J column, that have <=0 values (of course considering G column with 100 criteria at the same time)?
I already have found some codes for cell’s highlighting, but they are quite complex to me and I don’t know how to integrate it to my script.
Can someone help me, please?

There is an excerpt from my code.
Sub TEST()
Range("E2").Value = Application.WorksheetFunction.CountIfs(Range("G4:G1000"), 100, Range("J4:J1000"), ">0")
End Sub
It puts (in E2 cell) an exact number of cells which have values based on two COUNTIFS criterion. As you see it counts all cells in G column with 100, but only that which also have >0 value in J column.
What next code string should I add to my script to HIGHLIGHT (for example, in RED) those cells in J column, that have <=0 values (of course considering G column with 100 criteria at the same time)?
I already have found some codes for cell’s highlighting, but they are quite complex to me and I don’t know how to integrate it to my script.
Can someone help me, please?
