View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Harlan Grove[_2_] Harlan Grove[_2_] is offline
external usenet poster
 
Posts: 1,231
Default Add to a formula

MAX wrote...
....
=IF(L43=0,0,IF(L43=1,1,IF(OR(L43=7,L43=8),8,IF(L4 3=9,13,IF(L43=5,5,IF(L43=2,2,IF(L43=6,6,)))))))
and I want to add that when L43=7.5 it comes an output of 7.5, any help.

....

So you want the formula to return 0 when L43 doesn't equal any of the
given values?

One way,

=IF(OR(L43={0;1;2;5;6;7;7.5;8;9}),
LOOKUP(L43,{0;1;2;5;6;7;7.5;8;9},{0;1;2;5;6;8;7.5; 8;13}),0)

It's generally best to use LOOKUP functions for this sort of thing.