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

Array Substitution Based on Drop Down List



 
 
Thread Tools Display Modes
  #1  
Old December 26th, 2009, 09:08 PM posted to microsoft.public.excel.misc
Royce Edwards
external usenet poster
 
Posts: 1
Default Array Substitution Based on Drop Down List

I have created a drop down list in excel cell A1 which contains a validated
list from cells D1 through D3. The values of D1 through D3 are cat, puppy,
and parrot respectively. Cells E1 through E3 contains hidden values which I
want to substitute later. These values are feline, dog and bird respectively.

So, if the user chooses "cat" from the drop-down, I want to do something
like =CONCATENATION($A1,"http://www.petsite.org/",????????????) that will
result in the cell containing http://www.petsite.org/feline as a hyperlink.
Obviously if the user puppy or parrot the respective entry would be
substituted.

Thanks in advance, Royce
  #2  
Old December 26th, 2009, 10:13 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default Array Substitution Based on Drop Down List

Try this...

Use cell B1 as the hyperlink.

Enter this formula in B1:

=IF(A1="","",HYPERLINK("http://www.petsite.org/"&VLOOKUP(A1,D1:E3,2,0)))

--
Biff
Microsoft Excel MVP


"Royce Edwards" Royce wrote in message
...
I have created a drop down list in excel cell A1 which contains a validated
list from cells D1 through D3. The values of D1 through D3 are cat,
puppy,
and parrot respectively. Cells E1 through E3 contains hidden values which
I
want to substitute later. These values are feline, dog and bird
respectively.

So, if the user chooses "cat" from the drop-down, I want to do something
like =CONCATENATION($A1,"http://www.petsite.org/",????????????) that will
result in the cell containing
http://www.petsite.org/feline as a
hyperlink.
Obviously if the user puppy or parrot the respective entry would be
substituted.

Thanks in advance, Royce



 




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 10:52 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.