StartingOut
Board Regular
- Joined
- Feb 1, 2011
- Messages
- 92
Hi, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I have a worksheet with several columns and 500 rows, I need a VBA script or formula that will check one of 3 conditions<o></o>
<o></o>
the cells are B3 H3 N3 the key cell is N3<o></o>
<o></o>
1- if N3 contains the word ball then check the conditions of B3 and H3 and proceed to set 2 and 3. if not, then do nothing<o></o>
<o></o>
2- If N3 contains the word "ball" and B3 contains "P1" and H3 is "=<2:00:00" then set H3 cell fill color to green; but if H3 is >2:00:00 set H3 fill color to Red<o></o>
<o></o>
3- If N3 contains the word "ball" and B3 contains "P2" and H3 is "=<6:00:00" then set H3 cell fill color to green; but if H3 is >6:00:00 set H3 fill color to Red
I have a worksheet with several columns and 500 rows, I need a VBA script or formula that will check one of 3 conditions<o></o>
<o></o>
the cells are B3 H3 N3 the key cell is N3<o></o>
<o></o>
1- if N3 contains the word ball then check the conditions of B3 and H3 and proceed to set 2 and 3. if not, then do nothing<o></o>
<o></o>
2- If N3 contains the word "ball" and B3 contains "P1" and H3 is "=<2:00:00" then set H3 cell fill color to green; but if H3 is >2:00:00 set H3 fill color to Red<o></o>
<o></o>
3- If N3 contains the word "ball" and B3 contains "P2" and H3 is "=<6:00:00" then set H3 cell fill color to green; but if H3 is >6:00:00 set H3 fill color to Red