Calculate Specific Cells
Dec 29, 2008
if there is a way (without using a macro) to calculate just a specific column or selected area in a spreadsheet. It is a colossal spreadsheet and takes a few hours to calculate even just one sheet. I know you can go through it hitting F2 then enter a lot but that is getting tedious!
View 9 Replies
ADVERTISEMENT
Sep 30, 2009
How can I create a formula to add up how many cells in a column show a particular set of text? For instance; the column in my spreadsheet looks something like this:
MJR
DML
MJR
RJG
RJG
MJR
DML
I want to know how I can create a formula that will automatically tell me how many times "MJR" is listed; how many times "DML" is listed, and so on.
View 2 Replies
View Related
Oct 22, 2009
I'm working on a timetable for my boss and i'm trying figure out how to have vba detect when a specific set of cells gets an x typed into it and calculate 1 cell = 36.50 hours and input into the appropriate Sum column. The Sum Total is Column AR and i've put x's into some of the cells that will be containing them, i'm sure if i just get the basic code needed i will be able to implement it.
View 5 Replies
View Related
Dec 27, 2008
how to calculate if lets say I have two columns with headings named columna and columnb respectively - I want to calculate columna x columnb irrespective of their location on the sheet and length. They could be anywhere... C1,C2 or even C10!
View 9 Replies
View Related
May 23, 2006
A long time i have not been practising VBA so i am looking for a little refreshment. I am having a workbook with a random number of worksheet with different name that the user can define as he wants. My calculation option is set-up on automatic so each time i make a change all my formulas are updated. However i want the user to be able to disable the calculation of a specific worksheet that he would chose throught a list. Basically the calculation will remain automatic but the selected worksheet will not be updated when a change occur.
View 2 Replies
View Related
Mar 19, 2007
We use a spreadsheet to log all transactions at our front desk. I've made a column that automatically calculates the time when a transaction is input into a row. The formula is as follows:
=IF(D5="","",IF(A5="",NOW(),A5))
This morning that formula stopped working on the computer at the front desk, returning a message about a circular reference. I can open that same spreadsheet on my computer as well as others in the office and it calculates fine, but of course on the one computer on which I need it to work, it won't ;P
All computers are using Excel 97. Presumably a setting has changed on the front desk computer that's affecting this calculation.
View 4 Replies
View Related
Aug 24, 2014
If we have marks for students in some grade in all subjects, in each subject if we make the marks bounded in (50<, 50-59, 60-69,70-79,80-89 & 90-100).
How we can find the percentage for each boundary?
View 5 Replies
View Related
Jan 20, 2013
I have a form with grouped check boxes for each day of the week, and start date and end date from the Microsoft Date and Time picker control. I want to know the total days within the date range based on check boxes. For example, Tuesday and Thursday are checked off. The start date is December 1, 2012 and end date is January 31, 2013. What is the total number of Tuesdays and Thursays in that two month date range.
View 2 Replies
View Related
May 25, 2006
I have build an add-in To Calculate Specific Sheet when something change in the workbook. For this I am unselecting the "automatic calculation" option and check "Manual". Now with every change in a cell i would to call AUTO_CALCULATION_PI that is calculating only the sheet that the user have been selected.
The problem when i change a cell Workbook_SheetChange is not stiggered and nothign happen. I dont understand why? The add-in is doing the following. Create a Menu "PI Options", this open a user form where you can select the worksheet to calculate, the choices is store in hidden worksheet called "AUTO-CALCULATION-PI". When a cell is change the Macro AUTO_CALCULATION is called, and calculated the sheets that the user have selected.
View 2 Replies
View Related
Feb 6, 2008
i have a timesheet that we are trying to use. the problem is the column that says shift diff. if an employee works after 6:30pm for 1and 1/2hr, he is entitled to shift hours. shift hours is between 6m and 8am.
As long as he works after 6.30pm but works for at least one and a half hour, he will get the shift.
if work, 9am to 7:30pm, and have break between 2-3pm, should have 1.5hrs shift and 9.5hrs total
if work, 7:45pm-9:45pm, and have break between 8:30-9pm, total hrs work is 1.5 and shift hrs s/b 1.5hrs
if work 3pm to 12am and have break between 7-8pm, total hrs work is 8 and shift hrs s/b 5hrs
View 9 Replies
View Related
Feb 15, 2008
I would like to use the following code to see if the word "reservoir" shows up in any of the rows in a certain column. If it does I want to insert the formula = SUM(D7:D257)*0.1 into cell C2 and if it doesn't then I want to put a 0 into cell C2. I've tried many routes but can't get past the error if it can't find the word.
Range("B7:B257").Find(What:="Reservoir").Activate
View 4 Replies
View Related
May 1, 2008
I need to calculate the hrs between two date and time and deduct any time outwith the hrs of operation (09:00-19:00), if the date and time falls outwith these times.
I have used the formula 24*IF(A2>G2,G2+1-A2,G2-A2), where G2 IS 21/04/2008 11:45 and A2 is 20/04/2008 00:22, but can't get it right.
View 6 Replies
View Related
Nov 7, 2008
I have a protected template and unprotected source worksheets - - - what I would like to happen is for the macro to start and if the source worksheet cell B3 equals "Report Total" then stop - otherwise copy template worksheet then copy 6 specific cells from the source to paste values to specific cells on the newly created worksheet (B_ to C7, D_ to I7, E_ to C9, F_ to K9, A_ to C11, M_ to K11 and then K13=F13-30)
After that then start all over again unless the next row’s cell (B4, B5, B6, . . .) is "Report Total" then stop - - - the row count could be from one to a couple hundred.
Here is what I have so far but I know that with each copy the name will change and as it goes down the source file each row will change and I also need help with that.
Sheets("ee template").Copy After:=Sheets(3)
ActiveSheet.Unprotect
Selection.ClearContents
Range("I7").Select
Selection.ClearContents
Range("C7").Select
Sheets("source").Select
ActiveCell.Offset(0, -11).Range("A1").Select
View 9 Replies
View Related
Oct 9, 2009
Here is what i am trying to achieve. If the date 2/20/2010 is located at F53 & the cell next to it at H53 is populated with a number between 1 & 16, then i want the cell at J11 (42 rows further up) to auto populate with the number 1. When this occurs the cells beneath this, from J12 to J52 should also auto populate with the with consecutive numbers from 2 to 42. Would also like to see the cells with numbers 1 to 28, automatically format to orange & the cells containing numbers 29 to 42 automatically format to yellow. I plan to have this condition repeat several times later in the year, at dates that are to be decided. When these dates are decided i want to be able to enter a number from 1 to 16 & next to the date & all of the above automatically occurs.
View 14 Replies
View Related
May 19, 2014
I am trying to calculate the number of months in a specific year between two dates.
For example.
Start date 01/06/2012
End Date 01/02/2013
Number of months in 2012 = 6
Number of months in 2013 = 2
How can I write a formula to give me the answer of 6 & 2 from the start and finish dates?
View 10 Replies
View Related
Nov 20, 2008
Is there a way to use goal seek in VBA that won't trigger a full model calculation?
I would like to (somehow) perform goal seek, but only recalculate range("A1:B50") say on a single worksheet (where both the input value and the final calculated value is included in that range), as opposed to calculating the whole model inbetween each iteration.
Also, all dependencies between the input value and the final calculated result are contained in that range.
View 5 Replies
View Related
May 14, 2013
I need a formula to calculate hours worked between specific times. In the worksheet I have, I need to calculate the hours worked between 5am and 10pm, the start time is in C7, and the finish time in D7 the formula need to be in H7, and another formula in I7 to calculate hours worked before 5am and after 10pm .
C
D
F
H
I
Start
Finish
Total
Ordinary
20%
4:00
23:00
19:00
17
2
View 9 Replies
View Related
Mar 26, 2014
I am trying to calculate the total amount of kilos for a specific date with a given time range.
As well as the average time they have been handled with in the same specifications.
Attached is a sample sheet of the info I am working with but I cant seem to get the formulas to work.
Book1.xlsx
View 9 Replies
View Related
Jun 6, 2006
I have a code and I want to run this macro whan a specific cell change (which has sum formula) and this code also has some calculation. And I m not understanding to overcome this problem through Calculate event.
View 2 Replies
View Related
Apr 30, 2007
I'm trying to use a conditional format on a range of cells so that if there is more than 1 "A" contained in any given row, the cells containing the "A"s are highlighted (e.g. red)
I've tried:
=COUNTIF(B2:K4,"A")>1
but it doesnt work & now I'm stuck.
View 9 Replies
View Related
Aug 31, 2012
I have a macro which autofilters a range of cells.
I can count the number of visible rows by using the following code
Code:
lcountActive = Range("BC34:BC" & x).SpecialCells(xlCellTypeVisible).Count
What I would like to do is both calculate the Average value of the visible cells and the Sum as well. I have tried to adapt the code I have but my knowledge is just not good enough to do this.
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
Feb 7, 2013
I am using Excel 2010 and basically i am trying to fill a range of cell with a green color if any value was enter in a specific cells. Example: I would like to fill range: A10:c13 with a green color (regardless of the cells content in this range) if a value was entered in cell C10 or C11 or C12 or C13.
I've tried conditional formatting but unfortunately I'll have to apply formatting for every cell and for a range of over hundred cells is not efficient.
View 7 Replies
View Related
Feb 1, 2010
I'm working on a project for my company. We make plastic tanks and for quality control we want to start recording the thickness of the tanks in different areas/zones of each tank.
Attached to this message is an Excel sheet that I've been working on. From "Sheet 1", it records inputted thicknesses into WorkSheet "1098". On the top of "1098", it shows all of the recordings, and just below that are the "10 Most Recent Entries".
Right below the "10 Most Recent Entries", there are formulas to calculate the Min and Max Values. Whenever a new entry is recorded, the selected cells for the Min and Max formulas change. Is there a way to force the cells to always stay the same?
View 3 Replies
View Related
Mar 18, 2014
I have a couple of spreadsheets that has several columns each containing several hundred thousand rows of codes. To quickly analyze this data, I am trying to come up with a conditional formatting formula to highlight the respective cells when specific values occur next to each other. A particular code will show up in many cells, but the code that is the respective adjacent cell is always different. I need to know when row A contains, for example, '9928559' and row B contains '36415RT'.
View 3 Replies
View Related
Apr 8, 2014
I'm looking for a formula that will calculate the difference in times between specific times while working with a 24 hr clock. Please see details below:
E3 provides the start time of 4:00
H3 provides an end time of 15:30
If an employee works betwen the hours of 0:00 (midnight) to 5:59, this is considered DIFF hours and is therefore the number I am seaking. So for the data noted above, the total DIFF hours worked is 2 hours.
View 7 Replies
View Related
Jan 31, 2013
I have a similar question regarding coloring of empty cells between two cells with specific numbers as posted in below thread : [URL] .....
This is exactly what I want. But here I have some problem with formula.
=COUNTIF(A1:Z1,1)=1
Above formula could pick cell value 1 and color the empty cells in a row between the cells having value=1. But if I want to use the same formatting for other numbers like 2 or 3 it doesn't work.
For example in row(A1:Z1) I have A1=1, D1=1, and F1=2, K1=2, and O1=3, U1=3
I required multiple conditional formatting that could color the cells based on values first from A to D then from F to K and finally from O to U.
I'm using above formatting it works with cells having values 1 but its not working for 2, 3 or any other cells values.
I have already tried replacing 1 in above formula with 2 and 3 but it doesn't work.
View 1 Replies
View Related
Mar 12, 2014
I have sheet where percent change is calculated. All of the data isn't put in at once, so i don't want it to a calculate the percent change until both cells contain a number.
Here is the formula i am using: =IFERROR((D4-B4)/B4,"")
Right now when i fill in the first value it automatically returns a percent change of -100%, i want it to wait until both cells are filled with data.
View 5 Replies
View Related
Nov 13, 2009
I have one excel sheet with columns from A to LZ and number of rows.
Each column have only letter (one of A,B,C,D,E). This if for weekly table:
COLUMN define: Mon-Sun
ROWS define: work type (A B C or D)
For example;
COLUMNS: Su-Mo-Tu-We-Th-Fr-Sa-Su-Mo-......
ROWS: A -A - B - B - B - B - B -C - C - ......till column LZ.
Issue:
I want a formula for any row, from which, I can calculate (for that particular row) number of B's on Mo-Tu right from column A till LZ.
View 18 Replies
View Related
Jun 29, 2014
creating a macro, which can, for each name's values calculate average for non-highlighted cells in the value column.
Currently I have to manually do this for each row -- [=(B12+B14+B15+B16+B17)/5], in column S. hence I am seeking a macro approach, which would make it easier to take into account larger dataset.
I have a attached example file, with sample data, which shows row1, representing the actual columns of the data layout. AVERAGE.xlsx
The desired output I am looking for, is to be able to execute the averages in column S, for each name's value (non- highlighted cells) using a macro, if possible.
View 8 Replies
View Related