Average If Neighboring Cell Contains Certain Value
Jun 26, 2014
I'm basically trying to create a gradebook for a class in which there are five categories of assignments, and each category is worth 20% of the final grade. I need to be able to calculate subtotals for each of the five categories as well as a final grade for the course. I have set up my workbook so that a code appears next to each grade that is entered. That code corresponds to the category as follows:
p = participation
o = organization
s = selfwork
g = OGT project
e = final exam
So I need a formula that will sum the values of any cells that have a "p" in the cell to the left, or any cells that have an "o" in the cell to the left, etc. I thought an array formula would work but apparently not if my range is made up of noncontiguous cells.
Here's how things look right now:Screen Shot 2014-06-26 at 10.21.36 PM.png
So, for example, I need a formula that will find that Kylie has earned 10 points on the OGT project (the green category).
View 9 Replies
ADVERTISEMENT
Apr 23, 2008
I have a column that the user can populate the cell from a dropdown box. I need to autopopulate the neighboring cell based on the selection from the first cell dropdown pick. To be exactly precise...picking a '1' or '3' must populate a zero in currency format. Picking a '2' must NOT autopopulate but give the user an option to type in a dollar value.
View 9 Replies
View Related
Dec 6, 2013
I have two columns, column Q and R. Column Q has Data Validation set, where you can only choose one of four options in any given cell between rows 2-250,000. When "Complete" is chosen, the cell turns green. Now when "Complete" is chosen in column Q, I need the cell next to it in Column R to auto-fill today's date. However, the date should not update to the next day. So if the cell autofills to today's date, which is 12/6/13, tomorrow, when the date changes to 12/7/13, the cell still reads 12/6/13.
View 4 Replies
View Related
Mar 11, 2014
I have a block of numbers and I need any number which is 6 units greater or less than its neighbours in the same column to show up red or highlighted. I have attempted some conditional formatting using formulas, but I think the basics of how to use this function have escaped me.
View 9 Replies
View Related
Nov 15, 2008
I have a spreadsheet that I have people fill in. A few columns have VLOOKUPS. I want to allow people to insert lines in this spreadsheet and have the formula automatically copy in the new line. It seems to already have that behavior for formatting and conditional formatting. Is there a way to also have that for formulas when inserting lines?
Name City Assigned Salesman
-----------------------------------------------------
john Mountain View (formula using VLOOKUP)
cindy Palo Alto (formula using VLOOKUP)
ronnie sunnyvale (formula using VLOOKUP)
---------------------------------------------------
Insert line between john & cindy. Formula doesn't copy.
I ask them to copy the formula but they often forget. If I can make it a little more robust,
View 11 Replies
View Related
Jul 1, 2013
Example data:
01/05/2013
150
Yes
01/06/2013
1
Yes
[code].....
Basically I'm trying to write a formula that will sum the total of the numbers from column B but only where the month equals June AND column 3 says "Yes".
So the answer would be 101, because rows 2 and 5 are the only rows of that table that meet all the criteria, and the sum of their column B cells would be 101.
I thought I was getting there with Sumproduct and Sumif but I'm now drawing a blank. There is a little extra complexity in that I'm actually pulling the month value from a set of cells elsewhere, but if someone can solve the puzzle above I hope I can do the rest on my own as it's just locations of data to pull from other worksheets really.
View 9 Replies
View Related
Feb 28, 2014
I have a spreadsheet of several thousand named items (in column B) with values associated with them in column A). The "name" field is a string of several alternative names for the item.
I have a list of ~50 items that I am trying to find the values for. Each uses one of the alternate names.
What I want is a function that will return the associated value in column A when one of my shortlist names is found.
For example, my big spreadsheet looks like:
AB
1dallas, DFW. 12345
2Atlanta, ATL, 23456
3Boston, BOS, 34567
4Chicago, CHI, 45678
5Los Angles, LA, LAX, 56789
And my list looks like
Atlanta
CHI
I want the output to look something like:
Atlanta2
CHI 4
Is the feasible? IT seems like there should be a way to do it....
View 2 Replies
View Related
Jun 14, 2013
E11 through E24 contains numbers and a few errors (#N/A) that need to persist (the errors need to show).
E10 needs to show the average of the numbers that are in E11 through E24, and just ignore the errors.
I have many columns like that - where the errors need to show and I need to show an average of the number/values that do appear, ignoring the errors.
View 14 Replies
View Related
Jul 17, 2007
what formula can i use to take the average daily excahange rate (and i have a list set up on worksheet) and make it an average weekly exchange rate? So that the formula recognizes data for each week (the weekly data is on a separate worksheet).
attached is an example of the data... trying to go from daily average to weekly average...
View 7 Replies
View Related
Dec 9, 2008
i have two columns...a and b (a w/ names, and b w/grades). then i have the table lookup with names and grades all mixed up for many rows. i want to be able to average the grades with appropriate names.
=average(vlookup(name, table, column, false))?? i don't get it to work and how can i specify the grade to average?
View 5 Replies
View Related
Feb 20, 2014
I have attached spreadsheet so it may visualize
What I want to do is enter a date in cell F2 and it will look up that value in column c and will then add up that days number and the 2 days numbers before that date in column d and average them out.
So in the example i have used 20 january 2014, the 20th ,19th and 18th of january have values of 100,40 and 10 so in cell I2 it should return the value 50 ( the average of the 3 numbers )
But this would change with new dates going in cell F2.
trial.xlsx
View 2 Replies
View Related
May 10, 2006
I need to get the average of every 6th cell in a column, excluding errors --- three times.
The first average should be every 6th cell beginning with z4, the second every 6th cell beginning with z6, and the third every 6th cell beginning with z8.
Is there an easy way to achieve these 3 averages?
View 9 Replies
View Related
Jul 29, 2009
I have an excel sheet with time in column A and scientific data in column B. I would like to get a macro that averages every 5 values/cells.
View 9 Replies
View Related
Jun 6, 2013
I am trying to average two cell references for the row component. I am unsure if INDIRECT is the correct function?
In cell A1 it displays the row number of the start of the range to average eg "49". Then in cell A2 it displays the row number of the end of the range eg. "107".
I need a way to change the row references in cell A1 and A2 easily and to change all subsequent formula.
So if I want to average the Column C, what would the formula be for the cell to display the result =average(C49:C107) but incorporating the references in A1 and A2?
View 5 Replies
View Related
Jul 30, 2009
I have an excel sheet with time in column A and scientific data in column B. I would like to get a macro that averages every 5 values/cells.
View 9 Replies
View Related
Jun 7, 2009
I have two sub-system tabs (IAS & CCTV) and one calculations page (estimate). I need G3 (estimate) to give me the total price of hours sold on a project.
Because the systems hours can be marked up differently I wrote an average formula. But I need to add an IF statement saying if there is no hours in the sub system then ignore the hour price.
if this formula doesnt take this into account and I delete H3 (CCTV tab) then the overall price of hours sold in estimate will be wrong.
I have attached the sheet.
View 10 Replies
View Related
May 9, 2013
I current have an Excel doc that I am trying to pull averages from. Every row has data that needs to be averaged but I only need every other cell. And I cannot have zeros in the average because it will skew the data. Also if the average for a row ends up being 0, I want that average to show up as 0 not #DIV/0!. From Column H to EE I need to average each row individually.
I came up with the below formula.
=IF(SUM(H1:H1:J1:J1:L1:L1)=0, "0", AVERAGEIF(H1:H1:J1:J1:L1:L1, ">0")
It works but Its not practical because I have to manually enter all of the cells that it pulls from.
View 14 Replies
View Related
Oct 29, 2009
I have a row of data starting in cell E4 that could, theoretically, go to the far right end of the spreadsheet. I need to enter a formula in cell D4 that calculates the average of every other cell in this row, starting with E4, that is E4,G4,I4,K4...
View 9 Replies
View Related
Aug 4, 2012
I would like to generate an average of Row 1 to Current Row in a column. The Average column is the column that I would like to know how to generate.
Date
Value
Average
08/04/2012
5
5
08/04/2012
10
7.5
[code]....
I got close with =AVERAGE(OFFSET($D$1,COUNT($D$1:$D2),0,COUNT($D$1:$D2))), but after a couple rows of it being correct, the average starts to fall.
Using the above:
Value
Average
Should be
7.07
7.07
7.07
7.23
7.120
7.15
[code]....
View 2 Replies
View Related
Feb 13, 2013
I am trying to find a way to average all the numbers placed in one cell with the answer in another.
So in cell A1
1, 2, 3, 2 or 1-2-3-2
In cell A2 would be 2. But the amount of numbers in A1 will vary from time to time.
View 9 Replies
View Related
Sep 29, 2008
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.
I'd like to avoid building the amort.
View 9 Replies
View Related
Oct 5, 2009
Im trying to work out a function that will calculate the average accross a 3 column array. Obviously there is but I need to make any cell's with 'Free' give a value of 0.
I need some kind of IF("Free",1) type thing, to run before the average calculation, but I dont know how to put it together to make it work, I thought about a Loop, but then how do I make sure it only goes to the next cell in the selection?
View 9 Replies
View Related
Jan 12, 2007
1. if i use an average function, and there is nothing in the cells in the range that i am choosing, how can i get a zero answer rather than a # div/0 error. I have several sheets and several columns on each sheet where average is being used, but not all of the columns contain data. However, if the average is 0, i need it to show 0 and not the error.
2. is there a way to link a cell's data to automatically name a spreadsheet?
sorry if #1 is confusing, i've tried several ideas. i'm thinking that something like "if the value of (cell)=blank, then (cell value) = 0, but i don't know how to put that into formula format.
View 5 Replies
View Related
Jan 6, 2009
I am trying to do something with some data and I am not sure if it is possible. Even if it is, I have no idea how to do it. I was wondering if you could help.
I am trying to get an average of cells that are in the same row as the last 4 cells to match a certain criteria (which happens to be a cell).
Please see attached spreadsheet for example as it is very hard to explain.
D2 = the average of the next 4 figures in column E that are in the same row as the next 4 team names from column B to match B2
For example D2 would be equal to:
AVERAGE(E29+E48+E72+E86)
For example D86 would be equal to:
AVERAGE(E105+E122+E152+E177)
If this doesnt make sense, please ask and I will endeavour to make it clearer.
Example spreadsheet:
Spreadsheet attatched in post 4.
View 9 Replies
View Related
Feb 6, 2009
I've set up a simple spreadsheet to keep track of my food expenses every month. The first column is for the date, the second is for the daily total expenses and then the next three columns are where I add the data which is then calculated into the daily total column.
I also have a total at the bottom for the entire month. Now what I want to do is I want to also have underneath the grand total, a cell which keeps track of my average daily expenses. Basically I want to divide the total expenses by the number of days which I've entered data. Now normally this would be fine but because I've applied the formula to all the cells in the expense column, it automatically lists every day as "0" rather than leaving it blank. So when it does the average calculation it's dividing my total by 30 days rather than by only the 7 days I have data for.
View 14 Replies
View Related
May 28, 2009
I was done but the formula works great except if the cell is zero or blank I don't want it to include that cell in the average. in this case it still counts.
=IF(SUM(H32>0,H67>0,H102>0,H137>0)=0,0,SUM(H32,H67,H102,H137)/SUM(H32>0,H67>0,H102>0,H137>0))
View 3 Replies
View Related
Aug 5, 2009
First off, I hope one of you will end my suffering . I have been googling this thing every which way and haven't found my answer to what seems like a simple question.
What formula will find the last cell with data in a column (in say column 'B') and average backwards 30 data points? The last cell changes constantly, but I need the last 30 averaged consistently.
View 13 Replies
View Related
Mar 10, 2014
I have 2 columns of data (col A is time, col B is a value), in a range A4:B1000 (can be less, but the biggest the range will get is to B1000). Example:
A / B
4 10:37:55 / 91
5 10:37:56 / 92
6 10:37:57 / 93
7 10:37:58 / 100
8 10:37:59 / 105
9 10:38:00 / 110
10 10:38:01 / 111
11 10:38:02 / 115
12 10:38:03 / 120
Im looking for a way in VBA to look for a time entered in cell C1 (example 10:38:00), find that in column A, then return the average of values in column B that are offset 271 - 300 rows. This is entered in D1. So in my example, 10:38:00 is in cell A9, return the average of B280:B310.
View 3 Replies
View Related
May 27, 2014
I am trying to get an average number of Networkdays where specific cell values are true. If the project Status is 'ongoing' or 'overdue' in Sheet2, what is the average Networkdays of the open projects for each project lead for Column C in Sheet1?
Sheet1
Column A
Column B
Column C
Project Lead
Count of Projects
Avg Age of Projects
John
3
[Code] ..........
View 6 Replies
View Related
Jan 23, 2007
TotHCInv.Value = WorksheetFunction. Sum(KRInv, PBLInv, CRInv, PVInv)
If i >= 34 Then CPSCtphRMA.Value = WorksheetFunction.Average("G" & (i - 30) & ":G" & i)
The first line runs properly, but the second line bugs out with the error message "Unable to get the Average property of the WorksheetFunction class". I can simply do the math, but I thought that using the worksheet function would be easier than summing and dividing. I'm curious, though, as to why I can't seem to use the Average function.
View 3 Replies
View Related