Use Drop-down List To Choose What Kind Of Calculation To Apply To Certain Cells

May 26, 2014

I have a drop down list that shows phrases for different math functions, like "divide by 2," "divide by 4," divide by 8," etc. When one of these items is selected, I want it to perform that specific calculation on a range of nearby cells.

However, I also want the user to be able to see the original value of the cells if they select "show original value" from the drop down list.

I have attached a workbook as an example. I think macro would probably work best.

oz_list_math.xlsx

View 5 Replies


ADVERTISEMENT

Choose A Value From A Drop-down List

Mar 17, 2007

I have 8 values in a drop-down list that I've created with excel " Validation" function. Each one of these values changes my data in the sheet. I'm trying to set up a macro that will choose each one of these values and print out the sheet when each new value is chosen.

View 3 Replies View Related

Drop Downs Which Would Allow To Choose From A List Of Vendors

May 19, 2009

I have a sheet in a work book which will act as the "Purchase Order" sheet. I would like to have the sheet include a drop down which would allow me to choose from a list of vendors which would print on the purchase order.

View 3 Replies View Related

If Function: Names To Choose From A Drop Down List In Collumn E

Dec 16, 2008

I have a workbook with the twelve months of the year as seperat worksheets. a thirteenth worksheet is a "total" page. I have three different names to choose from a drop down list in collumn E. I need a formula that will say something like, "if JanuaryE4 = John Doe, total page A1= January A1" Is this possible?

View 5 Replies View Related

Drop Down List, Choose Option, Different Description Appears

May 3, 2007

is it possible to do the following with a drop down list, without requiring VBA? I would like to have 20 products to choose from in a drop down box. When the user selects one of the products, a more detailed product description will appear in the same cell where the drop down list is. For ex: If the user chose "chair" from the drop down list, what I would like to appear in the same cell is "chair - model T654".

View 2 Replies View Related

Apply Same Calculation To Range Of Cells

Apr 11, 2007

Not sure what I'm doing wrong here but I think my syntax is wrong, here is the

Sub CalculatSG()
Dim FinalRow As Integer
FinalRow = Range("C" & Rows.Count).End(xlUp).Row
Range("BU5") = "=(BT5/100)*AE52"
Range("BU5").Copy
Range("BU5:BU[" & FinalRow & "]").Activate
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub

My objective is to apply the same calculation to the range of cells; the range may change which is why I have defined FinalRow and passed this as a refernence.

View 6 Replies View Related

VBA To Choose The Source Cells For A List With Data Validation

Mar 10, 2008

when you choose Data Validation for a specific cell, you can choose list. Once you have chosen list for "Allow", you can select the source cells for what will be in the drop-down menu. I want to be able to use VBA (or just use Excel) to modify those source cells.

For example:

There will be 3 lists with drop-down menus using Data Validation.

List 1:
Choose first option in list -> List 2 uses source A
Choose second option in list -> List 2 uses Source B
etc...

List 2:
Choose first option in list -> List 3 uses source C
Choose second option in list -> List 3 uses source D

View 11 Replies View Related

Formula: Choose The Calculation

May 8, 2006

I am putting together a formula that will be able to choose the calculation. There is a couple of choices with the spreadsheet registry, non registry, and interfile. They have different standards per hour 56, 40 and so on. What I have so far is not working. It is =volume/(time*standard),Volume/(time*standard) with each standard being different to bring the correct percentage. How can I put the two to three formulas in one cell

View 2 Replies View Related

Force User To Choose From 2 Drop-Downs

Dec 29, 2006

I have two columns, Account Number and Account Type. I already use Data Validation on Account Number to make sure it is numeric and on Account Type to make sure the user picks from a drop-down list. I want it so that if a user inputs an account number, it forces the user to automatically pick from the drop-down menu in the account type column, otherwise post an error.

View 3 Replies View Related

Populate A Specific Range Of Cells Based On A Value Of Any Kind In A Header Cell

Sep 22, 2009

I need to populated a specific range of cells based on a value of any kind in a header cell. Attached is a sample of the end results. Please remember each header cells needs to determine what happens the range of cells below the header cells.

View 3 Replies View Related

Drop Down List Which Returns Values Based On What Has Been Selected In The Previous Drop Down List In The Adjacent Cell

Mar 19, 2009

I'm trying to create a drop down list which returns values based on what has been selected in the previous drop down list in the adjacent cell, e.g. if 'Apples' is selected in the previous cell then you should only be able to select from 'Gala, Granny Smith', or if 'Oranges' is selected you should only be able to select 'Seville, Blood Orange'. Is there a formula which would do this, or can I use a pivot table somehow? I'm totally stumped.

View 2 Replies View Related

Drop Down List Which Displays A Different Set Of Values Depending Upon The Value Selected By A Previous Drop Down List

Oct 26, 2009

I need to have a drop down list which displays a different set of values depending upon the value selected by a previous drop down list. ie. (drop down box 1)= x, y, z. (drop down box 2)= either x1, x2, x3, or y1, y2, y3, or z1, z2, z3. I can produce a single drop down box thats not a problem but linking several drop down boxes is beyond me .

View 4 Replies View Related

Code To Apply Calculation To Different Sets Of Data

Mar 5, 2013

I have an excel spreadsheet that performs a particular calculations using a large set of data. However, I have over 1000 sets of data that need to be feed into this sheet and obtain the output calculation. Obviously I don't want to have to copy and paste in each new set of data to obtain my result as this would take a very long time. I am brand new to VBA, so was wondering if there is a way to write code in VBA that will automatically perform these calculations for one data set, save the output into a cell, and then move to the next data set and so on?

View 4 Replies View Related

Drop Down List For 2 Cells

Apr 5, 2009

I have a form with 2 columns. in the 1st, we have the product and in the 2nd, we have the price.

I have my drop down list for column1 but I want column 2 to show the correct price when column 1 has a product.

View 4 Replies View Related

Apply Custom Validation Rule To A Drop-down Field

Oct 6, 2009

Is there a way to apply a custom validation rule to a drop down field in Excel (which itself is already using a validation rule)? Here is what I wish to do: I have a range of cells that can only pick up values from a list. I want to further apply a custom validation rule to these cells - display an error message when one chooses an element from the list that has already been used by another cell in the range.

View 2 Replies View Related

Apply Cell Drop-down Validation Using Range().Autofill

Oct 2, 2009

For our attendance register, the master data table holds a list of all club members (one member per row).

The master data table consists of formula columns, data columns, and two data columns with drop-down list validation.

I'm using this

View 2 Replies View Related

VBA - Add Number To Certain Cells Based On Drop List Value

Jun 30, 2014

I have a numerical value in cell B2 , and a drop list that contains unit names.

I am looking for VBA to see which unit is selected in the drop list, and then add B2's value to that particular unit's total.

See attached workbook : oz_addition_example.xlsx

View 4 Replies View Related

How To Get Drop Down List Value To Affect Multiple Cells

Sep 7, 2009

I have a rather simple problem (tough for me!). I am setting up a food log. I would like to have one column with common food items that I have in a drop down list. The list would be about 20+ things. The other columns would have relevant nutritional info such as calories, fat, carbs, etc.

The problem is how do I make the values in the other columns change depending on which food item I pick from the drop down list?

For example, if I choose bread from the list, how would I get the columns for carbs and calories to change accordingly.

The IF function would be too hard because I couldn't nest 20+ IF functions in the formula for each cell. Also, the drop down list would change as my diet changes, possibly reaching 50+ things.

Also, I would like to manually enter a serving size that would alter the nutritional values in each column (for example 0.5*Calories or Carbs).

It seems so simple in my head, but I can't figure out how to get it to work.

View 6 Replies View Related

Drop Down List With Blank Cells Throughout Range.

Jan 21, 2010

I've used this site for help many times, but this was the first time I couldn't find the answer to my question through searching. I've looked all over this site & elsewhere, tried 2 dozen different solutions, and nothing seems to work.

I've used a budgeting spreadsheet for years, which lets me plan bills weekly according to paychecks. For each month, going down the "Expenses" column, there lists are seperated by when they'll occur. So there may be three blank cells, then electric bill, mortgage, blank, blank, cable bill, blank, cell phone, blank, gasoline.

On the checkbook worksheet, I want to enter a drop down box for the Expenses. The problem is, every solution I've found for doing this is aimed at eliminating blank spaces at the end of the list. This by necessity has to have blank spaces throughout the list, but I would like them to disappear in the drop down menu.

View 3 Replies View Related

Populate Multiple Text Cells Using Corresponding Drop Down List?

Jul 5, 2014

The list is a crew list and I'd like to be able to select the foreman, but I'd like the crew cells to be populated with the information corresponding to that specific foreman. I've named the data range and created the drop down list but i cant figure out why the crew column wont populate with the crew. I am using a different sheet for my data.

I tried VBA but I am hoping I can use Index and Match.

=INDEX(crew, MATCH(C10, Personel!D2:F4, 0), COLUMN())

View 2 Replies View Related

Filling In Multiple Cells After A Choice From A Drop Down List

Feb 17, 2009

If I choose 1 thing from a list I want it to then fill in many cells with info.

For example: I have a color list to choose from, once I make my choice cells near it fill in with 1.5lbs yellow, 2lbs blue, 4lbs red,.....or what ever I have established as the "recipe" for my color choice. When I choose a different color from my list these cells each fill in with different values.

View 9 Replies View Related

Automatically Change Cells To New Value When Drop-Down List Source Changes

Aug 1, 2009

I am looking to have the Cells that I have applied a Dropdown List to update with the changes that I make to the list itself.

Example:

If I were to validate a list with a range of a1:a3 using "Bob" "Sarah" "Bill" and then apply that list to B:B and randomly select from the three names running the length of B:B, I would want that when I go back to A2 and change "Sarah" to "Linda" that every "Sarah" that I have selected using the drop down will update to say "Linda"

I hope that I am explaining myself clearly and in a simple context.

View 9 Replies View Related

Updating Cells Based On Drop Down List Selection

Jun 8, 2007

I have created a pricing sensitivity for a list of products. In cell C3, users can select a product (i.e. Apple, Elmo, or Bowl) and based on this selection, a range of Prices and Units are then updated and the Revenue for each price point calculated. A few lines beneath this, I have a little summary table that lists all the products. I'd like for users to be able to enter in the optimal price point for each item and then have the Units and Revenue for that selected price point for that specific product automatically update.

For example, if I select Apple from my drop down list my price choices are $5, $10, $15; units are 100, 85, 70; and revenue are $500, $850, and $1,050 respectively. On the summary table, I would like units 85, revenue $850 to update automatically if I select/input a $10 price. This would happen for all the products so at the end I want to be able to calculate a blended revenue mix given my pricing changes.

View 9 Replies View Related

Populate Cells Based On Chosen Drop Down List Value

Apr 25, 2008

I am attempting to populate a row of several cells on a worksheet using a drop-down list, using data from a seperate worksheet in the same workbook. The worksheet containing the data will be hidden (I do not think that matters in this case). Do I place a VLOOKUP function in the first worksheet cells? see attached sample

DropDownSample.xls

As a follow-up question, as time goes by, the data in the source worksheet will be appended with new items (additional rows of data). As each new item is added, will I need to edit the formulas, or is there a way for Excel to dynamically add the new data? This might be stretching my wish list a bit but I thought I'd ask.

View 3 Replies View Related

Auto Fill Cells Depending On Drop Down List Selection

Sep 22, 2008

I am trying to make a calendar spreadsheet to enable me to track allowance payments i am due from my company.

This payment is worked out by three conditions - where i am working (7 regions), how many days of the week (4,5,6 or7) and how many hours (<7,8-9 or 10-12)

I have made drop down lists to select each of the values for the three conditions and want to show the total for them

i can total the entire spreadheet for the month up using fairly large "COUNTIF" statements, but i want to be able to show what the exact amount is in each cell not just a complete total.

i.e. i am away for 6 days i get £15 extra, if i am in Europe i get another £50 and if i work 12 hours i get £30.

I want to be able to calculate this total in each cell for that day.

I can send a copy of the spreadsheet i have got at the moment if that will make things clearer than what i have tried to explain.

View 12 Replies View Related

Ignoring Blank Cells/zero Calculated Values In Drop Down List

Oct 2, 2007

i have a list which is populated with data from another sheet.. if there is no data in the corresponding cell on the other sheet then the cell is blank.. i've tried using:

=OFFSET($Z$2,0,0,MATCH(REPT("z",255),$Z:$Z))

but it doesn't see the blank cells as blank i.e. no data in them as they contain formula's.. (even although there are no values populated) - can anyone offer any help in relation to this???

View 9 Replies View Related

Drop Down List Values Dependant On Value Of Another Drop Down List

Dec 9, 2009

I have a drop down box in column N, however I would like the options in that drop down box to change depending on what appears in column M.

If column M Says "Lapse" then I want one drop down box to appear in column N, If coumn M says "NTU" then I would like column N to show different drop down options.

View 12 Replies View Related

Select An Item From Drop Down List And Automatically Fill A Number Of Cells

Nov 15, 2008

I am kind of new to Excel programming and would like to know if there is a solution to my problem. What I need is to have a dropdown list (I know how to make this) then select an item from the drop down, then based on the name i select, Excel automatically fill up the rest of the cells.

For example, from the drop down list I select the company name then Excel automatically type the address, phone number, Fax number and the contact name of the company for me in corresponding cells. Is there a way to do this?

View 3 Replies View Related

Updating Cells Based On Selection From Drop Down List Data Validation

Dec 13, 2009

I'm using Excel 2007. I would like to seek some advise on how i may update cells after selecting a month from a drop down list.

i have created a simplified version of what i intend to have. One the 1st tab 'Cash Budget 2009', i have filled up a table with numbers, sorted by months. On the 2nd tab 'Dec09', i would like to create an expense table, to be able to be selected by month. So i have created a drop down list based on the months that are created in the 1st tab.

Upon selection of the month from the drop down list, i would like the cells to display (fetch) the data from the 1st worksheet. It would also be helpful if the name of the 2nd tab can be updated to read as the month that is being selected.

View 4 Replies View Related

Worksheet Calculation Triggered By Drop Down Box

Dec 22, 2009

I am trying to do is trigger an event when a cell changes, and this cell is updated via a linked drop-down box.

The issue is that the code seems to work fine (in about 10 seconds or less) if a manual calculation is entered into the sheet - but when it's done via the drop-down box, it takes about 3 minutes to complete the macro.

View 3 Replies View Related







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