R
Randy Numbers
Greetings!
I would like to define a user-function that takes a range (or Yes/No values)
as input, and returns a 1 if any of the values is yes.
I'm something like thinking...
FUNCTION YorN (choices)
yorn=0
counter=1 to length(choices)
yorn=yorn.OR.index(choices(counter)="YES")
Next counter
End Function
I know the syntax is wrong -- can someone help me out? Thanks.../Randy
I would like to define a user-function that takes a range (or Yes/No values)
as input, and returns a 1 if any of the values is yes.
I'm something like thinking...
FUNCTION YorN (choices)
yorn=0
counter=1 to length(choices)
yorn=yorn.OR.index(choices(counter)="YES")
Next counter
End Function
I know the syntax is wrong -- can someone help me out? Thanks.../Randy