« Linuxworld | Main | Useful OpenOffice Calc Formulas and Related Tricks »

July 16, 2007

Dropdown lists in OpenOffice.org Calc

Dropdown lists are a mainstay of many spreadsheets and forms. They help you control what people can enter, as well as giving them ideas for what types of things they might say.

Ddl

You can make dropdown lists in a couple ways, at least, in OpenOffice.org. The simplest way is to use the tools accessed under Data > Validity. The lists are easy to make, plus you can easily use the values in formulas. In the following illustration, the value in B2, selected from a dropdown list, is referenceable in another cell.

Ddl2

Another way you can use the values in the dropdown list (among many) is to concatenate them. Click the following illustration to see it larger. The formula

=CONCATENATE(B2;" is an excellent source of information.")

sucks in the text in the dropdown list in B2.

Ddl3

So how do you make this list? I'll tell you.

1. Click in the cell where you want the list.

2. Choose Data > Validity.

3. In the list at the top, choose List as the type of information.

List1

4. Select the various options you want.

List2

- Allow blank cells: just what it sounds like. This means you don't have to select a value from the list, but if you type even one blank space, you can get the error message. More on that later.
- Show selection list: you definitely want this. What's the point of a list if you don't see it? Plus, then it's hard to figure out which cell has the list, to go back and modify it. (To modify an existing list, just select it and choose Data > Validity again.)
- Sort entries ascending: alphabetical order sorting. If you don't mark this, the items appear in the order you entered them.

5. Type the items you want in the list. Just press Enter to get to each new line.

List3

6. Click OK. You'll see the list. Select something from the list. However, note that you can still type something that's not in the list, in addition to selecting something in the list.
List4

7. If you want to require that people only enter something from the list, you need to do one more step. (You didn't have to click OK at that point; I just had you do that to show you the effect of not setting an error alert.) Select the cell where the dropdown list is and choose Data > Validity again.

8. Select the Error Alert tab.

9. You need to select the Show Error Message checkbox, select an error type (Stop is what you want to enforce selection of an item from the list), and optionally type the error title and error content.

List5

10. Now click OK again.

11. Now when you try to type something different in the list, you get the error message you created.

List6


Traininglogo




TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8341cdb1753ef00e009920abd8833

Listed below are links to weblogs that reference Dropdown lists in OpenOffice.org Calc:

Comments

Thanks! This was just what I needed. The steps are very easy to follow and understand. Thanks for taking the time to write this tutorial on Open Office and drop down lists.

Hi,

Do you now how to make the drop down list depend on another one?

As if I have a drop down list: fruits,veggies, dairy

And for each of those options I have, for example for fruits: oranges, bananas, tangerines..

Thanks

Hi an1ta,

I'm afraid this feature doesn't have couhat capability. You use a dropdownlist for the first one, then perhaps use the IF function if you have some logic that you can display directly.

Or..

On another sheet type up your list.
Data -> Define Range, and name the range something easy to remember.
Then on your first sheet, highlight the column you want to use the list lookup.
Data -> Validity, set Allow to Cell Range, for Value set it to the name of the Range you created earlier.

i need to ADD the single elements contained in a single cell, placing the outcome in
another cell.

i have named from a to z, 26 cells. Each cell contains a number from 1 through 26.

Then in a column (column a named "Words") i have input words (eg "word", without the quote marks) composed of various letters established in the 26 cells named above.

The objective is to aggregate the numbers associated with the specified letters composing a given word (eg "word") that is located in a cell.

My question is how does one create a formula that captures the number of letters in the cell containing the word, then interpolating a plus sign ("+") between each letter in the word, then dropping the sum in the formulating cell.

regards

Thanks for this, it was exactly the information I needed.

Big help ^^ Thankies!

Just a quick note to say thanks :)

Sir,
Can I create a drop down list with list item in any language (preferable malayalam) in open office calc?

Hi Satheeshr,

Absolutely, just type it in whatever language you want, or else reference a range of cells typed as you like.

Can we add dropdown in several fields or in one or two only?if i want to add more?

I've been having an issue with the drop down lists-- anything with more than 15 or 16 entries, after it's been saved, the entries seem to disappear. Is there a limit on the amount of items in a drop down list? I need to be able to do about 40 or so...

thanks, i didnt even need to read the whole thing... you pointed me exactly where i need to go. thanks!!

Thank you very much for this tutorial. I was stumped.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment