Making The Same Drop Down Box Display Different Sets Of Choices

Jun 24, 2008

I am making a program that needs some macro but I don't know much about it. There are a couple of things I am trying to accomplish and I'm supposing it would be easier to let you look at the actual program so I uploaded it.

In the drop down boxes in column C there are trucking companies listed. Each trucking company has different trucks with different numbers that pull different numbered trailers. When I select say, "T & L" from list c8 I need the lists in that row E8 & G8 to display only the information related to that trucking company and no others (as opposed to every trailer number and truck number on the lists in row 100). Only T&L drives a truck with the number 08 pulling a trailer with the number 564, etc. I need the same thing to happen for the truck list E8. When a particular truck is selected the lists in g8 narrow to the numbers of the trailers that that truck have pulled in before. So e8 (truck number 88) makes g8 list trailers 8855 and 8445 because that driver only pulls those trailers.

If you can kindly help me with that macro to work for a sheets in the workbook that would help a lot. The only thing is it's useless unless the program can learn new trucking company names with their respective trailers and trucks (we get new ones sometimes). I created the "ADD" sheet to be able to add new trucks, trailers, carriers (companies) and employees. If c8 doesn't have say "t&L" trucking company in it I can go to the add tab and type into cell a4 the carrier, d4 trailer number, g4 truck number, etc. I need that information to add itself to my list on the "page 1" tab into the orange colored list a100:a200 while the trailer goes to e100 and truck c100. The above paragraphs macro would then be able to sort the data in the list when a carrier is selected.

View 9 Replies


ADVERTISEMENT

Drop Down Lists Show Various Choices

Jan 19, 2010

I can create a drop list show various choices, is it possible to have the list of choice but also for the user to input text not in the list.

So if you had a list of names andrew, brian, chris and then not in the list you could write david ?

View 5 Replies View Related

Vlookup With Multiple Criteria: Creating A Drop Down List Showing Alternative Choices With Sex

Aug 22, 2007

I am trying to create a simple user interface type thing so that someone is able to select from drop down lists someones information, such as whether they are male or female, aged between 19-35 or 35-67, whether they are studying in a business area, legal or construction etc (there are 6 variables in total), This will then give the probability of success of the person passing this course based on probabilities which I have already worked out. I have worked out how to do the first stage of creating a drop down list showing alternative choices with Sex, Age etc in the data validation options, however:

There are 517 possible combinations, as in Male aged 19 to 35 studying Business (with other variables) or Male aged 19 to 35 studying Law (+ other variables) etc etc etc each with their own probability of success. Due to the long nature of writing out Male1935BusinessNorthWestWhiteBritishCollegeBrown I have rewritten it so it appears in the excel file as M1935BNWWBCB, which obviously wouldn't make any sense to someone if they had to select M 1935 B NW WB CB from drop down lists.

Along side the M1935BNWWBCB there is the probability of success specific to that type of person. So for example I could would have:
M 60%
M1935 64%
M1935B 35%....

View 8 Replies View Related

Making Multiple Pages With Drop Down Menu

Jul 17, 2006

is there any way in excel of making multiple pages with a drop down menu. Let say I choose 3 within the drop down, I'd like excel to make 3 pages (with the same settings of the first one) having a head/foot head pages. If you have a excel example(xls)

I just added a picture of what I actually want to do. I'd like to have the same design but adding pages between the top and bottom of the pages with a drop down or via an input box.. doesn't matter.

View 7 Replies View Related

Excel 2007 :: Display Icon Sets Based On Prior Value

Jun 4, 2013

I want to display icon sets in Excel 2007 (arrow) based on prior values. If value is less then previous cell then down arrow should be displayed else up arrow.

View 1 Replies View Related

Making MsgBox Display Cell Values

Jan 8, 2008

Triggering a message box. one of the worksheets in my workbook is called Update Comments - this is a sheet that contains data in the following format (headers)

B7 = Week Number
C7 = W/C
D7 = Update Due
E7 = Updated By
G7 = Update Comments

I have a formula in column D (beginning D8 and copied down for the year) as follows:

=IF(AND(C8

View 9 Replies View Related

X Axis Time - Display 24 Hours Making Everything Unreadable?

Dec 22, 2013

I'm creating a spreadsheet for anaesthesia monitoring. I have a table that calculates the time every 5 minutes (i.e. start time + 5 mins) for 3.5 hours and columns for heart rate, respiratory rate and drugs which is then plotted on a scatter graph. I've forced the major x-axis major unit to be 5 minutes.

Everything works fine for the first few values (1.JPG) then after 24 values it decides it wants to go crazy with the x-axis and display 24 hours (2.jpg) making everything unreadable. I would set the minimum manually but it obviously that will change depending on when the case starts. I can upload the file but it has some macros for other sections.

View 5 Replies View Related

Excel 2013 :: Making Numbers Display With Color Based On Text Inputted In Different Cell?

Nov 20, 2013

EXPENSE MASTER 2013 sample color.xlsx

I have numbers that will display in column G. I have payment types entered in column E. So if 'C FUEL','FA','C M/C', is entered in column E I want the number in column G to be red.

View 3 Replies View Related

Excel 2003 :: Match Two Sets Of Data And Display Specific Data?

May 12, 2012

I have two separate worksheets:

I'm trying to find a formula that looks at Column A on both sheets (each client is allocated a unique number) and if they match enter in column D of the referral sheet the month they were seen but only if it is a 1st contact (appt type on column D of contact sheet)

Referral
A
B
C

[Code]....

way to do the calculation using Excel 2003

View 9 Replies View Related

Display Scenarios Using A Drop-down List

Feb 17, 2009

I'm trying to replicate the VBA code for displaying scenarios using a drop-down list that I found on this website: http://www.tvmcalcs.com/blog/comment...rop_down_list/

However, I've not quite been able to get it to work on my worksheet. This is my

View 3 Replies View Related

Don't Display Blank Entries In Drop Down Menu

May 10, 2007

If i make the listfillrange of my combobox a named range, is there a setting in the combobox that allows it to ignore any blank cells in the named range.

Lets say my named range is cells A1:A5 but only A1 has a value, the rest are blank.

The combobox drop down menu will display the value of cell A1 and then 4 blank rows. Can i make the combobox igoner the blank rows and only display cells A1 in the drop down menu?

View 9 Replies View Related

To Insert Down Between Sets Then Border Sets

Apr 10, 2008

Below is a series of sets. Column A is the set number. I need a macro that will insert a row between sets and then put a border around each set. In my spreadsheet the sets are from A1:C500. Sometimes the sets are only 1 row, sometimes multiple rows. It looks like I will be doing one of these sheets every week. So far I have been doing it manually, but a macro sure would save some time.

View 13 Replies View Related

Display Data Based On Selected Month From Drop-down List?

May 14, 2014

I want a table to display data based on which month i select from a drop-down list, the data is of course extracted from a different table. For example, in my final table( highlighted in yellow), i want to display the revenues, cost of goods sold..etc of April in this table when i choose April from the drop-down list, the data of the entire year is located in another table that i plan to hide, as we only need to review one month.

View 1 Replies View Related

Select Only One From Five Choices

Jul 24, 2007

I'm trying to find a way to make the user select only one of five columns in a row. What I’m trying to get is a ranking of 1 to 5. The user will click a cell and it will fill in or the user puts an X in it. In row 8 I want to select A through E but only one of them. If the user changes their mind and clicks another cell, the first cell clears.

View 9 Replies View Related

Top Five Choices - Choosing Rooms

Jun 18, 2014

I am trying to assign rooms to tenants. I would like to set up a function that reads a tenant's top 5 choices for a room, and looks up a column to see if the choice has already been selected before moving to the next choice. Then if all 5 choices have already been selected, the cell reads error.

This is how it would look : Excel Pic.jpg

View 3 Replies View Related

Multiple Choices For Sum Formula??

Apr 24, 2007

I am trying to calculate phone call rates based on several different conditions. *if my phone call has a "DESCRIPTION" of "Local" then I want to add 2 cents onto the "COST" *if my phone call has a DESCRIPTION of "Mobile" then I want to use the formula = SUM(G7*24*60)*0.4+0.1 to calculate the charges *if my phone call has a "DESCRIPTION" of "13 Number" then I want to add 5 cents onto the "COST" I am able to use a formula that allows 2 condition but I have been unable to work out a formula where I can add more conditions.
I have attached a spreadsheet

View 2 Replies View Related

Allow Multiple Option Choices

Jan 23, 2008

When I try to insert an 'option' box in which either a check box or radio button are used, only one option can be used. For each option I have to create a new option. But then, each option can be selected, which defeats my purpose. I want to create an option box where there are two option in the box, but the user can only select one of the options, not both, or neither.

View 2 Replies View Related

Allow Multiple ListBox Choices

Jan 24, 2008

There is any way to select two item one from listbox1 and anotherr from listbox2 and paste on sheet

View 9 Replies View Related

Multiple Option Button Choices VBA

Apr 4, 2013

I am working on a grading sheet for our company. I would like users to choose from an option button choice (A, B, C, D, F) for each grading category and I would like to write that to a sheet that corresponds with the graded person. The form will have next and previous buttons to move through the grading process - when previous is chosen I would like the option buttons to populate what was stored in the data sheet. I think I can mottle thru the code individually but with 60 option buttons it may take quite some time.

Can I call an option button choice by "Group"? I started coding individually, but it will take a lot of code - surely there is a more efficient answer. A picture of my form is attached at the bottom of this post.

VB:
Private Sub OptionButton1_Click()Dim Grade As String
If Me.OptionButton1 = "A" Then
Grade = "A"
Else
Grade = ""
End If

untitled.jpg

View 9 Replies View Related

Combine 2 Columns With 3 Choices Into 1 Column?

Feb 18, 2014

I have 2 columns "H" and "I" from line 6 to 409. Each cell may start with AR , MA or a number. If cell H6 starts with AR I would like to put that cell into B6. If H6 does not have AR then I would like to check I6 for AR, and put that into B6 if it's found. If I don't find AR in either I would check them both for MA, and write the cell that finds MA into B6. If the AR or MA are not found then I would want it left blank. I did try

IF(FIND("AR",$H7,1),$H7,IF(FIND("AR",$I7,1),$I7,IF(FIND("MA",$H7,1),$H7,IF(FIND("MA",$I7,1),$I7," ")))) in B7.

View 6 Replies View Related

Generate Choices With Assigned Probability?

Nov 10, 2013

Lets say I have 20 cells. I want to randomly assign a label to the each cell from 5 choices, like "Blue", "Orange", "White", "Green", and "Black". But I want to assign a probability of selecting the labels. So the percent probability of choosing Blue would be 56% and White would be 23%, etc. . . is there a function that allows me to do this?

View 5 Replies View Related

List Boxes Not Displaying Choices

Feb 19, 2009

I'm very new to the VB experience and am having trouble getting the choices in my list boxes to show up.

View 6 Replies View Related

Trigger Actions For Three Choices In A Macro

Dec 30, 2009

I have a series of macros altering various workbooks and sheets. They're numbered Step1, Step2, etc. In my Step5 I have a series of Case statements in a macro, and I don't know how to get it to do what I want next. I have NOT tried running this code yet, and I'm sure I have something(s) wrong in it.

1) If the selection in DstWbk, sheet "Steps", is "01DSP" through "11DSP" the macro needs to delete specific columns in the SrcWbk, and then move to the next step (6).

2) If the selection in DstWbk, sheet "Steps", is "*DSP" the macro needs to go directly to the next step (6)

3) If the selection in DstWbk, sheet "Steps", is anything else the macro needs to flash a generic "No Data found" message and move on to Step7.

The part of the code that's throwing me begins at 'Select only the specific regional data' and ends at the "Case Else MsgBox"

View 3 Replies View Related

How To Organize Survey Data That Has 2 Choices

Nov 17, 2013

I did a survey of what kind of clothes people like to wear and why. So there are two things that people have to write down. ex) jeans and cus they're comfortable / shirts and cus they look good

The data that I received was organized as followed

I just put in random things just so you can get the idea of whats what

Id
jeans
shirts
cardigans

[Code].....

Okay so what I want to know is how I can get the responses from the data spreadsheet I showed you before into this organized data table above.

View 3 Replies View Related

Automatic Selection Of Choices On Screen?

Dec 12, 2013

I am writing a simple application that allows users to enter an item ID and execute a find. If the data is found, the UserForm populates with the pertinent data for the requested ID otherwise a message indicates Item not on file. The file being interrogated is an Excel workbook with multiple functions, unrelated to my task.

The problem: When my application opens the workbook to perform the Find, the screen displays a message generated by Excel, informing the user that the workbook contains links to other data sources and requesting to choose to either Update or Don't Update those links.

I used the Application.DisplayAlerts=False line but it has no effect on above. The choice I always make is Don't Update and the macro continues to the end without further ados.

Is there a way to either cancel such a screen request or automatically select a given option?

View 2 Replies View Related

Dropdown Selection Box With Multiple Choices?

Dec 19, 2013

I am trying to create a simple order entry worksheet. In cell M1 I need a dropdown box that lets the user select which options go on the product. You can have multiple options. The list of options is contained in column A of the Options worksheet. Depending on which options are selected, I want to put a 1 in column B of the Options worksheet. how to do this or have a sample workbook that I can look at.

View 1 Replies View Related

To Create Custom Msgbox Choices

May 7, 2009

I am trying to create a msgprompt but instead of using the default yes or no, I need 3 options, so if the user clicks the first option, it will check a certain box. It will look like this.

"What envelopes do we use?

Choice 1. Branded Choice 2. Unbranded Choice 3. Client Branded

View 9 Replies View Related

Dropdown List With Text Choices With Hidden Value?

Apr 24, 2013

I created a dropdown menu, that asks you make a choice from a list.

"Under 5"
"Between 5 and 10"
"Over 10"

However I want to connect the choice to a certain number and use it for a formula. For example:

"Under 5" is equal to 1
"Between 5 and 10" is equal to 2
"Over 10" is equal to 3

So if I make a formula to multiply the cell that says Under 5, excel to understand it is actually the digit 1.

View 3 Replies View Related

Send All MultiSelect Listbox Choices To Sheet

Feb 19, 2007

i have this code to populate the worksheet from listbox selections, but it only works on a 'one at a time' basis.

Private sub cb1_click()
Dim i As Integer
Dim Ltm As String

With ListBox1
For i = 0 To .ListCount - 1
If .Selected(i) = True Then
If Ltm = "" Then
Ltm = .List(i)
Else
Ltm = Ltm & ", " & .List(i)
End If
End If
Next i
End With

With ActiveSheet
.Range("B" & .Rows.Count).End(xlUp). _
Offset(1, 0).Value = Ltm
End With
For i = 0 To ListBox1.ListCount - 1
ListBox1.Selected(i) = False
Next

what i am trying to do is once i have checked several items in the listbox is have all of the checked choices fill iin column B at once.

View 9 Replies View Related

Select Choices In List Box To Move To Another Worksheet

Jun 6, 2006

I have multiple choices in a list box. I wish to know how do i link each choices in the list box to another worksheet so when clicked it goes to the worksheet specified.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved