Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Dropdown list = cell in OpenOffice Calc

Posted on 2010-11-17
3
Medium Priority
?
1,396 Views
Last Modified: 2012-05-10
I want to create a spreadsheet using OpenOffice Calc where each line is like a row in a database.
Each cell should be designed as a dropdown/pulldown list showing values from a predefined column of cells in another tab in the spreadsheet.
When I create a pulldown object it is "floating" around on top of the tab and is not linked toany particular cell. I can't figure out how this is done (or if it is possible).
The main reason for creating this in a spreadsheet and not as a database application is the need to transfer it to my cellphone (and other platforms) where I don't neccesarily have OpenOffice installed.
Please adviise.
0
Comment
Question by:nbtnt1
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
BarryTice earned 2000 total points
ID: 34157239
nbtnt1 --

It's pretty easy, once you know the trick.

Open a new workbook. Go to Sheet2, and in cells A1:A5, enter these values:
Alpha
Bravo
Charlie
Delta
Edward

Now go to Sheet1. Select a cell in which you would like to have your pick-list. Select Data -> Validity...

On the Criteria tab, select "Cell range" for the Allow field. In the Source field, enter the following:
$Sheet2.$A$1:$A$5

Click OK.

Now when you have that cell selected, you will see a drop-down option to the right of the cell indicating that there is a list available.

You can also use the Error Alert tab of the Select Data -> Validity... window to prevent users from typing a value that's not in the list already, if you so desire.

If you don't want to have to maintain a list of values on a separate tab, you can use the Select Data -> Validity... window and select "List" as the Allow value, defining the list of valid values in that window instead.

The trick is to do it through the Validation mechanism.

Hope this helps!

-- b.r.t.
0
 

Author Closing Comment

by:nbtnt1
ID: 34158361
Works perfect. It was a new angle to solving the problem, but it definitively did the trick. Thanks.
0
 
LVL 7

Expert Comment

by:BarryTice
ID: 34160061
Glad it worked for you, nbtnt1. Thanks for the A!
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question