Thread: OR function
View Single Post
  #4   Report Post  
Niek Otten
 
Posts: n/a
Default

Maybe this?

=IF(ISNA(VLOOKUP(C5,N61:N83,1,FALSE)),Q60,VLOOKUP( C5,Matrix!$A$2:$AB$28,MATCH(B5,Matrix!$A$1:$AB$1,0 ),FALSE))

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"Larry" wrote in message
...
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)