I have copied and pasted the formula off the ozgrid page using a 3 column table laid out as I believe it should be however I just get the # name? error message what I am not doing right. Please help. I just want to be able to generate a random name from a table of names, eventually I need to amend the formula to encompass a larger table but I can't get the example to work!
We get several sets of season tickets to various events to be distributed amongst several managers based on the mgr's headcount. So mgr1 may get 20 dates while mgr2 gets 5. All this info is calculated on Sheet1, but the only info that is important for this exercise is the mgr's names and how many dates they get. Available Dates will always be the same as Total Headcount.
Short of writing names on sheets of paper and drawing names from a hat, I would like to automate this process w/ a push of a button.
Sheet1 - this is where the managers are listed and their Headcount is calculated.
B C 10| Mgr1 Mgr2 12| 20 5
Sheet2 - this is where my ticket information is listed and will change based on different events.
A. B. C. D. 1| Date Row Seat Mgr 2| 1/1/08 H. 1-4. Mgr1 (20 times) 3| 1/1/08. I. 1-4. Mgr2 (5 times)
Ideally I would like to place a button on Sheet1 or 2 that would execute a code that looks at the range of Mgr's names and based on their hdct, inserts their name THAT many times in column D of Sheet2 like the above example.
This information should not change once it's assigned or unless the button is pushed again. The number of Mgr's names in the row on Sheet1 will change, but is never be more than 15, so the code must skip over cells that are blank if referencing, for ex. B11:P11.
I would like to randomly pick a name based on percentage. In the example below Deb takes up 50% of the wheel, if you were to spin the wheel she would have the highest chance of landing on the dial. How you could make excel randomly pick a name based these odds. The list will have over 50 names and each name will be earning points throughout the year. The more points you have the higher percentage of the pie you get and the higher your odds off getting picked in the lottery.
Qmin - is the first smallest value than Q (in this case Qmin=[B5]=0.63) Qmax - is the first highest value than Q (in this case Qmax=[B6]=0.77) Hmin - the value attached to Qmin (in this case Hmin=[A5]=0.004) Hmax - the value attached to Qmax (in this case Hmax=[A6]=0.005)
question: how can i make Qmin,Qmax,Hmin,Hmax to pick up themselfs if I have a given Q=[B12] value????
In short in the attached which is just 5 results (the full workbook has a couple of data tables and if/or's etc., I've stripped all of the workings out for ease) from one of the sims in the workbook, it shows how far each of the 8 teams listed will get.
Basically in the top table (results which I have highlighted green), I am just trying to return the values in column J (highlighted yellow) which I have just inputted in the attached. Basically I then intend to use them as a results cell for a data table (for each team). As you can see from looking at the 5 sets of results in the case of St.Louis Blues it would return, STANLEY, DIVISIONAL, SEMI, WIN, WIN.
I wasn't sure quite how to do this. I thought I could possibly do this with an index and a match (but wasn't quite sure how to express the function).
From the excel spread sheet, while selecting from the drop down list (Deployment Model) from attached Workout sheet, the corresponding table should be highlighted from given tables and populate the same table in the Recommendation sheet from the same excel.
I am attaching sample sheet for your reference and easy understanding about the requirment.
Activities to be carried out:
Go to Workout (Sheet) --- > Select from drop down list (C2) -- > Based on Projection Volumes, list ----> It should highlight the corresponding table from below --> Pick up that particular table and Populate the same in Recommendation sheet (with out formulas, only values should come in tabular format)
I am sourcing data for my pivot table from an csv file. The ultimate task I am trying to accomplish is to allow the user upon hitting a button to select the file that would feed the pivot table. The code below is what I got by linking the initial source file to the pivot table. As I can see the source file named "4 Port.csv" is listed in the SQL-like statement. How do I go about allowing the user to pick the file from the "open file" dialog?
Code: With ActiveWorkbook.PivotCaches.Add(SourceType:=xlExternal) .Connection = Array(Array( _ "ODBC;DefaultDir=C:Documents and Settings2301Desktop;Driver={Microsoft Text Driver (*.txt; *.csv)};DriverId=27;FIL=text;MaxBufferS" _
When using a Pivot Table I regularly filter on known data specific to me i.e. WBS codes.
Column ‘A’ contains the WBS Codes which can be as many a 1000, however, I only need to filter out the 10 or so I require, and currently I uncheck all the records and manually scroll through the list to check the ones I require.
In order to speed things up I recorded a macro which works fine, however, If I need to check any new codes I would have to record the macro again, as I tried to edit the Macro and all it does is to un check all the other codes I don't need.
Is it possible to create a Macro that picks up a range of data that is then used to filter on. (i.e. only the records I require)
Have 10 columns... one column would be for the "1s", another for the "2s", another for the "3s", etc...
But I don't want to have them in straight order (i.e. 1 x 1 =, 1 x 2 =, 1 x 3 =, etc...) because the pattern is easily memorized, no matter what number he's working on.
I'd like to be able to hit a button (or something) and have each column shuffle (or randomize) the order in which the equations will be displayed.
So, a column might come up 3 x 6 =, 3 x 9 =, 3 x 1 =, 3 x 4 =, etc...
And next time it might come up 3 x 5 =, 3 x 2 =, 3 x 4 =, etc...
This way he won't be able to memorize any patterns and he'll actually need to learn his multiplication tables.
I am working on a Random Cycle Count Generator that provides random SKU#s based on 3 separate columns of SKU listings. The user clicks a button to generate the SKU#s to cycle count for that day. What I would like to see is a date stamp in the columns next(B,D,F) to the referenced SKU listing(A,C,E) based on which SKU#s are generated. This will let me see the last date that the SKU was generated. I would also like it to automatically save after generating.
I have a worksheet that has all the numbers that I picked for the pick 5 lottery, listed from B24:N71. These are 5 different numbers. What I want to do is highlight the cells that equal the 5 numbers that were drawn, which I have located at S5,T5,U5,V5,W5
I am managing a group of sales reps and when they sell a product they receive commissions I am trying to develop something in excel that in cell B5 there will be a drop down that they can choose one of three products (call them A,B,C) then in C5 another drop down will be there w/ two options (new, refurb), then the result will be in D5 depending on the selections. The parameters would be:
Product A new = $10 B new = $20 C new = $30 A refurb = $5 b refurb = $15 C refurb = $25
So if the rep dropped down in cell B5 Product B then dropped down in cell C5 Refurb, the result would appear in D5 and would equal $15.
Basically I want a button that once pressed generate a message box that says a persons name. There are 3 names, so the message box should show name 1 1st and then when pressed again show name 2 and you guessed it then name 3!
At the moment I have a problem as per example attached, that I need to select values from row and populate respective column based on the following.
1. A top row contains non-negative values
2. Rows below it contain blanks, negative values and positive value.
3. Last column to be populated with a value from the top row if the value in the rows below top row contains the last negative value before the first positive value. There could be blanks between the last negative and the first positive, but I want the last negative to be used as a criteria for selection of corresponding value from top row. I hope my question is clear with the attached example. The column to be populated is FY.
Is there a formula or function that allows me to always select the lowest (not min) actual lowest in a column? For example, I have a formula in A1 and I need it part of it to always reference the bottom of a certain range (i.e. A5.A200).
So one day the lowest would be A7 but a week later it could be A8. I don't want to have to keep changing the formula in A1 to find the lowest value. I will be adding data on a regular basis.
If I have a date that is 12 February 2008 I need to pick up data next to 31 January 2008 as that is nearest, however if my date is >15th February 2008 I want to pick up the data in the column next to 29 February 2008......
I am trying to create a front-page, control-panel style user form that among other things would enable the user to recolor certain aspects of the entire workbook based upon an eye-dropper tool that would pick any color from anywhere on screen (inside or outside of excel). Ideally, I would like it to be a simple button, click on color, and then have a square next to the selection panel that would display this color. So an add-in would be the most viable solution, however, any form of coding that works is good enough for me.
I am currently at the stage of being able to enter a hex value into the form manually, display the color box using that hex-color in the form next to the selection panel, and upon completion of the form, edit which colors I need within the entire workbook.
And I have an external application that will select the hex value of any pixel's color and paste it in the clipboard, so if could figure a way to run the small application upon the button-click, take the value from the clipboard, and then close the application, that would work.
I need a function like a sumif, but rather than adding together numbers, I want it to pick the minimum. For example, if I had a list of prices for various products, I want the formula to go and find the lowest price for a particular product.
I have a table of data as below and would like a formula that will pick the number and name only (as in the need bit) - can this be done, they are on 2 seperate sheets.
I have been using the RAND and Vlookup functions for the following without success.
I have 4 numeric Pools or Groups; 1. A1:A18 (1-18) 2. B1:B18 (19-36) 3. C1:C17 (37-53) 4. D1:D17 (54-70)
I also have E1:E20 (20 existing Numbers from 1-70)
I want Excel to select at random a total of 20 numbers and place them in F1:F20.
I will specify a quantity from each of the 4 groups. Eg. In cell A20 I enter 4 to obtain 4 numbers from grp 1, In cell B20 I enter 6 to obtain 6 numbers from grp 2, In cell C20 I enter 8 to obtain 8 numbers from grp 3, In cell D20 I enter 2 to obtain 4 numbers from grp 4,
However there must not be any duplicates between E1:E20 and F1:F20!
My VBA code in Excel 2000 copies a worksheet and Saves it. The default path of the file location is held in a cell. The user defines this path through a userform. The userform simply has a text box and the user types in the path. This value is then transferred to the mentioned cell. What I want is for the user to be able to pick a directory from the user form rather than having to type it.
The attachment shows a ledger that I am trying to build. My goal is to automatically add the Ledger balance(G) at the end of each day to the Investment cash balance(J) column. Some days there are multiple Ledger transactions, other days there are none. If there were no Ledger transactions on that day I would like to use the last recorded Investment cash balance. (ex. on weekends there will be no transactions)
Note: I want exactly one balance, the ending daily balance, per day on the investment side of the worksheet.
I have struggled with this all afternoon. My goal is to make this as simplistic as possible for two reasons. 1) I am not a master programmer by any means. 2) I want this file to open on any computer the has a MSExcel on it without have to install any addins.
For these reasons I am thinking it would be best to stay away from macros, which I am minimally proficient at creating.
Let me know if you have any good tricks to solve my problem. If macros are the ONLY or absolutely the BEST way to do this, then I guess you can twist my arm an we can go down that avenue.
I’m trying to do now is I have a drop down menu that allows me to pick any team that we can face in the season. Once that is chosen what I want to show is the individual stats against that team. Now right now I’m just trying to work out the formula to see if it works.
The formula itself is half working. For some reason some of the selections aren’t showing up like there suppose to do.
As per attached file, there are altogether 4 sub-files and 1 master file.
I'll need the code to automatically pick up the top 9 revenue(highlighted in Green) and top 9 EBIT(highlighted in Yellow) by values in Column N from 4 sub-files and paste to the master file.