Dropdown Box For Selecting A Category And Displaying More Than 1 Result
Jan 22, 2010
I have a list of questions that need to be filtered by the user and i was looking for an effective way to do it.
Column A is the question number
Column B is the Question Category
Column C is the actual question.
The user wants to use a dropdown box and select the question category. the results they will get are the question number and the question. there may be several questions within a category so all questions need to be displayed for the category that is selected.
(I havnt explored the use of a list as it gives the user the chance to display all the questions and i am trying to keep the viewing space that this list takes up to an absolute minimum). Also i have mentioned a dropdown box as these are very familiar to the user and so they could use it without the risk of user error. I have attached a list of the questions.
DATA: list of films released by year, with box office totals and genre
GOAL: Function to sort data by year, then displaying how many films in each genre were released each year. E.g. horror comedies, romantic films released in 1981, 82, etc
Is there a function, or series of functions, by which I can do this without having to sort through manually?
I want to create a Pivot table, and is now working on the data sheet. In this, every salesman have one row each day containing their sales result that day. I have data in 3 columns. In column A the date, column B contains the Name of the salesman and column C the sales result that day. Now I want to update column D with each salesman's best result. I want each row to contain the top result for that particular salesman.
Date | Name | Result | Top result 1/10 | Pete I | 11.111 | 2/10 | Pete I | 19.100 | 3/10 | Pete I | 23.408 | 4/10 | Pete I | 16.774 | 1/10 | Sara G | 10.884 | 2/10 | Sara G | 10.739 | 3/10 | Sara G | 36.469 |...................
I'm working on making a monthly expense report with 2 sheets; the first sheet would include each individual expense and the expense would placed in a certain category. The second worksheet would be a summary of the total expenses for each category.
I would like column A to be a drop down menu:
Column A: Expense type (Stationery, Kitchen, Maintenance, etc..)
Column B: Amount
This would continue for as many rows as i need
Then on a different worksheet it would add each item based on its category and give a total for each category.
Is it possible to write an if statement to display a picture if a cell contains a certain value? Ive got if statements nailed, its not a problem with that i have, just the returning of an image, rather than text ar a hyperlink.
Eg, "if cell A1="stadium", to show a picture of a stadium in cell C1"
Workbook containing macros and formulas. The workbook will create worksheets automatically by macros and uses the same formulas in the worksheet. After creating the 10th worksheet these formulas stop displaying the result. They showed #N/A but in actual there supposed to have a values in each of the cells. By manually clicking the formula bar and pressing enter these values will appear.
I would like to look at an array and find the largest number. Once that is found, return the text value that is in column B from that row. For example:
In this example, I would be looking at the array C1:D3. Because the highest value is 7, I want the text "Orange" to be displayed in a new cell such as A5.
To find the largest number, I am using =Large(C1:D3,1). How do I display its' corresponding text value from column B in a new cell?
I entered a simple formula in a cell =B14*B16 but it won't calculate. The cell only displays the formula and not the result. tell me what I did wrong. I've attached a sample.
I know how to create drop down list but I have a problem to Return different value then is displayed in Dropdown List. For example: On the workbook I have two wokssheets: one with empty cell and secound with list created for dropdown list.
On the secound woksheet I have created: column A namebox "Country" - cointains full name of countries (Great Britain, Australia ...) and column B namebox "CountryCode" - contains country codes only (GBR, AUS ...) When I click on dorp down list on first worksheet, I would like to my drop down list display me list with columnA "Country" but when I choose one of that it would returns me cell from columnB "Country Code".
I am looking to find the best method of pulling data from a Lookup Table I would like to set up a drop down with all the relevant Steel Sections we make it work and have it access the information and display just that information a separate face page. The information I have set up on the lookup and have named ranges fro them all But how do I get the drop down to trigger the process.
I have a project I'm working on that requires me to display information from various sheets on a dashboard. I have created a data validation dropdown list with part numbers. When one of these part numbers is selected from the drop down list I need the rest of the fields to populate with the appropriate information from various sheets in the workbook. How do I tell the dashboard to display this information per part number?
I have attached a file, in which i need to get the value for IHC from a table using formula as the conditions will vary from time to time. The table is only a sample.. actually it had much more.
I wanted to create a multiple drop down lists (using data validation) in column B (50 in all, every 3rd line) whereby, multiple, comma deliminated, results would display in each of the cells - for use elsewhere in the spreadsheet.
I found some code (as follows) which worked perfectly for me
VB: Private Sub Worksheet_Change(ByVal Target As Range) Dim rngDV As Range Dim oldVal As String
[Code].....
As I mentioned above, I don't really understand the code and all I know is that the line about halfway down "If Target.Column = 2 Then" is defining which column (B) this will work in.
The problem I am having is that I need to protect the worksheet and the moment I "protect" the worksheet, the functionality of displaying multiple values goes away and the drop-down list reverts to only displaying one of the available values.
I'm attempting to familiarize myself with pulling data from an online database into spreadsheets for manipulation. I'm relatively familiar now with pulling tables using webquery, etc. but my next feat is accessing data from sites which require some "input" before retrieving the desired data set.
Currently, I have a site which contains information and prompts for the "year" of information in a dropdown box. I've attempted to do this as indicated below, and was able to "select" a year, however the page doesn't load the data like it would if I were to manually click on it.
Sub GetEmissionsData() Dim ieApp As InternetExplorerDim ieDoc As ObjectSet ieApp = New InternetExplorer ieApp.Visible = True
[Code] ........
Separately I've tried setting the year using another method, but this just give an error
Sub GetEmissionsData() Dim ieApp As InternetExplorerDim ieDoc As ObjectSet ieApp = New InternetExplorer ieApp.Visible = True
[Code] .......
I'm not sure if the error is due to some issue with my code - or if "Label1" isn't the correct label for the dropdown / combobox on the site. I didn't post the site source on this page - but the URL indicate in this post is the one I'm interested in.
I have set of data in excel which is basically a table of workload and I need to be able to select someones name from a dropdown list and all the other names are removed.
I've attached a screen shot of an example, I want to be able to select any name from a dropdown e.g. Select Trevor and then only cells which contain Trevor are shown (i.e. the other names disappear). BUT all the jobs 1-10 and Stage 1-3 have to stay even if Trevor doesn't work on them.
I want to select more than one drop down box at the same time, and copy them as well as rename the cells they refer to.
For example: in A1 there will be a box with LinkedCell set to A1 and ListFillRange set to B1:B5. I now want a similar box in A2, with A2 as LinkedCell. However, when I copy past the box in A1, it still refers to A1 and B1:B5 (the last part is ok). I can easily change A1 to A2 by just changing it in the properties, but the thing is that I also need these boxes in A3:A100. Is there any faster way of changing this?
Also, the ListFillRange might expand in the future. Therefor I would like to know if its possible to select the boxes in A1:A100 and change the ListFillRange to B1:B6 for all at once.
I have a dropdown box to choose a category. When the category is chosen it displays the relevant course names which corresponds to that category (this could be 1 course up to 10 different courses). Along with that course name it gives the relevant course overview.
This works exactly how i want it to. (thanks to Zbor from a previous thread)
I now want to expand further and give the corresponding course objectives for each course that shows up in the results.
I have attached a workbook as its much easier to see the dropdown box working.
Sheet 2 is the working sheet and sheet 1 will contain all the source data. I have highlighted the columns affected in Blue Blue column on sheet 1 will have the course objectives on the same line as the course they belong to Blue column on sheet 2 is where they will be displayed when the correct category selection is made.
The course objectives are unique to the course title and course overview.
In my IE site there is a field which is a dropdown field with the value 'Not Known' and 'Specified Date'. If I select 'Specified Date' another field named 'Date' becomes visible where I can give a date. I was able to ensure that the value 'Specified Date' is selected using the following statement:
IE.document.GetElementById("startDateBasis").Value = "SpecifiedDate"I also was able to populate the date field with the statement: IE.document.GetElementById("startDate").Value = SOA
Where SOA is populated with the date string I need to be given as input in IE.
My issue though is that, eventhough the data is provided by the macro the field 'Date' is not visible. So I have no way to know if the input was succesful until I submit the screen. I think I read somewhere that this is because of the way datebasis is populated.
How to get the field 'Date' made visible if datebasis is given as 'Specified Date'?
I've made a drop down list and when I select multiple cells and choose from the drop down list, it only fills one. Here's pictures:
So in that first picture, I've selected multiple cells. But when I drop down the menu and click my selection, this happens:
Why is it that all the cells I've selected does not fill with the option that I chose from the drop down. I highly doubt that I have to manually click all the ones I want to fill with what I choose from the drop down list.
I have 5 cities and each city has a set of data in separate tabs. Right now i have data pulled for all 5 cities in a single sheet but its too cramped up..
I want to use a drop down list (data validation) and if any of the 5 cities are selected in the drop down, the data from that particular city (tab) should be pulled up. This way my sheet size will be reduced 5 time which will look good.
A common v lookup wont work because the data has to be pulled from 5 different tabs for 5 different cities.
Basically on a summary page, on sheet 1 say I have a formula which picks up the unit cost (I have this as an array across 5 years)
What I then want to do is multiply this by a volume driver. I have a list of these drivers on a seperate page, so for convenience lets say DRIVER_01,DRIVER_02 etc. These are also 5 years arrays.
So what I want to do it be able to select which driver I want to use for volume on the summary, from a drop down box I have set up, and then the formula pick up that named range, and not just recognise it as a text cell.
I need the ability to change the driver in the future, hence the drop down box. I can also get the unit array part to work fine, I'm just struggling to get this driver array to work..............
if you can copy the result of a drop down box to another cell in another tab. Want to use front tab as master sheet and drop selected info down to other tabs .I used Form Controls to create drop down box -
I'm trying to make a spreadsheet that can be used to easily build a collective list of steps, for a user to read and follow line-by-line.
I want a source sheet of "steps" that I can change over time, and the resulting tabs that reference the source sheet get updated/populated automatically.
I've pieced together some VBA code from other sources, which kind of does what I want it to:
VB:
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Row > 1 And Target.Column = 1 Then Dim SourceSheet As Worksheet Set SourceSheet = ActiveWorkbook.Sheets("Steps") Dim TargetSheet As Worksheet Set TargetSheet = Target.Worksheet Dim c As Integer Dim Source As Range
[Code]...
But there are some problems:
1) The data auto-populates into a row. It would read better if each step was in the same column, meaning rows would need to be automatically added upon selecting something from the drop-down list. The number of rows that need to be added vary based on the number of steps in the source sheet, for the selection made from the drop-down list.
2) If you make a change to the source sheet, my goal is to have the other sheets referencing the source sheet's lists of steps update automatically, so you only need to update the steps in one spot and everything you've built from them gets updated instantly. Currently, you must select a different choice from the drop-down list, and then change it back, before it populates the "new" steps from the source sheet.
This is my first time using VBA.
What I have so far is attached: testAutoPopulate.xlsm
I have a dropdown list in C24:C50 (=CategoryList) with data validation and a sub list in D24:D50 (=ItemList) with data validation. I am looking for a way to have code automatically run after selecting an item in the data validation dropdown list in column C.
Example; I click on C24 and make a selection. I what it to trigger code that would move me to D24 and open up the data validation list in D24. After the selection in D24 I would like it to move me back and down 1 row to C25. I have not found anything directly related to this but I have found that code can be run after a selection in a valadition list.
If a user selects certain options from a drop down list created by cell verification (from list), is it possible to display an input box and have the resulting input populate on another worksheet in the workbook? I have an attendance template I'm working with and if a user selects OT (Over Time) then a input box is displayed prompting for how many hours. The overtime is then tracked on another worksheet.