» Add Combo Box to a Sheet in Microsoft Excel
What are the Advantages of working with Combo Box?
Choosing an item from a list in the Combo Box returns a number. The number then replaces the use of the Match formula to calculate the column number in the Vlookup formula (read tip) and replaces the use of the Match formula (read tip) to calculate the column number in the Index formula.
Working with the Combo Box
A list of the cell ranges in the sheet is attached to the Combo Box. After an item is selected from the list, the Combo Box enters into the linked cell the ordinal number of the item that is selected on the list.
Example:
The screen shot displays a profit and loss statement as compared to the previous year. Changing the month in the Combo Box will automatically change the display of data according to the selected month.
Step 1: Define names
1.Enter the months list - January-December into the cells A1 to A12 in the new worksheet.
2.Select cells A!:A12, press Ctrl+F3, enter the text MonthsList into the Names In workbook box, and click OK.
3.Select Cell B1, press Ctrl+F3, enter the text MonthNumber
into the Names in Workbook box, and click OK.
Step 2: Add a Combo Box to a worksheet
1. Select one of the toolbars, right-click, and select the Forms toolbar.
2. Copy the Combo Box by clicking the Combo Box icon, and then release the mouse. Create a rectangle with the mouse in the worksheet, and then release the mouse.
Step 3: Format the Combo Box
1.Select the Combo Box; right-click; and from the shortcut menu that appears, select Format Control. Then select the Control tab
2.In the Input range box, type the name MonthsList (You cannot press F3 to paste a name with an object).
3.In the Cell link box, type the name MonthNumber.
4.Click to select the 3-D shading box (more aesthetic).
5.Click OK.
Exit the formatting mode of Combo Box, and select a cell in the sheet.
Open the list of items in the Combo Box, and select a month. Note that
the new month number is shown in cell B1.
Advantages of working with names in a Combo Box
Attaching a list with Define Names causes your list references to
be updated automatically in the Combo Box. Sorting the list in the sheet
will automatically sort the list in Combo Box as well.
Deleting a Combo Box
Select the object; right-click; and from the shortcut menu that appears,
select Cut.
Adjusting the size of the Combo Box to the cells
Select the Combo Box and right-click; the Combo Box is now in editing mode. Adjust the width or height of the Combo Box by dragging one of the corner boxes; adjust the placement of the Combo Box on the worksheet by clicking anywhere inside the box and dragging it.
Automatic adjustment of the Combo Box
Hold down the Alt key while you click the mouse to adjust the size of the Combo Box.
Book Store:
Recommended Books:
- How to Use Financial Statements: A Guide to Understanding the Numbers
- Dictionary of Finance and Investment Terms
- The South Beach Diet: The Delicious, Doctor-Designed, Foolproof Plan for Fast and Healthy Weight Loss
- The Guide to Understanding Financial Statements
- AWAKEN THE GIANT WITHIN : HOW TO TAKE IMMEDIATE CONTROL OF YOUR MENTAL, EMOTIONAL, PHYSICAL AND FINANCIAL
- What the IRS Doesn't Want You to Know: A Cpa Reveals the Tricks of the Trade
regards
You can't change the font size.
To Ali:
see screen shot 2
If you used the combo box from the 'Control Toolbox', there isn't a 'Control Tab'.
Right click on the combo box and select 'Properties', then look for the LinkedCell and ListFillRange fields which should be the equivalent to what is on the 'Control' tab.
Thanks again!
thanks
Best Regards !!
eg. if my combo box includes Jan.Feb.Mar, and once I select Jan, the report for Jan is to be displayed on the same sheet, how do I do it. HELP please, i'm confused.
Here's something to visualize the problem:
Think of an order form. I got 100 orders in the list. And I got a column which I want to put a combo box with selections "paid" or "not paid" . Well, I put my first combo box in my first order. But when I copy that cell down for the remaining 99 orders, all the combo boxes that I created (for the other 99 orders) all are linked to the FIRST order's combo box's cell reference. However I want that cell's reference to be relative so that when I copy the cell(and the combo box as well, as that cell contains containing the combo box) their cell link is changed. I need this cos I may have 10000 orders for example and modifying all the cell refeences of all those orders's combo boxes may be annoying.
JR from LA 's solution is not working (on the subject cell link - absolute to relative reference)
Any help is welcomed. Thanks in advance.
to use Combo Box just for the purpose of selecting one option from two?
add list with two items to Validation "paid" and "unpaid" and add a simple if formula that will return 1 or 2, the real purpose of using Combo Box is to change hundreds of formulas calculation results by choosing one of the item from list.
Excel CANNOT do that!
In Excel, you CANNOT use relative cell references for ANY form & control toolbox managed item, such as ComboBox or Check Box. Poor Microsoft.
Jim from UK may be right, critisizing our basic usage of Combo Box. But what I want is something anyone can want at any time. Hmm... Let's see another very practical use of Combo box where we may desperately need relative references:
Consider the following situation:
(Jim read this! This is a good purpose to use spinners)
Think of a warehouse record sheet. You need:
1) Entrance date of a good
2) Departure date of the good.
Each requiring entering dates. We know how annoying it is to enter dates manually in excel. So, to solve that, I use a SPINNER. I format the cell as a date and put a spinner linked to it. Here, somethi,ng is extremely important : If u put the spinner from the "Forms", the maximum increment of the spinner is 30000. Considering the date format of excel starting from 01/01/1900 (stupid!!!) 30000 days later is some time in 1981. So spinner cannot come to 2003, failing my idea.
Instead, try putting it from Control Toolbox. There, from properties, you may select 100000 to maximum value of the spinner and initial value to 37750 (to start initially from 2003 - You may not want to scroll down all 1900's to come to 2003 :-)) So, I managed to put a very useful spinner to solve the terrible problem of entering dates in excel.
But here comes the problem :
Somebody may have thousands of goods to manage in a warehouse, each using my very way of date inputting. However, When you copy the cell of the first good (containing the spinner) to the remaining (lets say) 100 goods, all the copied spinners will change THE FIRST GOOD's date. What an idiot!
So, under such a circumstance, relative reference could have been a lifesavior. But where is Microsoft ? Still asking "where do you want to go today?" I'm not going anywhere! But you cannot even serve me here staying. Grrr...!
Anyways, there is always a solution for intelligence. Here's how you can approach the problem:
(again mentioning to the warehouse case)
Use the excel sheet to manage just your "monthly" entrance-departures. That will cut the number of items to a considerable amount, which will hopefully prevent you from boooming up while changing the cell link's of the copied Combo Boxes/Spinners.
Use the copy of the same sheet for all your monthly works.
Though, as you may have noticed, that's a short term solution. For medium&long term I suggest you learn programming :-) or wait for Microsoft's new office packets.
Will be here later on to read what you think,
See ya.
Data validation does what we want to do.
Check Data->Validation and choose list there.
Special thanks to jim from UK.
Thanks!
» Combo Box border
JJ from IL wrote on June 21, 2003 9:39 PM EST
how can I get rid of the border of the comboxbox when I click on an item. i would like for it to look like a regular text without anything around it.
The usual combo box is just an add-on layer to a spreedsheet but not integrated into a cell.
Help!
Put the combo into edit mode using the Control Toolbox.
Select the conbo and right-click to display Properties.
Change the BorderStyle property.
Right-click it and click Format Control.
Select the Properties tab.
Select the 'Move and Size with cells' option.
Could someone help me to link to a worksheet when the list from the combo box is clicked? Thanks a bunch :) !
lt
I am using an external query to return the list of options available in the combo box - and this data is not saved with the file (ie it refreshes on open, as it changes from day to day) - when the file opens, there is no list present in the combo box, and it does not refresh once the data list is present.
Has anyone else had this problem?
Thanks
Richard
Any help would be great.
R
Basicly you have
Colors
Black
Blue
Green.
They selevet blue, Then when they are finished, they just hit a button to Select color again.
See I have about 15 Combo Boxs Created, so its hard for them to go back and select the Original Settings. Well I know that they can just close the File and open the Original, but They sometimes Save over the top of that one, so I have to constitenty send them the Original.
So this is why I'd like to create a reset Combo-Boxes Button.
I have tried recording macro's, and it does not work with, Control Tool Box, or Forms.
Anyone have any Sugestions?


