Thread: OR function
View Single Post
  #2   Report Post  
bj
 
Posts: n/a
Default

try
=if(match(c5,n61:n83,0)),VLOOKUP(C5,Matrix!$A$2:$A B$28,MATCH(B5,Matrix!$A$1:$AB$1,0),FALSE),Q60)

"Larry" wrote:

Is there a way to shorten or compress the "OR" portion of this formula

=IF(OR(C5=N61,C5=N62,C5=N63,C5=N64,C5=N65,C5=N66,C 5=N67,C5=N68,C5=N69,C5=N70,C5=N71,C5=N72,C5=N73,C5 =N74,C5=N75,C5=N76,C5=N77,C5=N78,C5=N79,C5=N80,C5= N81,C5=N82,C5=N83),VLOOKUP(C5,Matrix!$A$2:$AB$28,M ATCH(B5,Matrix!$A$1:$AB$1,0),FALSE),Q60)