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 Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Choice and effect



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2003, 05:46 PM
Gerry Kuta
external usenet poster
 
Posts: n/a
Default Choice and effect

From within A1 which contains the text Area 1;Area 2;Area
3; Area 4 I'd like C1 to display Area 1 if in B1 I enter
1. (Area 2 on entry of 2 in B1 etc.)

From a response to a post a few weeks ago, I am trying to
modify:
=IF(B1="","",MID(SUBSTITUTE(A1,";",""),CHOOSE
B1,1,3,5,7,9),2)) to include the text which resides in A1.

I can get more than 5 entries to appear in C1 by adding to
the list after CHOOSE but cannot get more than the 2
letters that the formula calls for (from the OP/response)
to appear properly in C1.

Any help is appreciated.

Gerry

  #2  
Old September 16th, 2003, 06:36 PM
J.E. McGimpsey
external usenet poster
 
Posts: n/a
Default Choice and effect

One way:

=MID(LEFT(A1,FIND("$",SUBSTITUTE(A1&";",";","$",B1 ))-1),
IF(B1=1,1,FIND("$",SUBSTITUTE(A1,";","$",B1-1))+1),255)

In article ,
"Gerry Kuta" wrote:

From within A1 which contains the text Area 1;Area 2;Area
3; Area 4 I'd like C1 to display Area 1 if in B1 I enter
1. (Area 2 on entry of 2 in B1 etc.)

From a response to a post a few weeks ago, I am trying to
modify:
=IF(B1="","",MID(SUBSTITUTE(A1,";",""),CHOOSE
B1,1,3,5,7,9),2)) to include the text which resides in A1.

I can get more than 5 entries to appear in C1 by adding to
the list after CHOOSE but cannot get more than the 2
letters that the formula calls for (from the OP/response)
to appear properly in C1.

Any help is appreciated.

Gerry

 




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 12:24 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.