Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Without VBA:
=IF(G36P36,1,0) with VBA: Sub demo() Set p36 = Range("P36") Set g36 = Range("G36") If p36.Value g36.Value Then ActiveCell.Value = 1 End If End Sub -- Gary''s Student - gsnu201003 "PRECISION SAILOR" wrote: I would like to use an IF statement to program events on an EXCEL spread sheet. For example, "IF G136 P32 THEN +1.0". Can this be done??? THANKS! RAFAEL DE ECHEANDIA, HAMPTON, VA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
embedding "ISERROR" function into an "IF" statement | Excel Worksheet Functions | |||
Call a sub statement in "Personal Macro Workbook" from "ThisWorkbo | Excel Programming | |||
vba: How do I write a "For Each Statement" nested in a "With Statement"? | Excel Programming | |||
vba: How do I write a "For Each Statement" nested in a "With Statement"? | Excel Programming |