Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
hello
I have this formula =IF(L43=0,0,IF(L43=1,1,IF(OR(L43=7,L43=8),8,IF(L43 =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. Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try the following:
=if(l43=7,8,if(l43=9,13,l43)) Regards, Fred. "MAX" wrote in message ... hello I have this formula =IF(L43=0,0,IF(L43=1,1,IF(OR(L43=7,L43=8),8,IF(L43 =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. Thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Max
IMHO Nested If's are restricted to 7 maximum Creat a list and vlookup the values =VLOOKUP(L43,F5:G13,2,FALSE) Columns F G 0 0 1 1 2 2 5 5 6 6 7 8 7.5 7.5 8 8 9 13 Best Regards Rajesh Mehmi "MAX" wrote in message ... hello I have this formula =IF(L43=0,0,IF(L43=1,1,IF(OR(L43=7,L43=8),8,IF(L43 =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. Thanks in advance. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|