Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I just ran across the IIf function and am trying to clarify its usage.
I would normally write: If Len(Range("A1")) 0 then Var1 = "Yes" Else Var1 = "No" End If It looks like I could write: Var1 = IIf(Len(Range("A1")) 0, "Yes" , "No") Is my logic correct? Would this be the principle use of that function, to shorten the coding required in my example? Or is this function used in some other types of cases? -- Ken Hudson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? | Excel Programming | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Excel - User Defined Function Error: This function takes no argume | Excel Programming | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions |