If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Index of a Fixed List (Visio 2007)
I have a fixed list, Prop.Sex, with format "M;F". I want to change the value
of another cell based on Prop.Sex. I type in "=IF(Prop.Sex="F",2,4)" and I get 2 regardless of the value of Prop.Sex. I've tried "=IF(Prop.Sex=INDEX(1,Prop.Sex.Format),2,4)" and get the same result. What am I doing wrong? TIA Mike |
#2
|
|||
|
|||
Index of a Fixed List (Visio 2007)
Hello Mike,
If you're testing for string equality then you need to use the strsame function. Have a go with this instead: =IF(STRSAME(Prop.Sex,"F"),2,4) Hope that helps. Best regards John John Goldsmith (Visio MVP) www.visualSignals.typepad.co.uk www.visualSignals.co.uk "MikeM" wrote in message ... I have a fixed list, Prop.Sex, with format "M;F". I want to change the value of another cell based on Prop.Sex. I type in "=IF(Prop.Sex="F",2,4)" and I get 2 regardless of the value of Prop.Sex. I've tried "=IF(Prop.Sex=INDEX(1,Prop.Sex.Format),2,4)" and get the same result. What am I doing wrong? TIA Mike |
#3
|
|||
|
|||
Index of a Fixed List (Visio 2007)
John,
Muchissimas gracias! Mike "John Goldsmith (Visio MVP)" wrote: Hello Mike, If you're testing for string equality then you need to use the strsame function. Have a go with this instead: =IF(STRSAME(Prop.Sex,"F"),2,4) Hope that helps. Best regards John John Goldsmith (Visio MVP) www.visualSignals.typepad.co.uk www.visualSignals.co.uk "MikeM" wrote in message ... I have a fixed list, Prop.Sex, with format "M;F". I want to change the value of another cell based on Prop.Sex. I type in "=IF(Prop.Sex="F",2,4)" and I get 2 regardless of the value of Prop.Sex. I've tried "=IF(Prop.Sex=INDEX(1,Prop.Sex.Format),2,4)" and get the same result. What am I doing wrong? TIA Mike |
Thread Tools | |
Display Modes | |
|
|