View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
str83dgeboi str83dgeboi is offline
external usenet poster
 
Posts: 4
Default Variable Or Command

I am trying to figure this out... I want to do something like

=OR(K2:K(L2) <=30) where L2 is a variable number, so it would end up being

L2 = 4 (but it is the sum of several numbers used else where)
=OR(K2:K4 <=30)
and this way it checks if
K2 <= 30
K3 <= 30
K4 <= 30

And will return True if one of these is true...

I tried =OR(INDIRECT("K"&2&":K"&$L2) <=30)
Which only checks the first one and not the others

Any ideas?