Macro To Populate Cells From Frequency?
May 13, 2014
i have a sheet that looks like below.
I currently have a long winded formula in all the cells that just slows the whole sheet down, the populated cells range is M6:BM5010 this is the formula i have been using which works but slow !
Code:
=IFERROR(IF(AND(M$5>=$I6,M$5
View 9 Replies
ADVERTISEMENT
Mar 17, 2009
I have a spreadsheet for work rosters. Each person on the roster has a row with info on what they're doing for a given week. Split into the am and pm session of each day.
All I want to do is be able to fill the row with the same value if they're doing the same thing for the week - eg if they're on leave, I'd like to hit CTRL-L and have the row populated with 'LEAVE' in each alternate cell, rather than typing it manually. Note that it is each alternate cell, not each cell as the alternate cell has different info.
So a row would look like this:
Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |Leave | blank |
For the am and pm session of the five working days. And just to complicate matters, each 'cell' on my spreadsheet is actually 4 merged cells, and the alternate 'cell' that I want left alone is two merged cells! This is the macro generated when I do a simple record - it does what I want, but obviously jumps to the original row that I recorded it in whenever I run it - I need it to fill the row that I start it from. I recorded starting in cell I133:L134
View 3 Replies
View Related
Feb 28, 2014
Macro to extract data from cells and populate them into a table. Go to the links below for the images. Why I can't attach images here.
HTML Code: [URL]....
View 2 Replies
View Related
Mar 31, 2014
I have a spreadsheet with data populated down column B. This size will vary from day to day so is there a macro I can run that will populate Column C with a formula based on their being data in the adjacent cell.
View 2 Replies
View Related
Oct 20, 2006
I'm looking for a macro that makes a single long list of data from 2 user
input columns of data (column A are the data values themselves & column B are the frequencies of those values). Example - Col. A contains 1, 2, 3, and
Col. B contains 5, 6, 9. This is actually a data set of 20 values that
includes 5 number 1's, along with 6 number 2's, and 9 number 3's. I'd like
Column C to be this long list of 20 data values
(1,1,1,1,1,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3).
T
View 9 Replies
View Related
Feb 14, 2012
Essentially, I'm creating a spreadsheet which contains a list of staff in rows, and the months of the year as columns. It is to record certain company checks which must be done (e.g. driving licence check). When a check is complete, the date it was done is entered under the corresponding month. Certain checks (e.g. driving license) only need to be done every 6 months. What I'm trying to do is find a formula/vba to look at each row, determine where (which month) the date was entered in, and grey out the 5 months in front, meaning the next check is required in 6 months time.
Ideally, the frequency of this check is dynamic, and can reference a cell (e.g. might change to every 3 months etc).
View 1 Replies
View Related
May 23, 2014
I am trying to build a staff roster. The staff rotate over a 4 week cycle. the name of the staff member, and their shift needs to be looked up from the key then matched with the particular week. the name and shift then need to populate specific cells.
I have attached the worksheet so you can see what i am trying to achieve.
View 2 Replies
View Related
Sep 26, 2007
My sheet goes from monday to friday on the coulombs. On the rows i have various data sections for each day. I would like the data on the last day (any day after monday) that there is data for a sheet to input that data into the monday slot when the "master date" is changed on the cheese sheet. The idea here being that the script will take the last entered data for a given sheet, and put it into the monday coulomb on the same sheet when the date is changed. This is kind of hard to explain so if you need clarification let me know. Attached is the sheet i'm working with.
View 14 Replies
View Related
Aug 11, 2009
I am trying to populate cells based on dropdown boxes. The data is on one worksheet and needs to be populated in cells on the main worksheet based on information in the two dropdown boxes. I have included my worksheet for reference.
View 2 Replies
View Related
Jan 2, 2010
I have a workbook with three sheets:
'Activity' 'Expenses' and 'Income'
On the 'Activity' sheet I:
select the date,
select the description, and
select the category (dependent on the description using indirect)
and enter a value. ($ dollar amount)
How do I make the entered values appear automatically :
- on the correct Sheet for the Description - 'EXPENSES' or 'INCOME'
- in the correct columns (matching) the category
- and in the correct row (matching) the date,
- "add to" - if a value already exists in the cell (more than one transaction on a date)
after they have been hand entered on the 'Activity' sheet?
View 7 Replies
View Related
Dec 10, 2009
I have a database in the form of a spreadsheet with the following column headings:
A=DATE (3 letter abbreviation for the month...jan, feb, mar, etc)
B=Client
C=City
D=State
E=Department
F=Contract number
Is there a formula that I can enter in another worksheet (which is being used as a report), that will "grab" the monthly data for all entries for a given month (i.e. "mar"), and auto-populate corresponding cells with each?
View 9 Replies
View Related
Jul 17, 2012
I am trying to write a macro to populate column A "main sheet"with all data from column A "info sheet", Also, in the "main sheet" Column B add a Batch number from a static cell value B5 in "Settings Sheet" every time we have data in Column A. then insert the today's date in Column C "main" every time we have data in column A.
I put a sample of the data I want to see in my "main sheet" ...
View 2 Replies
View Related
Aug 15, 2014
I have a problem after filling in some forms on specific third party site;
After filling in all fields and giving the order to save the info, the fields which had the correct info return to blank, and nothing gets saved on the web page...
Here's how my code looks like...
Sub testing()
Dim IE As Object
Set IE = CreateObject("INTERNETEXPLORER.APPLICATION")
IE.NAVIGATE Range("a1").Value
[Code] ......
View 2 Replies
View Related
Dec 18, 2007
I'm trying to take list off a sheet called List ( attached pic ) and populate the table on a sheet called I-O List, there is already a formula to get the Module type and calulate the data, on the list it shows how many Inputs and Outputs it has so I need it to look like the final pic I attached, it will basically say if inputs = 16 it will start at 0 and go up. I just don't know how to populate a table, and count up from 0. and the last objective is theres a column called X if the cell is empty I don't want to calculate the line on the list, if it = X then I do.
View 9 Replies
View Related
Nov 11, 2009
A macro which compiles a list of entries and adds or summarises the cost.
Sheet1 contains multiple entries per group and a cost in ColumnB
Sheet2 contains only one instance of the group with a summary in ColumnB
Here's an example and I hope it helps;
Sheet1
A1 = November , B1 = 100
A2 = November , B2 = 50
A3 = December , B3 = 75
A4 = December , B4 = 10
A5 = September , B5 = 60
After running the macro with CommandButton1
Sheet2
A1 = November , B1 = 150
A2 = December , B2 = 85
A3 = September, B3 = 60
View 9 Replies
View Related
Jan 24, 2014
I need to be able to populate a cell with text from 3 possible cells, two will have the text "none" in them, the other text cell is the one i need to populate in another cell.
View 3 Replies
View Related
Mar 18, 2014
I have a drop down list with 6 recipes. When I select chocolate for example I want that to automatically populate different cells in the worksheet based on a standard I have created for that recipe. The recipes won't change they just have different ingredients and I want that to show up depending on what I select on the drop down list. I went into VBA and worked a little with this starting code:
If Target.Address = "$F$3" Then
Target.Offset(0, 1).Value = "1"
but It wouldn't populate separately based on what I had selected in the drop down it would just populate all 6 recipes the same.
View 4 Replies
View Related
Nov 12, 2008
I have a total $$ amount in one cell. Using this $$ amount I need to populate two other cells. One that is divisble by $10,000 and the remainder would populate the other cell. In the attached excel file I made notes to this effect.
If the $ amount in cell A3 is $83,000 I would need $80,000 to populate cell C3 and the remainder $3,000 to populate D3. If the $ amount in cell A3 was less than $10,000 such as $5,000 then only D3 would be populated.
View 5 Replies
View Related
Aug 5, 2014
I am looking for a way to have 1 combo box, but be able to click on any cell in a range and yield an individual results. In this particular case I am tracking maintenance, and what my crew's corrective actions were for each location. As this varies day by day I cannot use HLookup or VLookup. Also, the lists vary, and have over 100 options.
What I would like is to be able to click in the cell, and instead of scrolling through a list of 109 options be able to start typing the action and it to auto populate. This gets tedious when there are often 50+ locations with maintenance calls per night.
Furthermore, keeping the results exact for VLookup that is being used on another sheet.
I've attached a blank sheet. Columns B, E, F, & H each would ideally have their own combo box. I could click on any cell in the column and when I begin typing the option it would autofill to the correct list item.
Their respective List are currently to the right under columns J, L, N, & P with their headers matching the exact name they've been given.
View 2 Replies
View Related
Jun 10, 2008
I have successfully used the course booking form as a base for an input form in an accounting workbook that has several pages. (Thanks to Roy and others for the info; the course booking form on [url]is the best explained piece I have found on the net)
What I would like to do is use a range of cells to populate the combobox so that a user can make a choice from the account descriptions (from a sheet named Intro, b63:99) and have the form return the account number (Intro, a63:a99) to the relevant cell elsewhere in the workbook. The user would then have meaningful descriptions rather than numbers to choose from.
My coding for the form thus far is as follows.
View 10 Replies
View Related
Apr 30, 2009
I am trying to add some code that will auto populate cells based on entries and list selections. In the attached spreadsheet, when information is added to cells in column 'A', the date should auto populate the cells in column 'C'. When a status of "Complete" is selected from the dropdown box in cell 'B', the date should auto populate in the cell in column "D".
The code partially works in that it will auto populate columns "C" and "D", but the code errors out every time and I have to cancel the error to continue to the next entry.
View 2 Replies
View Related
Nov 1, 2012
With a UserForm ComboBox I can select one of the names on Sheet1 ColumnA
I need the values of the selected row
(Columns B:S) to populate the cells of Sheet2 (D6:D14) and
(Columns T:AK) to the cells of Sheet2 (D16:24)
(I'll use a CommandButton to run the procedure.)
View 1 Replies
View Related
Dec 4, 2012
I have been doing some statistical anaylsis in excel and have been using trendlines within scatter charts quite a bit.
I know excel can display the equation of the line as well as the r-squared on the chart. Is there any way to get the values for the trendline to appear in a cell next to the corresponding chart data? Of course, I can simply enter the formula myself that is given on the chart, but I am wondering if there is a way to do it automatically.
I have included the data below along with the trendline value that I calculated by manually entering the formula from the scatter chart.
Code:
YXTrendline Value
$78.990.53$79.79
$78.730.53$79.73
$80.550.52$80.88
[Code]....
View 1 Replies
View Related
Apr 6, 2013
I have a table in excel with some data to create labels, but these labels must be repeated according to the number of volumes. Example: I have a delivery for X and such delivery has 5 volumes, need to create 5 labels just changing the volume number: 1/5, 2/5, 3/5, 4​​/5 5/5.
I would enter a value in "D1" after running the code, in column "A" shall be filled as follows.
D1 = 7
A2 = 1/7
A2 = 2/7
A2 = 3/7
A2 = 4/7
A2 = 5/7
A2 = 6/7
A2 = 7/7
If "D1" equals 3 then
A2 = 1/3
A2 = 2/3
A2 = 3/3
View 4 Replies
View Related
Jul 24, 2008
spans over columns A:BM.
column headers are in Row 2, data starts in Row 3
the number of rows varies month-to-month
in column A, the values are either N or Y.
Column B contains xREF numbers, where if the value = N, the xREF is unique; for values = Y, the xREF = an N value xREF number (hope that makes sense!)
Where column A value = Y, some row cells are empty. All N record cells are populated.
starting in Column C, I want all empty cells (basically all rows where column A = Y) to be populated with a VLookup formula where:
Ø lookup_value = xREF in column B
Ø table_array = all N values records spanning B:BM
I can get it to work for column C by autofilling to the last row but if I autofill across columns, the col_index_num stays the same and I can’t figure out how to increase it by 1 as it autofills across.
Sub RangeLookUp()
Dim Rg As Range
For x = 3 To Range("A65536").End(xlUp).Row
If Range("A" & x).Value = "N" Then
Set Rg = Range(Range("B3"), Range("BM3").End(xlDown))
ActiveWorkbook.Names.Add Name:="TheRange", RefersToR1C1:=Rg
End If
Next x
' VLookup for blank cells........................
View 9 Replies
View Related
Aug 27, 2009
I have my projection formulas that use the date and age to estimate production on each farm. Basically the age is calculated first and then the production rate is estimated. I have been trying to figure out if, instead of having a formula in each cell, can I use VBA to populate the ages and then the production.
Here is an example:
8/22/2009
FarmAge8/22/09Age8/29/09Age9/5/09Age9/12/09Age9/19/09Age9/26/09Age10/3/09Farm 1
34181351813617937179381793917940177Farm 2
39223402204122042220432204422045218
All the functions I have created work, I just can't have the worksheet auto-calculate due to the total number of cells with functions. Calculating the worksheet takes approx 1 min...
I should be able to adjust any code to the ranges needed, but this example shows the basic layout.
View 17 Replies
View Related
Jul 13, 2006
how to do some complex stuff in Excel but sometimes I don't know how to do some really easy stuff. After I have named a data set of say a certain ten cells in one column, is there a function or a way to input the name and have that data populate a different ten cells? For instance if I have a huge amount of data all coded and I want to take equal but different portions and run them through a template, how can I make it so I just have to enter the a code for any of the data I have coded and have it populate momentarily where ever I need it to go? I'm sure this is very easy to do unless I have explained it inadequately.
View 7 Replies
View Related
Aug 10, 2006
I have a range of cells that I want to use as column headings. Say the range is A1:A100. I need them to be able to be transposed across the first row of the sheet. Now I know that I can use the transpose function in a cell but this array is embedded in a macro.
View 3 Replies
View Related
Oct 3, 2006
I want to create a user form to allow users to put in 26 values and then have the values populate certain cells within the spreadsheet.
I have attached a sample, I know how to create the form, I'm just not sure of the coding I would need to use?
View 3 Replies
View Related
Nov 21, 2006
How I can refer to sheet...Without activating sheet. i have this
Private Sub carga_click()
Sheets("Codigos de Area").Select
Sheets("Codigos de Area"). Cells(1, 2).Select
While ActiveCell <> ""
ActiveCell.Offset(1, 0).Select
ComboBox1.AddItem ActiveCell
Wend
End Sub
View 2 Replies
View Related