is it possible, in a function, to do something like this?
Lets say I'm in cell N7, and here's its formula:
IF (N6=$A$13,(A+1)$13,0)
-if the cell before it (N6) is equal to the value of $A$13, then I want N7 to equal the value of B13. If N6 is not equal to $A$13, then place a 0 in cell N7.
basically, I would like to tell my function to move to the next column if it meets a condition in an "IF" statement. Such as, go from column A to Column B given a certain condition. Otherwise, stay in column A until that condition is met.
I have a cell (G11) whose format is [h]:mm to store hours worked in a week. I need to use that in a VBA function. If I query G11.value I get a non-integer number (I DO know that Excel stores time internall like that). How can I get in a VBA procedure exactly what is see in the cell..e.g if someone worked 35:15 hours, I want to be able to get 35:15 in the procedure. I need to strip it from there to work out payment, eg (hourly rate * 35) + (hourly rate * (15/60)/100).
I have tried using format but it does not like the "[h].mm" argument.
I'm trying to put a simple spreadsheet together that will help my son practice his arithmetic for primary school.
What I have put together is something which will allow him to change say his multiplication tables fairly easily by changing one number.
Conditional formatting shows green if correct and red if wrong - all very easy.
However I think it would be good to show the selected problem in a top down layout so he can visually see what he is trying to do rather than read across the page.
4 x 2 == 8
rather than 4 x 2 = 8
What I would like to do is change this displayed problem when selects the answer cell he is working on.
I will attach what I have done so far with a display example on the multiplication tab.
Is it possible to create a formula that would give the sum of cells that are in arithmetic progression in excel?
Example: Let's first choose 4 cells that are in arithmetic progression, B14 , B20 , B26 and B32 for instance(the common difference here is 6). So what I want to do is: I want to type a formula in another cell, lets suppose C5, that will automatically give me the sum of the values of B14,B20,B26 and B32. I am aware that I can just type on C5 =B14+B20+B26+B32 but and if I wanted the sum of 90 cells? Wouldn't it be too much work to type all the cells? Does Anyone know a formula for it?
I have a timesheet in excel which details the hours worked per person. It is worked out by have time started in one cell, and time finished in the next cell. (24 hour clock).
The timesheet is for a night club, so people start late, and finish early. Therfore, in the total column I have the following formula...
Time arithmetic, I have two cells representing a time range.
The first one (say: X1) is formatted using the custom format [h]:mm and contains a certain number of hours and minutes. It gets its value by summing up other cells in the same format. A typical entry could be 98:35 to represent a duration 98 hours and 35 minutes.
The second cell (say: X2) is formatted as a number with 4 decimal places after the comma, and similarily gets its value by summing up other cells in the same format. It also represents a time duration as a number of hours. A typical entry could be 202.7500 to represent a duration of 202 hours and 45 minutes (because 0.75 of an hour is 45 minutes).
I would like to calculate the hour difference between these cells, and display it as hours and minutes. In the example given, the result should be negative, i.e. -104:10.
My first approach was to use the formula X1-X2 and format the result as [h]:mm, but this gives me a #VALUE! error.
Can I use dates as argument in Boolean arithmetic? I have a list of name with their date of birth and I would like to tell who is between 18 and 25. It's easy enough with number but with dates? Excel 2007
I'm trying to come up with a MapsCo grid to "overlay" geoLoc data. Given the coordinates of a single box within a MapsCo page, I'll can figure out the others once I know how to "from this point, add .5 miles due North and mark another point; from that point, add .5 miles due East and record the next point; etc".
I've been searching the forums for this problem but I can't seem to find any answers. Anyway, this is the problem. See screenshot.
I want to compare A1 for the values in column B, then return the corresponding cell (column C) in column D. e.g. D1 = 2, D2 = 1, D3 = 4, D4 = 5 and D5 = 3.
search column "E" for a specific text value (let's say "it"). When found, copy the value in column "A" for the corresponding row where "it" was found to another cell "F2". When copying to cell "F2", if a value already exists in cell "F2", then no nothing else copy the value. If no "it" was found in the column, do nothing. I will continue to search, but since I am new to VBA it takes me a bit to find what I specifically need.
Please see the attached sheet. I have columns B through a lot (B through O in my oversimplified example). In every 7th row in each of these columns there is either a 1 or a blank/zero. I need to multiply that 7th number by the Quantity in column A, to achieve a total (ie the sum of each result of 7th cell*quantity) for each column in the bottom row, labeled "Totals".
In the actual version of my sheet, there are far too many rows to select everything manually. I've been fiddling with combinations of COUNTIF/COUNTA and OFFSET, but I haven't come up with a way to check for the 1 in every 7th row, THEN multiply that 1 by the quantity in column A, THEN add up the results for each column. As you can see, there are 1's elsewhere in the columns that are irrelevant to this particular calculation, so something like LOOKUP would also have to look in every 7th cell and couldn't just look at the column as a whole.
If you can't provide an immediate solution, but can at least point me to a resource that would allow me to devise a way to isolate every 7th row (THAT part is the sticking point), I'll surely post the solution to my own thread with updated keywords if I need it.
I've a worksheet that is 3750 rows of cells from A to DT and contains only numbers with the exception of a header row. The rows are in groups, primarily 4 rows, although there are exceptions - these rows are separated by blank rows. Small example as follows.
I have been trying to conditionally format each group of rows and each column and color the cell in each column of four (or less) numbers in each group that represents the maximum number. It was easy enough to come up with the conditional formatting BUT it will take forever to do this manually. I've been told to use a macro but I know nothing of programming. Has anyone seen or heard of a macro that might already be written to perform this onerous task.
I am looking for a Macro that will search a column for blank cells, and when one is found will add text to the same row in another column. For example: The below is a spreadsheet. I am trying to find something that will search through column "C" in this case and add text (of my choice) to Column "A" if the cell is Blank. So Since cell C1 is Blank then Type "ERROR" is cell A1.
A B C D E 1 X X X X 2 X X X X 3 X X X X X 4 X X X X 5 X X X X
I was wondering, is there a function that would take, lets say, every 4th cell value from a column and create another column consisting of every 4th number ?
I've been trying to solve with a 2 column drop down. What I am hoping to do is use two columns to aid the user in selecting the correct entry. So the first column will be a number and the second column would contain what the number means
If: Col1 | Col2 001 | Horse 002 | Cow 003 | Dog
Both columns show when the list is selected, but when the user selects 003 | Dog, the cell would be populated with only the 003.
I have a spreadsheet with rows of data. I need a formula that will return the column number of the last column in a row where there is a value >0.
Let's say that cells A1:F1 contain values. Some have values of 0 while others have values >0. I need a formula in cell G1 that will tell me the column number of the last value >0.
A B C D E F 0 2 5 0 6 0
So the formula in G1 would return a value of 5, which corresponds to column E.
I have this code that I have been using fine until today when it just stop working for me... It's a simple copy and paste using VBA Code. The code finds the last row in Column A and copies the cell to L1. Below you will find the code I'm using and the line in yellow is where I'm getting the error.
This codes runs as soon as the worksheet opens and it has worked for over a year. I'm using MS Excel 2007. Please let me know what you guys think I have tried pretty much everything I can think of but i dont really know what i'm doing when it comes to VBA.
I am trying to have some automation to my WS and what I want to do, is if a certain column (column 104) is changed, it will fill out that column with the data entered as long as the account is the same (column 5). Here is the code I tried, but realized very quickly, it puts me into a loop. This is being called by a change worksheet fuction
If Target.Column = 104 Then If IsEmpty(Target) Then Else testacct = Cells(Target.Row, 5) temptest = testacct s_TempSwitch = Target.Value Testoffset = 0 Do While temptest = testacct temptest = Cells(Target.Row + Testoffset, 5) Cells(Target.Row + Testoffset, 104).Value = s_TempSwitch Testoffset = Testoffset + 1 Loop End If End If