A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Index of a Fixed List (Visio 2007)



 
 
Thread Tools Display Modes
  #1  
Old September 19th, 2008, 03:38 PM posted to microsoft.public.visio.general
Mikem
external usenet poster
 
Posts: 63
Default 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  
Old September 19th, 2008, 03:55 PM posted to microsoft.public.visio.general
John Goldsmith \(Visio MVP\)
external usenet poster
 
Posts: 58
Default 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  
Old September 19th, 2008, 04:14 PM posted to microsoft.public.visio.general
Mikem
external usenet poster
 
Posts: 63
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.