PC Review


Reply
Thread Tools Rate Thread

Combo Box Anomaly

 
 
Garyw
Guest
Posts: n/a
 
      23rd Jun 2008
I've added a combo box to a worksheet with the Input range from
another worksheet Example: GeneralLookups!$B$4:$B$13
Contained in the cells B4:B13 are values 200,300,400/500, etc.
When I select one of the values in the Combo Box it returns line
numbers 1 through 5 instead of the value in the cell.
It seems that it would have to go out of it's way to come up with this.
What's causing this?

Garyw
 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      23rd Jun 2008
That's the way Forms combo boxes work. The result placed in the CellLink
cell is the 1-based index into the list of data values. Thus, if you select
the 3rd item in the combo box, the result is 3, regardless of what the data
values might be. You can use the OFFSET function into the data list to get
the actual value. For example, if a combo box has a CellLink to cell D5 and
pulls its data from the range starting in B11,

=OFFSET($B$11,D5-1,0,1,1)

returns the item selected in the combo box.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Garyw" <(E-Mail Removed)> wrote in message
news:06BBA190-3F40-4B47-8F43-(E-Mail Removed)...
> I've added a combo box to a worksheet with the Input range from
> another worksheet Example: GeneralLookups!$B$4:$B$13
> Contained in the cells B4:B13 are values 200,300,400/500, etc.
> When I select one of the values in the Combo Box it returns line
> numbers 1 through 5 instead of the value in the cell.
> It seems that it would have to go out of it's way to come up with this.
> What's causing this?
>
> Garyw


 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Jun 2008
Just to add to Chip's response.

If you used the combobox from the Control Toolbox toolbar, then you'll get the
value of the selected item--not the index number.

The dropdowns from the Forms toolbar will give you that index number in the
linked cell.

Garyw wrote:
>
> I've added a combo box to a worksheet with the Input range from
> another worksheet Example: GeneralLookups!$B$4:$B$13
> Contained in the cells B4:B13 are values 200,300,400/500, etc.
> When I select one of the values in the Combo Box it returns line
> numbers 1 through 5 instead of the value in the cell.
> It seems that it would have to go out of it's way to come up with this.
> What's causing this?
>
> Garyw


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SP 3 anomaly #2 ManyBeers Windows XP General 6 2nd Aug 2008 09:19 PM
LAN anomaly? Jethro Windows XP Networking 5 14th Dec 2006 12:00 AM
Another SP2 anomaly Rodney Kelp Windows XP Help 5 27th Dec 2004 10:33 PM
Anomaly in IE6 Rick Chancey Windows XP Internet Explorer 1 1st Aug 2004 03:49 AM
wmv anomaly (2nd try) =?Utf-8?B?cmVkaGFtaWx0b24=?= Microsoft Powerpoint 1 10th Dec 2003 01:16 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:43 PM.