If Calculation To Copy Rows Based On Hard Coded Cells?

Jan 31, 2014

I want to copy all rows from my input sheet that have a date less than the date in cell B3 of the output spread sheet and are contained in the stock table (range A7:B17) Sedol in column B Is a unique identifier. I started to do this but am lost.

View 6 Replies


ADVERTISEMENT

Multiply Range Of Cells By Cell Reference Without Changing Hard Coded Values?

Aug 20, 2014

I am trying to multiply a range of cells by a cell reference. The cells currently have hard coded values in them. I know with past special you can multiply a range of cells by a copied #. I want a similar function to that just instead of a copied cell its a cell reference. No VBA.

View 5 Replies View Related

Hard Coded Number Range Into A Function

Apr 10, 2009

All I need is to use the forecast function =FORECAST(I902,F832:F901,I832:I901) but want to substitute a hard coded from and to value list, such as something like =forecast(71,F832:f901,{1-70})

That is, forecast case 71 given a range of 1 through 70. What is the correct syntax to give a from and to value? Curly brackets don't seem to work, and I don't want to do a list like {1,2,3,4,5,6,7...} which would be a pain.

View 9 Replies View Related

Managing Macros With Hard Coded File Paths

Oct 8, 2012

We have multiple macros that have been developed by various users in the company. Many of these macros have file paths hard coded into the macro to reference file locations with networked drives.

We are planning on making some changes to the network file structure which will break these macros. I realize we will have to go in and manually change all these. I want to ensure that the end users have the flexibility they want, but not have to touch each macro if/when folder structures change, or files migrate to SharePoint etc.

ini files, master reference Excel file...,

View 3 Replies View Related

Dividing Hard-coded Data By Named Fixed Cell?

Feb 6, 2014

I am trying to divide hard coded financial data by a named cell that will allow me to toggle viewing the financial data in dollars, thousands of dollars, and millions of dollars. I have named my toggle cell _000s and I have used Go To Special to highlight all of the hard coded data in my financial spreadsheet. Once I have done this I would like to Copy my _000s toggle and divide the hard coded values by this cell. I am using copy and then paste special divide by but I am having no luck with this tactic.

faster more efficient way to go about this rather than individually changing each hard coded item?

View 3 Replies View Related

Excel 2010 :: Making Hard Coded Cell Dynamic While Maintaining Original Content

May 16, 2014

I pulled a set of financial statements from a database into Excel. All of the values are hard coded but I would like to make them dynamic, while maintaining the original content. For example, If cell C3 is a revenue figure for 2012 ($1,000) I would like to link it to cell C5, which will be a currency conversion rate (2.0). So I would like cell C3 to read =1000*C5, which would equal 2000, and for cell D3 to equal 2013 sales*D5, etc. I would also like this to go across a specified range so that I can also change operating expenses, taxes, etc over a number of columns (dates) that I define, all linking to the conversion rate for the given year. Having another tab where you link and anchor is an option but I would prefer something in VBA where I can qickly include this functionality with new workbooks that I download.

I am using Excel 2010.

View 5 Replies View Related

Changing Hard Coded Column References To Variable References

Oct 22, 2009

I have a number of statements within the Sheet Event Code (Excel 2007). Three times lately I have added a column and had to go back into the code and find all of the references that needed changing to reflect the new column.

I have been working on this for a couple of days and even tried EE, but to no success.

I have read that Defined Names / Constants should be used as often as possible, but even trying that, the VBA code errors out or "hangs up". Even within Bill Jalen's book (VBA and Macros 2007), there is nothing that addresses this, especially using Intersect.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range

On Error GoTo mEnd
Set rng = Sheets("Log").[F14:F10000]
If Not Intersect(rng, Target) Is Nothing Then
If Target = "" Then
With Sheets("Log")

View 9 Replies View Related

Filtered Rows Not Deleting As Coded

Mar 1, 2012

I have discovered that my blue highlighted code posted below isn't deleting the visible rows of filtered data as expected.

Code:
With core_data
.Activate
.Range("D5").Select
Dim rngToDelete2 As Range
llastrow = 0
lmergedelete = 0
llastrow = .Range("a65536").End(xlUp).Row 'calculate the last row visible
'filter the visible rows to include only those rows in which dupphase3 = "DUP" (ie. duplicated rows)

[Code] ....

Additionally, and I'm not sure if it's related to this, but I am receiving an error with the red line .... "Application-defined or object defined error".

View 6 Replies View Related

Formula To Combine Legend Values Based Of Where 1's Are Coded

Aug 18, 2009

In this file i did paste special values so the links are no longer there, but in my original file alot of the values you see in the cells are pulled from other worksheets ( thats just so you know to lookin values of the cells and not the formula ).

I basically need row 18 starting from Column O to self populate.

Its based off of which has 1's in the Column. I have the completed here manually just to show you what i am looking for . I usually have to go to row 3 and Enter the data manually depending on which 1's are filled in for the column.

If i could have a method of having row 18 starting with Column O to self populate based off those 1's

View 8 Replies View Related

Copy Cells Down Based On Number Of Rows

May 11, 2009

My worksheet has data in column A. A formula is placed in cell B2 (col headers are in the first row). What is the code to copy it down so it coincides with the rows in Column A? If I use the following:

View 6 Replies View Related

Copy Rows Based On Cells To Another Sheet.

Dec 9, 2009

Attached is a sample of what i'm trying to do.
I want to use the data in the Setup Sheet to parse data in the Master sheet.

so for each row in the Master sheet, if the Property Column cell matches a Property cell in the Setup sheet, copy that row to a sheet named after the Person Cell (identified in the setup sheet).

Sorry if that's not very clear. I am not proficient at using advanced excel functions. I'm hoping this is an easy one..

View 6 Replies View Related

Copy Selected Cells Of Rows To Another Worksheet Based On A Condition

Feb 4, 2010

I am self-taught (arguably by a pretty shoddy teacher), and am determined to figure *some* of this stuff out. I need a code to look at the rows on one worksheet and based on the value of column A for each row, copy cells A through E in that row to cells A through E of a blank row on a corresponding worksheet. I found a code from another post that does just what I need it to with one small exception. The code was posted by DaveGuggs and is as follows:

View 2 Replies View Related

Hard Find And Copy

Nov 2, 2008

I have a web query which updates regulaly, however, a lot of information is prodcued which i dont need or want. I know that the information I do want will always be in a single column, usually A or C.

The problem is further complicated. If I have the following search list on sheet1 column A:

Search List (sheet1) Web Query results (Sheet2) Known bad data (sheet1)
A AB AB
B E DE
C F
D A
E B
F C
G DE

I need to be able to search through the information returned by the web-query, and find the first exact match in the returned data that exists in the lsearch ist, so in the above table the first exact match would be row 2 which contains only an E. Row 1 with AB is not a match as it does not exist in the search list.

So, having identfied where the first entry I am interested in (E) is, we need to copy all the cells below it until we find the first entry which then exists as an exact match in Known bad data column.

If all goes to plan, running the macro on the above data would output the following to sheet 1:
E
F
A
B
C

View 9 Replies View Related

Format Cells Based Upon Being Outside Scope Of Calculation Of 2 Cells

Feb 6, 2008

I am comparing a set of common variables across 2 sets of independent financial data. When comparing a variable across the 2 sets e.g. profit I want to colour a neighbouring cell based on the size of the difference. For example if the difference between the two values is within plus or minus 1 make it green, plus or minus 5 red etc.

View 5 Replies View Related

Calculation Based On % Of Cells

Oct 29, 2008

I need a formula that I can place in, lets say, Cell A1 that will reference Cells B1, B2, B3 and C1, C2, C3. These all have numbers & %'s in them. However, I want to "weight" the B cells by the percentages in C cells. The problem I am having is that when I change the %'s nothing is changing in the output...almost like I was doing nothing but averaging B1:B3 without the % to adjust.

This is how I envision it, but my calculation may be wrong of course :
A1 = average(sum(B1,B2,B3)*C1, sum(B1,B2,B3)*C2, sum(B1,B2,B3)*C3)

The Goal:

This would allow me to change the output depending on the percentage. So if I am looking at days to an appointment and the B cells represent areas of a city: B1 = 10, B2 = 5, B3 = 2 the average would be 5.6, however, I know that B1 city has more "weight" to it with our customer base so I want B1 to be closer to what will show as days out (which is obviously important as 10 days is not good). So I would assign C1 = 60%, C2 = 30%, C3 = 10%. This should pull the average more to 7 or 8 as it would lean more towards the B1 value. I hope this makes sense.

I did try going more of a route where I did something like =average(B1*C1,B2*C2,B3*C3) but that lowered all the original values instead and averaged them instead of pushing the number more towards the higher weighted % of B1 cell value. I can send an example spreadsheet if I am losing anyone.

View 8 Replies View Related

Calculation Based On Colored Cells

Dec 4, 2008

i have a sheet which has name of students (A2:A10), B1:E1 has project name. and the projects are catagorised by color red=high,green=medium, yello=low. i have given weightage to these color red=80%, green=50%, yello=20%.
similarly the involvment of the students in each project is shown by these three color in respective cell. like B2 is red, C2 is red,D2 is blank, E2 is green. (the weightage is same as above). in column F i want the total utilisation of each student, which is simply sum of product of weightage given to these colors.
e.g.

project 1project 2project 3project 4utilisationsam1.38joe0.54nick0.72

what i want is to calculate this utilisation number, but i want my sheet to be shown in the same color format.
i am sure that there is some solution for this.

View 9 Replies View Related

Replace A Character With A Hard Return In Multiple Cells

Sep 7, 2004

I have a spreadsheet that was an export from an old program. The ý symbol indicates the start of a new line within a cell, is there an easy way to do a search for the ý and replace with a hard return?

View 9 Replies View Related

Macro To Copy Rows Based On Moving Date And Paste Rows Into Identical Sheet

Jan 28, 2014

I need to build a macro which copies 3 rows every day and pastes the row data into an identical sheet. The three rows will have column "D" as =today(). As the days progress the three rows will change accordingly ( tag to the today's date)

e.g. 28/1/2014
28/1/2014
28/1/2014

I need the macro to recognize the date when pressed and copy the corresponding rows of data and paste them into an identical sheet with the same date. The second sheet is an archive sheet. The date will tick over as per the calendar.

View 9 Replies View Related

Traditional "hard Copy" Book Of Warranty Codes

Oct 18, 2007

I am trying to do away with our traditional "hard copy" book of warranty codes here and I would like to create a sheet with 6 changing combo boxes so I don't have to flip through this dad-burn book all day for codes.

the first combo box would be like "brands" then "type" "model" "section" "item" "repair type" and then like a cell to display a value from a list depending on all 6 previous combo box selections. Similar to those car part websites where you enter your vehichles info to arrive at a part number or price.

View 9 Replies View Related

Identify Duplicate Rows And Copy / Paste First Cell To All Cells Of Equal Rows

Apr 14, 2014

I am new to macro and just trying to learn. I have a spreadsheet with 20000 rows and 8 columns. I am trying to identify equal rows based on the values of columns C, D, E and F. then I need to separate equal bunches with a blank row. Then I need to copy the ID number from the first cell of column B of each bunch and paste it for the rest of the rows in that bunch. I have written the following code but this does not put the ID of the first cell in a bunch for the rest of the rows in that bunch.

[Code] .........

View 10 Replies View Related

Copy Rows Based On Cell Value?

Feb 23, 2012

WS "Activities" has a list of dates in col B (Inputted as 02/01/2012, 04/01/2012, 01/02/2012 etc.) (Formated as 02-Jan-2012, 01-Feb-2012 etc.)

WS "MonthReport" is where the rows are being pasted Currently the code will paste rows based on the search string in MonthReport("B1") So - If I type 02/01/2012 in B1 it copies all the rows where that is the date.

What I need it to do is be able to search for "January" and then return all the rows where the date is between 01/01/2012 and 31/01/2012. (Or all of Feb, Mar etc dependant on what is in MonthReport("B1")

Private Sub CommandButton1_Click()
Dim LSearchRow As Long
Dim LCopyToRow As Long

[Code].....

View 4 Replies View Related

Copy Rows Based On Cell Value

Oct 4, 2006

I have a list of items with a quantity in the final column. I need the rows to be copied the same number of times as the quantity displayed so that instead of having 1 row with a quantity of 5, it copies this row a further 4 times so that there are 5 rows. how this can be achieved other than manually as is currently the case? I've attached an extract so that you can see what I am working with. Column H holds the quantity (obviously) and ideally should be reset to 1 when the item is copied the relevant number of times.

View 3 Replies View Related

Copy Rows Based On Column Value

Sep 5, 2007

I have a worksheet where I collect ledger balances from 2 different sources and wish to identify out of balance situations. I have done so, but now I need to copy those rows indicated by a "No" to another worksheet (ideally I would like to have those rows printed out directly, but I can do that from another worksheet. I have tried AutoFilter and Sort, but that is not giving me what I want or expect. My question is: How do I code a macro to pull those "No" rows and either print them directly or copy to a new worksheet (WorkSheet2)?

View 2 Replies View Related

Copy Rows Based On Date

Dec 18, 2007

Column A is formatted for date. I need to return entire rows to another sheet that match a certain date. is this possible?

View 3 Replies View Related

Copy Rows Based On Value In Column

Mar 18, 2008

I am looking for code to copy and paste a row into a new sheet based on the data in a particular column. I would like it to look at Sheet 1 Row D and if it finds the word Russell to copy the entire row and paste it into the Sheet entitled Russell

View 4 Replies View Related

Copy Rows Based On A Cell Value

May 22, 2008

have written a macro who can do this job, and offered me to have a look at my data. They are attached

View 4 Replies View Related

VBA - Copy And Paste Rows Based On A Condition?

Apr 19, 2013

I have tried to write some VBA to copy and paste rows based on the condition in cells A:A in sheet one. So far I have managed to put something together which will paste the first row and insert a new row below but keeps on pasting the same row. But not much else! Not sure I have tried to make it more difficult than what is it.

I would like it to copy a row based on a certain condition ("WRW") in A:A sheet one and paste it to sheet2.

VB:
Function DoOne(RowIndex As Integer) As Boolean
Dim Key
Dim Target

[Code].....

View 3 Replies View Related

Copy Rows Based On Conditional Statement

Nov 17, 2004

I want to copy a row based on a certain condition. I have 700 rows of data on sheet 1. If Cells in column A contain an X, copy row A# to sheet 2. If there are more than cell that has an X copy all of the rows, naturally. Can this be done with a simple conditional statement, or am I going to need to generate an array, then write that array to sheet 2?

View 4 Replies View Related

Copy Rows From One Workbook To Another Based On Criteria

Aug 4, 2009

I have been struggling to setup these two workbooks for a bit now, and I can't for the life of me figure out a formula to do what I need to do. Essentially, I have one workbook that contains a list of purchase records for my company, sortable by Date, Vendor, Price, etc. and one workbook that has a sheet for every vendor. What I need is a formula that will search column B for a vendor, Allied Waste for example, and transfer all the information within the rows for every instance that vendor is found to the new workbook.

This is basically just a way where I can input information once in one workbook, where the sheets are divided by month, and the info will automatically transfer to another workbook, where the sheets are divided by vendor.

View 2 Replies View Related

Copy Rows To New Sheet Based On Y / N Value In 1st Column

May 12, 2014

I have a single sheet that lists available items, prices, etc. When doing quotes, you simply put y/n in Col:A for each item. I then want a simple macro that will copy all of the rows with "yes" into a second sheet. Sample data with end result attached.

I did try and butcher this macro to do what I want, and whilst it does copy data across, it's not really working. Firstly as I think it is searching along a row and copy columns, whereas I need to search a column and then copy rows.

[Code] .....

Attached File : sample_data.xls

View 7 Replies View Related







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