Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=IF(B20="r","-2",IF(B20="5","-1",IF(B20="=","1","")))
The "5" displays blank, all the others work... any reason why? I am trying to be get so if in B20 someone enter's r "-2" diplays; 5 "-1" diplays; = "-2" diplays; and if they enter nothing then nothing displays. thank you! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"Jason" wrote:
=IF(B20="r","-2",IF(B20="5","-1",IF(B20="=","1",""))) The "5" displays blank, all the others work Perhaps B20 contains the __number__ 5, not the __text__ "5". If so, you should write: =IF(B20="r","-2",IF(B20=5,"-1",IF(B20="=","1",""))) But I wonder if you want the __numbers__ -2, -1 and 1, not text. If so, you should write: =IF(B20="r",-2,IF(B20=5,-1,IF(B20="=",1,""))) ----- original message ----- "Jason" wrote: =IF(B20="r","-2",IF(B20="5","-1",IF(B20="=","1",""))) The "5" displays blank, all the others work... any reason why? I am trying to be get so if in B20 someone enter's r "-2" diplays; 5 "-1" diplays; = "-2" diplays; and if they enter nothing then nothing displays. thank you! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
That was it! good catch and thanks!
"Joe User" wrote: "Jason" wrote: =IF(B20="r","-2",IF(B20="5","-1",IF(B20="=","1",""))) The "5" displays blank, all the others work Perhaps B20 contains the __number__ 5, not the __text__ "5". If so, you should write: =IF(B20="r","-2",IF(B20=5,"-1",IF(B20="=","1",""))) But I wonder if you want the __numbers__ -2, -1 and 1, not text. If so, you should write: =IF(B20="r",-2,IF(B20=5,-1,IF(B20="=",1,""))) ----- original message ----- "Jason" wrote: =IF(B20="r","-2",IF(B20="5","-1",IF(B20="=","1",""))) The "5" displays blank, all the others work... any reason why? I am trying to be get so if in B20 someone enter's r "-2" diplays; 5 "-1" diplays; = "-2" diplays; and if they enter nothing then nothing displays. thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count multiple cells against multiple criteria in an Excel spreads | Excel Worksheet Functions | |||
match multiple criteria ina range from multiple criteria multiplet | Excel Worksheet Functions | |||
Index & Match functions - multiple criteria and multiple results | Excel Worksheet Functions | |||
Counting Cells with multiple criteria.One criteria supporting wild | Excel Worksheet Functions | |||
Counting Cells with multiple criteria.One criteria supporting wild | Excel Worksheet Functions |