Filldown Macro For 2 Sets Of Inputs

Oct 8, 2008

I am currently using this macro to fill down cells full of numbers which have been passed through formulae. It works for one input (C10), however I want it to work for another input (C11). Im trying to make it fill down the cells after a new set of headings identical to row 12. It has to take into account the rows used for the original fill down which relies on C10. I have tried to use the same macro twice, but I cant get it to do both layers. Basically I need a fill down of layer 1 (already done), and then a fill down for layer 2 after layer 1.

View 2 Replies


ADVERTISEMENT

Macro For Filldown A Formula

Feb 27, 2009

I'm trying to record a macro that will filldown a formula through a specific range of cells (like G2:g729).

View 2 Replies View Related

Macro - Filldown Formula To Last Row Of Data In Another Column

Jul 9, 2013

What is the macro code to take a cell say H7 which has the formula =$K$3-F7, and filldown to the last row of data in column E? This needs to be dynamic as ill be running this from period to period so the number of rows will always change.

H7 will always be the starting cell for every period. Just not sure how to tell VBA to fill this formula down and stop at the last row of data with another columm as a reference.

View 9 Replies View Related

User Inputs Area Into Macro And Macro Continues To Run After Input

Oct 9, 2012

I have recorded the following marco and it works fine. I would like to modify it so the user would highlight a range of cells rather than have the fixed area :

"'ConsExecProp@20120920'!R4C5:R113C21"

What code lines would need to be added?

Application.Goto Reference:="R4C5"
ActiveWorkbook.PivotCaches.Create(SourceType:=xlConsolidation, SourceData:= _
Array("'ConsExecProp@20120920'!R4C5:R113C21"), Version:=xlPivotTableVersion12 _

[code]....

View 4 Replies View Related

Macro Prompts And User Inputs

Jul 20, 2009

I am not new to excel - but I have never required the use of advanced excel features before today - so I apologize in advance. I am a health professional student (graduate level) assisting my preceptor in developing patient management mechanisms.

I am building an excel spreadsheet to manage current medications for several patients.

I have built the spreadsheet with the first 'sheet' being a directory and subsequent sheets being patient data files(one sheet per patient).

I am now in the process of creating a macro to build new patient data files (a new sheet for a new patient). I recorded a macro to build the new sheet with the proper formatting of information. What I am trying to do now is automate the naming and linking of the new sheet.

What I am really after is how can you create a "prompt" such that after activating the macro button it asks:

Patient last name:
Patient first name:

Then uses this data to:

1. Rename the newly made sheet to 'last, first'
2. Title the newly made sheet with 'last, first'
3. Create an entry in the directory in the 'last, first' format
4. Finally, build the hyperlink from the directory to the newly created sheet

View 11 Replies View Related

If Macro Picking Up 5 Inputs Changing To 3 Outputs

Sep 11, 2012

I'm trying to take 5 inputs that are all in text format and inputs have fixed options what i need is a macro that will take them and turn them in to the relevant outputs. there is a select amount of combinations and i've been asked to do each combination as a separate macro or sub macro.

What I have so far is;

If C6 = "Panel plate" And D6 = "24 by 21" And E6 = "<1.59" And F6 = "N/A " Then I6 = "120" And j6 = "4" And L6 = "120"
End Sub

A B C D E F G H I J K L
1
2
4
5
6 Panel plate 24 by 21 <1.59 N/A
7
8
9
10

(Doesn't seem to work)...

If those four cell match up then i need I6-L6 to line up with whats required.
If they don't equal that i need it to stay clear.

I also need to add the same macro with different options.

View 7 Replies View Related

VBA Macro To Take List Of Multiple Inputs / Apply To Another Spreadsheet And Return

Sep 22, 2013

I want to create a macro to take multiple inputs from sheet 2, apply them simultaneously to the inputs on sheet 1, take sheet 1's output and list next to the inputs on sheet 2. I want to apply this to a spreadsheet with complicated calculations. Example spreadsheet attached. Related Macros I have will do a similar thing but only take one input at a time. Code as follows.

VB:
Sub x()
Dim r As Range
With Sheet2
For Each r In .Range("A2", .Range("A2").End(xlDown))
Sheet1.Range("A2") = r
r.Offset(, 2).Resize(, 3).Value = Sheet1.Range("C2:E2").Value
Next r
End With
End Sub

View 5 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

Filter And FillDown

Feb 4, 2009

I have attached the example workbook with the macros included but what I am trying to do is filter a column, then add in a formula to another column, then have the formula filled in to the end of the filtered selection.

At the moment I have to go over the last row as there may well be additions later. I recorded the macro, then tidied it up. All it seems to do at the moment is copy the Column header. So here is the macro:-

View 3 Replies View Related

Filldown Error

Jan 13, 2008

Sub Macro4()

Range("A36:K36").Select
Application.CutCopyMode = False
Selection.FillDown

End Sub

View 9 Replies View Related

How To Filldown Blank Cells

Feb 5, 2014

I have a column, A1 has XYZ in it, then there is a variable number of cells down to XYA, a variable number of cells down to XYB etc (all in column A).

IE

XYZ
(blank)
(blank)
XYA
(blank)
(blank)
(blank)
XYB
(blank)

etc

How do I fill in the blanks with the corresponding header?

IE

XYZ
XYZ
XYZ
XYA
XYA
XYA
XYA
XYB
XYB
etc

View 2 Replies View Related

Insert Row & FillDown Range

Sep 23, 2007

On sheet "Kilo" I have 2 command buttons one "insert" and one "delete". I would like the insert button to work as if it was being utilized as if it was still on the "Nom roll" sheet. If I use the button on kilo as is it messes up the Kilo sheet.

View 9 Replies View Related

Filldown Formula With Autofilter Applied

Mar 6, 2013

I have a auto filtered applied to 1000 rows of data and the actual quantity of rows I currently see is 55 rows. When I do a filldown command to apply this formula, "=CONCATENATE(X$1,I51)" the result I get is wrong becuase where the "I51" value is at the formula is picking up cell values that are hidden due to the applied autofilter.

What do I need to add to this formula so that it only picks up cell values that are not suppressed by the autofilter? I want it to disregard the hidden rows when I do a filldown and only apply the formula to the rows that are not hidden due to the applied autofilter.

View 1 Replies View Related

FillDown Range Defined By Variables

Sep 9, 2007

I am trying something out the ordinary, instead of hardcoding the Range, I want o find the last used row of the Range and append, then filldown.
I think my idea is good, but either syntax is off or not going to be allowed to do this.

.Range("F" & lLrwT + 1: "F").FillDown

>>I have posted this on VBAx too.<<

View 9 Replies View Related

Macro To Break Out Sets Of 6 Digits Numbers In One Cell Into Their Own Rows

Jun 1, 2012

vb code that will break out each 6 digit media used in their own rows such as in the illustration below.

Sample data before macro
Master Backup
GTI - Hostname

[Code]....

View 2 Replies View Related

Vlookup Filldown: Only Change The "lookup Value," Not The Vector Or Array

Mar 13, 2007

= LOOKUP(L4,' Speed Charts'!A4:A73,'Speed Charts'!B4:B73)

I want to filldown this formula, but the comparison range ( sheet 2, columns A & B, rows 4-73) never changes. how can accomplish this so when i use ctrl-d, only L4 updates (to L5, L6, L7, etc..), but the range remains the same?

by default, filldown tool updates the range to A5:A74, A6:A75, A7:A76, etc

if it helps i'm using this forumla to:
1) take a value (L4)
2) find this value in the first range (somewhere in sheet 2 column A)
3) enter the corresponding value (sheet 2 column b, same row)

View 3 Replies View Related

Values Based On Three Inputs?

Jan 27, 2014

Trying to look up values based on three inputs:

Attached is the file:

Month Input, Column Input and Network Input are changeable based on user input, I am trying to get the desired output based on selection from A20, B20, C20 into cells G20, G21, G22 from row number 2 and corresponding values in H20, H21, H22 from the corresponding row based on the selection.

I have populated an example in the attached file.

View 14 Replies View Related

Returning A Value Based On 3 Inputs?

Feb 27, 2014

I have 3 tables as per the attached samples (there is more but this is a sample for now).

In the table below these I have what I am trying to do. There is the manual input and the auto output based on the inputs.

e.g. if I input 12 in size, ball in type & A01B in piping class I hope to get the following output 20, 35, 51, 67, 83, 99 in the respective columns.

The formula needs to work across all three tables at the same time.

View 13 Replies View Related

Lookups With Multiple Inputs

Aug 19, 2009

I have a spreadsheet with a medium-sized data set, and I need to look up values from the large table, and thin the table down to only the relevant values.

To arrive at each unique value, I will have to match 3 input cells to the first 3 cells of the data table, then copy values from across that specific line to the appropriate cells of my smaller table. I really don't need to sum or do any math in this step, its just a copy from the master table to the smaller table, the math will come later.

I think I'm attaching the file (remember-first post) so hopefully it will help with what I'm trying to accomplish. Hopefully this isn't a big deal, but I've been pulling my hair out on this all day and I just can't find a solution anywhere that really matches up to this.

View 6 Replies View Related

Composing Date From 3 Inputs

Mar 11, 2014

I'm trying to compose a date based on inputs from a userform. The user selects the day, month and year in combo boxes, and I want to place this data on a single cell in the format DD/MM/YYYY. How can I do this?

View 1 Replies View Related

Multiple Inputs Into Other Worksheets

Dec 26, 2006

I have a spreadsheet with over 70 worksheets. The majority of these are concerned with Work standards (National Occupational Standards), each of these standards are further broken down into performance criteria.

What I would like to happen is for a person to be able to enter a "Yes" or "No" response in a box to a specific question on an assessment report or a witness testimony worksheet. If a Yes is entered I would like the spreadsheet to automatically enter a reference i.e AR1 or WT2 (stated by the inputter on that worksheet) in each of the other seperate worksheets that cover this perfromance criteria with this reference.

Because many of the worksheets contain similar performance criteria, i.e "treating people fairly and with respect". The answer of "Yes" on the assessment report worksheet may require a reference inputting on anything up to 60 different worksheets. Is this possible or am I dreaming of the impossible?

I really should have asked this question before I wrote out all the seperate worksheets.

View 14 Replies View Related

Checking All Inputs In A Userform

Dec 24, 2006

I've a userform with just textboxes and have written code that checks each textbox in turn to ensure a correct value has been entered. I want to run the code after any changes are made; where then would I insert the code? Userform.click doesn't appear to work nor keypress. Would I have to enter the code in each textbox_afterupdate?

View 9 Replies View Related

Restrict Inputs On Sheet

May 20, 2008

I have an excel sheet which acts as a form for multiple users, and I wanted to restrict the way certain cells can be filled in.

For example, if the value in Range E12:E100=PD then the values in Range B12:B100 must be blank. Is there anyway to do something like this?

View 9 Replies View Related

Limit Cell Inputs

Mar 8, 2008

how I can ensure that only the letter X can be accepted in a cell? If any other letter or number is typed in the cell or group of cells excel should not accept it & the cell should remain blank?

View 6 Replies View Related

Create A Polynomial Equation Of Z From The X And Y Inputs?

Jan 20, 2014

I'm familiar with 2d graphs, trendlines, and regression equations. Now I have some tabular data that has 2 input variables and a result. As with my 2d data, I would like Excel to create a polynomial equation of z from the x and y inputs. Can Excel do this, or do I need a plug-in or another software package?

View 12 Replies View Related

VBA Code For InputBox With Multiple Inputs

Apr 7, 2014

I am trying to create a vba using only one macro button (excel). I would like for them to enter their names and have their own password that will then insert their signature(pic.jpg) in a specific cell.

I created a certificate in excel and I don't want 12 (number of people) buttons visible. Id rather have a long code. Im not sure if using If and Then and ElseIf is the way to go.

View 8 Replies View Related

Different Calculations Based On Variable Inputs

Feb 15, 2009

If I input any FX pair (Column B) without ???JPY in it, then the formula in Column K produces the correct result. Formula is: eg: If Column B = EURUSD pairs and the like: =IF(C3="L",F3-E3,IF(C3="S",E3-F3))*10000.

This formula will produce a +ve or -ve result in points (PIPS) based on the values of E3 and F3. (eg. E3 = 1.2800 & F3 = 1.2750. If C3 = L then the result is -50. Conversely if C3 = S then the result is 50.)

When I input the JPY pairs in Column B, I need the formula to calculate the same way but multiply by 100 (not 10,000). This is because all non JPY cross pairs have 4 decimal places and JPY cross pairs have 2 decimal places. (eg. 1 PIP in EURUSD = .0001, 1 PIP in USDJPY = .01).....

So if Column B = USDJPY the formula would need to be: =IF(C3="L",F3-E3,IF(C3="S",E3-F3))*100 . Have tried many combination's of the IF function but am now starting to think this is not quite the right formula for this situation. Attached is a sample of what I am trying to achieve. The formula would need to incorporate any/all variations in currency pairs as listed in the attached sample.

View 2 Replies View Related

Finding Sum When Locations Of Inputs Not Originally Known

Mar 5, 2013

I have a spreadsheet where there are two drop down menus with various options. Based on those two inputs, my spreadsheet calculates a "savings" for each row. Now, I want to have cells that will keep a running total of each combination possible. I tried:

=IF(AND(A2:A37="OKC",C2:C37="AF33"),SUM(G2:G37)) but it didn't work...

A column is where you can enter 1st option
C column is where you can enter 2nd option
G column is where the savings results for those combination of inputs is populated.

I need a cell in say, J column, to sum all numbers from G column, where the combo of "OKC" and "AF33" exist.

View 6 Replies View Related

Record Calculated Value Before Changing Inputs?

Jul 11, 2014

A1 = 5
A2 = 7
A3 = A1+A2 = 12

Now I would like to keep value of A3 in cell A7 every time I change input values in A1 and A2 and so on.

A1 = 15
A2 = 8
A3 = 15+8 = 23
A7 = 12

And when an input in A3 > 100, it will popup a message, that a total cannot over 100. My code:

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Row = 1 And Target.Column = 3 Then

Range("A7").Insert , CopyOrigin:=xlFormatFromLeftOrAbove
Range("A3").Value = Range("A7").Value
Exit Sub
Else
If Range("A3").Value > 100 Then MsgBox "Total exceed 100. Check you inputs!"
End If
End Sub

View 5 Replies View Related

Combo Box Inputs Creates New Boxes

Jul 30, 2007

i have a combo box that contain range of number from (1-9)

i need some help in creating the yellow boxes automatically after i have choose the number that i want from the combo box

View 9 Replies View Related







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