The issue is.. I have a locked spreadsheet and one of the column has a formula in it i.e column H +column I - column J for each particular row.
wen the user inserts a new row the formula is not entered automatically to the new cell in the column which has the formula.
could someone tel me how to write a code for calculating the cell when they click on the button..
basically i have thought of having a button which the user clicks to populate the whole column. But i am not getting the syntax right..
Column E has the amount of time each day. Column G is where I want the Sum to be displayed.
I need Column G to do a =Sum(E4:E33), but if anywhere in between E4 and E33 there is a period of 5 days where it totals 0 then I want column G to re-add from the first day where there is a amount in it.
Ex: E4 to E10 totals 7 (1 per day), from E11 to E15 totals 0, from E16 to E33 totals 18 (1 per day again).
In Column G at G10 it should total 7, at G11 it should be 6, G12 5 etc until it hits G15 where it sees the 5 previous days nothing was entered so it enters a value of 0, because G15 is set to 0, G16 will start adding from E16 till E33, until somewhere down the line it sees another period of 5 days where it adds up to 0 again.
Spreadsheet tracks race times for cross country races and needs to be able to calculate improvement time in mm:ss (or zero if less than previous race).
Also,it would be nice to be able to enter times without using colons or have to reference the field as h:mm:ss. The race result will always be mm:ss and the last two digits will always be seconds, the result will never be more than 60 minutes so hours are a real bother.
How to calculate ANI in one cell? The only way I can currently find the result is to build an amortisation schedule and then divide the sum of the outstandings by the payment frequency.
Is there any way of opening a workbook via VBA that will set the calculation to xlCalculationManual BEFORE the workbook calculates anything on opening.
The purpose: I'm opening the workbook remotely from an Access document and there are quite a few formulas in the workbook that take a few seconds to calculate. I have a modeless UserForm that displays from the Workbook_Open event which I want to get displayed before all the calculations take place so the user has something pretty to look at while he/she is waiting. But it seems that the workbook performs a calculation before running the Open event code.
I want to find out how many hours, in total, relate to "consolidation 1, 2, 3; Lease Renewal 1,2 3 etc. What formula can I use. I am working on a "sumif" but it's not working out for me. Hours 1 Consolidation 4.75 3 External Sublea 3 Consolidation 2 3 Special Project 2 External Sublea 1 Lease Renewal w 1 New Lease w/o T 4 1 New Lease w/o T 1 1 External Sublea 3 Lease Renewal w 1 2 Lease Renewal w .5
i have a problem that i have been trying to get over for about a week now. i need to calculate a lease commission, with an extensive amount of variables. first i need to find the length of the total term which should be anywhere between 1 to 10 years. then on a annual basis i need to define how many months are billable in that year. which gives me to variables to account for there, which are A= initial free months, non paying B = the last month of last year may only be a half year
i think i have worked that out pretty successfully, so next i need to calculate the rent for each year period. with several variables a= the rent can be caculated : -by per month basis - by annual basis - by a per square foot basis b= next in relation to annual rent operating expenses may also be calculated in the annual rent number also by the same variables, however it may or not be calcuated into the number depending on the lease.
c. this is where i am at now, and its killing me. i need to account for rent adjustments for each year. rent adjustments can start from either the lease start date or the date that rent starts which would be after the lease start if free rent is granted. then the adjustments will continue through the end of the term and be implimented every x number of months. the value of the adjustments will either be a percentage of the first years rent usually 3-5 % or per sf, per month, or just flat rate per year. but it will escalate each year. for example year 5 is x amount of ajustment from year 4.
i am finding difficulty in finding an annual value of the original lease term in relation to this date series. expecially if the adjustment periods leave a remainder carring over to the next year, or if their are several adjustments in one given year. any help would be appriciated on this.... i know its pretty complicated, and i have rewritten this code about 30 different ways , i am at a loss right now. if you think you may want to see my file let me know and i can post it
I have a list of numbers and i want to calculate avg and stdev but i do not want "zeros" or "blanks" to enter into the calculations. I have a formula for avg but i need one for stdev.
I have a range which will change in size & in content, & I want this to be a Named Range at whatever size it is.
Reason I want to is because I want to make a Validation List with this dynamic range. I also want a Validation list which lists the content of 2 or more dynamic ranges which may or may not be on the same worksheet - is this possible?
i.e. First dynamic range: called "Milestones" at A11 Second dynamic range: called "Activities" at A25 & make a Validation list that will list content of both
I would like to replace the blue bit of this Dynamic Named Range (DNR) with an INDIRECT formula in order to modify the starting point for the DNR: =OFFSET(DATA!$C$60,0,0,20,1). Unfortunately, I can’t seem to get my INDIRECT formula to work in order to use it to replace the blue bit above: INDIRECT("'"DATA"'!&ADDRESS(MATCH('SHEET1'!AC8,DATA_Date,0)+22,3)"). The orange bit of the formula above returns a value of 60, therefore the ADDRESS formula should return $C$60, that can then feed into the INDIRECT and act as the equivalent of DATA!$C$60. But it doesn’t.
I have a question on the above but can't seem to find a solution. There are two ways that I can find for dealing with dynamic lists via data validation:-
1) Offset and match, cavet being the data must be sorted a-z 2) Have lists for each potential selection
Is there any way to get around 1 without having to do 2? E.g. Got two columns of data, unsorted, and a list from which the user can choose from. The user chooses from the list in first cell, in the second cell require the dynamic list to return all the values accordingly?
I have a dynamic table which is linked to a couple of charts. The table must remain dynamic.
I needed to add two new columns to the table, "Focus Area" and "Category". I need a drop down list in the "Category" column to be dependent on the item selected from a drop down menu in "Focus Area".
I can get the first row of the dynamic table to do this.... however; subsequent rows all lock the drop down list in the "Category" column to the same choices regardless of what is chosen in the "Focus Area" list.
Is there a way to make dynamic drop downs within a dynamic table?
My spread sheet holds data with input dates recorded. Periodically there is a requirement to remove and copy elsewhere data that is older than 365 days using the Auto Filter. I have a macro that , on first pass, selects the required dates older than 365 days copies and pastes but on the 2nd execution of the macro with a different date required it doesn’t work. Looking at the code the date is not changed. Is there a way around this problem? I am also experiencing a problem finding the next available empty cell in which to copy. I have used serial numbers for dates having first had trouble with dates in dd/mm/yyyy format.
Now this is an Expense List present in Sheet 2 and In Sheet 1 Cell F5 I would have a Dropdown where I would be Selecting the Items from Column B i.e $B$2:$B$8 I want the Msg Box to display the tentative price of each selection present in the column C...I know I can use Vlookup and Show but I want to make it user-friendly and not have to many cells occupied with formulas as the MSg Box will display the price but I still would be manually entering the Price.
I have a worksheet titled "Systems Estimate" that will dictate values on a second worksheet called "CSI Estimate". They're the same values in each cell and column, just in a different order row wise. I would like the values in each row in the A column in the "CSI Estimate" sheet to dictate columns B through W, with the values being referenced from the "Systems Estimate" sheet. I tried using an exact match with vlookup since the data isn't sorted, however it just returns the formula I enter, not a value.
The macro works, but I am trying to reference the name of "Company ABC" in cell B2 on the same sheet to be part of the file name.
I have tried using "strFileName = Sheets("Policy Level Draft").Range("B2").Value & "Policy.csv" but it just saves as Policy.csv
I was also wondering if there is something I can add to the code that will save the csv each time I run the macro (Policy.csv, Policy(1).csv,...) because right now anytime I run the macro, unless I change the strFileName it just replaces it.
Sub PolicyCSV() Dim strPath As String Dim strFileName As String
I'm looking for a formula to help me handle dynamic sums. On worksheet 'A' I have 12 columns, the 12 months of the year. The rows are filled with expenses and the last row sums up the expenses for each month. In a different worksheet I want to present man info, but dynamically.
So if the first month is the start of a project, and it's the third month now, I would like to sum up the total expenses of months 1 and 2. If it's the fourth month now, I would like to sum up months 1,2 and 3.
I'm using a cell on the man info worksheet to store the number of months gone by.
I have a spreadsheet that calculates a value for each age up to 65 on a separate row. I have parameterized the spreadsheet so that depending on the age entered by the user, any row below the age 65 calculation row is blanked out (set to "") with an if statement.
After a new age is entered I would like a line graph to compare the values. My problem is that if I select all of the possible data values (I assume none are less than 20, therefore there are 45 rows of formulas) any rows that have blank values show up in the chart. My data starts in cell A1.
I would like to come up with a macro that accomplishes the following . . .
- determines the number of the lowest row that has a number value in it (since there are formulas below this, Ctrl down does not do this correctly)
- set a named range starting from cell A1 based on x rows (calculated in the prior step) and y rows (constant)
I am trying to count the number of items in an array, but want to protect against someone inserting a row and changing the position of the first item destined for the array. The first item is in F25.
I'd like a bar chart that will only display bars for positive values. So, if a cell has 0, it won't display anything. I.E. - if i have 10 fields and only 5 of them have values greater than 0, my chart will only display 5 bars instead of 5 bars and 5 empty fileds. kind of like piezeros, but for a bar chart.
I have a sheet that has names in column A and a list of subjects in Row 1. Cells B2:BA25 have the scores acheived for each person in each subject. I was thinking of creating a customisable graph where by there would be a dropdown box that could select a persons name and this would populate a bar graph of all that persons scores.
Well I find myself going round in circles so I thought I'd just ask hopefully solve things quicker. I'm struggling with arrays in VBA, at some point I could use them but now it seems I've forgotten everything and even reading some tips on-line doesn't seem to be helping at this point.
I'd like to be able to use a dynamic 2-dimensional array to store values. I'm reading these in from a worksheet under certain conditions (depending on a value in another column) and that part works. I know I'll always have 2 columns but I don't know the amount of rows. I'm calling a Sub that does an if-test and copies the valeus into the array, then I'd like to "reDim" the array 1 row larger for the next pass.
Column1 Column2 Text1 Value1 ... Text2 Value2 ... Text3 Value3 ... To get an array like so:
Arrayindex(i,1) Arrayindex(i,2) Text1 Value1 Text2 Value2 Text3 Value3 Depending on how I make initial declarations I either end up with an "subscript out of range" or "array already dimensioned" error. So I'm apparently not getting the right syntax in the dim or redim?
Cell C3 is validated to show a list of the worksheets in my workbook.
Is it possible to set up a hyperlink in cell B2 with the text 'Go To' which will pick up the selected sheet name from C3 to enable the user to go directly to that sheet?
I have this macro named ABC to bring the name ranges to another worksheet. The name ranges are already saved in the workbook with the below name range. I used "***" so that this formular can go to the last cell that has "***" on A column and it worked untill someone typed "(xxx)" and the range now stops right before the "(xxx)"
i have a table with 4 columns: (customer name, revenue, expenses, profit) in cell A1, i can select from either of the above headings and what i wanted to do is sort the mentioned table based on the heading that's selected in A1.
for example, if i select Customer name in A1, then the table in (B2:E12) is going to be sorted by customer names (alphabetical)....or if i select Revenue in A1, then the table will be sorted by revenue values...etc.
I am making an excel program that performs a series of complex calculations then produces several charts of the output. I have the output in a table of a known lenght and width. The problem comes when attempting to create the graphs, I first delete all the old graphs and make new ones. Then I try to add the series to the graphs. I want the graph to be one column vs another column but I have only been able to get it to graph a column vs 1, 2, 3, ect.
how to set the x-axis source data for a given series.