Average Minus Most Recent Row

May 4, 2009

I have a table in a sheet where the rows of data are filled in automatically from other sheets. Each row represents a different week. The data, (lifted from from the relevant worksheet for each row) represents the no. of calls in each week.

Now, I've set up an average to be calculated from the data - it'll do this for every row as long as there is data present. (If the row's corresponding worksheet doesn't have any data the result will be "NA()" - not included in the calculation.)

However, I don't want the average to include the no. in the "most recent" row, as this is "live" data and until the week is over does not represent the data for a full week and therefore skews the average.

So I want the average to exclude the data in the most recent row with a numerical value in it and not a "NA()"

ie - column could be ......

View 12 Replies


ADVERTISEMENT

Average Last Five Numbers Minus The Low And Hi

Apr 23, 2009

=AVERAGE(INDEX(E5:IV5,LARGE(IF(E5:IV5<>"",COLUMN(E5:IV5)-COLUMN(E5)+1),5)):INDEX(E5:IV5,MATCH(9.99999999999999E+307,E5:IV5)))

I have this formula where it averages the last five numbers in a collumn, but I want to average the last 5 numbers less the max and min number.

View 14 Replies View Related

Using IF Function To Calculate Average Minus Maximum / Minimum?

May 1, 2014

I am trying to automate a process involving a Grubb's outlier test and calculating averages/stdev of a set of numbers. I have the data in one column and have calculated the average/stdev/%CV of that data. I have also added a formula to calculate Max/Min outliers of that column of data. Then there are cells with IF statements that display either "yes" (for an outlier present), or "no" (if no outlier is present). What I would like to do, if it is feasible, would be to set up formulas to recalculate the average/stdev of the column, taking into consideration either the presence or absence of outliers.

Here is what I invision(cells are for example purposes)

=IF((M9 = yes, Avg(H2:H40)-max(H2:H40)),M9 = no, avg(H2:H40))

So it would calculate the average without the outlier if the outlier "yes" was present, or just calculate the average if "no" is present.

I would also do this with a minimum outlier as well, but i can set that up if this first one is possible.

View 8 Replies View Related

Most Recent Value

Dec 9, 2009

I have 31 cells (say in A1 thru A31), representing days of the
month, that daily number values will be entered. I want to be
able to select the value in the most recent day cell, not the
most recent updated cell...
i.e. the cell in the A1:A31 range closest to the A31 cell.

For example...
Say I have values: 2,4,7,12 in A1 thru A4, I want the value
in A4, even if I just updated Day 2's cell... because A4,
or Day 4, is closer to the end of the month.

View 9 Replies View Related

Display Most Recent Non-zero Value

Apr 28, 2010

Column Q is a vlookup which looks up dates contained in column P within a range called "Query_From_Price_Database" and returns data from column 3 as indicated below:

=VLOOKUP($P4,Query_from_Price_Database,3)

What I'd like to achieve for each time a value is returned as being "0", is for the cell to display the most recent data.

E.g.The vlookup results might be:

27/04/10 15.29
26/04/10 15.55
25/04/10 14.98
24/04/10 0
23/04/10 15.13
22/04/10 0
21/04/10 0
20/04/10 0
19/04/10 15.24

I want it to be displayed thus:

27/04/10 15.29
26/04/10 15.55
25/04/10 14.98
24/04/10 15.13
23/04/10 15.13
22/04/10 15.24
21/04/10 15.24
20/04/10 15.24
19/04/10 15.24

Where there would be zeros, data is displayed from the most recent date actually containing non-zero data. Is this possible with a "not too complicated" formula?

I've tried a few methods, but they only seem to result in "formula too long" errors.

View 2 Replies View Related

Count (Sum) Most Recent Value Only

Aug 15, 2007

I am familiar with SUMPRODUCT and {SUMIF}, but I am stumped on how to create a formula that can sum (or count) the only the most recent entry for each Name. The Name field is dynamic and constantly updated with a unique reference number, so I don't want totals by Name/Type, but rather only the newest Ref for each Name by Type.

Ref__Name____Type_QTY
8____John____B____5
7____Bob____B____4
6____Dale____A____3
5____Jane____C____2
4____Bob____B____5
3____Jane____C____4
2____John____B____3
1____Bob____A____2

Should return;
Recent_Type____NOT Total
5______A______5
9______B______17
2______C______6

Hopefully this explains it all. Looking forward to any input or suggestions to keep this a simple automated process.
*added _ to space out the columns

View 7 Replies View Related

+ 0.1 Minus

Jan 20, 2010

I have part if the code here’s
PHP
Range("f" & indexI + 1).Value = Format(Strl, "00:00") 

to return value = time formats
How do I modify it to + 0.1 minus?

Sample
IF the return value = 12:00:00
Now I wanted = 12:00:01

View 9 Replies View Related

Get Date Of Most Recent Activity

Apr 11, 2014

I have one spreadsheet with a list of materials by material number. I have another with all sales activity. How can I pull into the first spreadsheet the date of the latest activity from the second spreadsheet?

View 2 Replies View Related

Formula For Most Recent Date

Dec 23, 2009

I have a workbook to keep track of names and dates of a specific action. There are 10-15 names that recur on the list. The most recent action is added to the bottom of the list. The names are in column I and the date of the action is in column J.

The problem is having to scroll through the list to find the most recent action for each person. Ideally i'd like to have a list of the names in column N and then in column O the most recent date in the list for each name.

View 2 Replies View Related

How To Compare Most Recent Data

Jan 27, 2014

I attached an example.

I am trying to figure out how I can write formulas that look for trends in the data. I will be entering more data every day. I need to look at the 5, 10, 20 most recent results for each number.

For example, I need to see how many times yes was answered for #3 in the most recent 5,10, 20 entries.

I am sure there is some simple way to do this with a control + f formula, but I don't know how to do it.

View 14 Replies View Related

List Recent Changes To Document?

Oct 22, 2007

Is there a way to list the recent changes to an excel document on the document itself?

For example, I have just 4 or 5 columns in the sheet, but out the the right on the 7th column I'll have a header that says "Recent Changes". Below that for X amount of rows, I would like it to keep a running change list something like this:

B14 was changed from '6.021' to '6.5' by username on 10/21/07 3:45 pm
A23 was changed from 'Sally' to 'Billy' by username on 10/21/07 2:30 pm

I thought this up by looking at the way the "Track Changes" functionality works on the Tools menu. That will highlight the cells in blue as they are changed and will also let someone look back through changes to let them accept or deny.

View 4 Replies View Related

IF THEN Statement For Most Recent Dates

Feb 18, 2014

I have data, which has an oil well that has had sections of its pipe perforated.

This has all happened on different days throughout the wells life.

I need an equation that says TRUE if the Perforation is the Most Recent for that well.

But I also need it to say True at different Top and Bottom Depth intervals throughout a specific well.

(for example: the last row in this data. Says TRUE even though there are more recent dates in this well.

This needs to say true because this is the most recent perforation in the top and bottom depth interval 9526 to 9536.

The other most recent perforations happened in shallower intervals, ie. 9456 to 9480.

So I need something in the equation that will say true to the most recent start date, if that top and bottom depth interval has not already been selected as true.

I need to have a column that says True IF the start date is the newest (most recent) for each individual well.

Easy enough.. But. I also need this to say True multiple times at different dates for each well.

For example below. it says true on 7/22/2001 three times and then True again on the last row on 10/14/1992.

It has to say true there because this is the most recent perforation that Top_Depth and Bottom_Depth interval.

WELLNAME
TOP_DEPTH
BOTTOM_DEPTH
START DATE
IF most recent Perf

RA-0001
9380
9395
10/14/1992
FALSE

[Code] ......

View 9 Replies View Related

Return Value :: Most Recent Date Using MAX

Apr 10, 2007

Looking at a series of rows that contain dates (in one column).

Return the value of the cell in the column next to the most recent date.

I can get the most recent date using MAX, but how do I tell Excel to return the value of the cell next to it?

View 9 Replies View Related

Extract Row By Most Recent Date

Aug 7, 2007

I have data resembling the following

Col A
Sun
Sun
Sun
Sun

Col B
12/08/2007
13/08/2007
14/08/2007
15/08/2007

Col C
A
B
C
D

Is there a formula where I can extract the entire row for the most recent date, in this case Row 4 containing Sun,15/08/2007,D would be returned.

View 9 Replies View Related

Lookup For Most Recent Date

Aug 20, 2008

I want to lookup an ID which there may be three of, but I would want the most recent date out of the three ID. I can get this to work by putting the column in ascending order but this is not very practical.

Is there any way I can do a lookup and add a date parameter to lookup the most recent?

View 9 Replies View Related

Sum Based On Most Recent 12 Months

Jan 29, 2009

I would like to sum a range of data based on the most recent 12 months.

Details:
Row E9:?9 - Contains random dates
(where "?" will change based on the user will be min 12 and max undefined)

Column C - Where I want the sum formula - to sum that corresponding rows data based on the most recent dates listed in row 9.

View 9 Replies View Related

IF Statemen T- To Finds The Most Recent X Or O

Aug 17, 2009

I'm tying to finds the most recent X or O. Then takes the price on that day and compares it to the current price and based on the difference either higher or lower puts out an X if the current price is higher and an O if the current price is lower by the Half StartData - however when i get to about 6 IF statement it freeze up and it wont give me the X or O's ...

View 9 Replies View Related

Run Formula On 20 Most Recent Entries

Mar 1, 2010

I have spreadsheet set up to calculate me and my friend's handicaps. I have set it up almost completely. The only problem is that I forgot one little detail when setting it up: handicaps only calculate the 20 most recent rounds of golf.

Rather than only storing the newest 20 rounds, I would rather add a layer to my formula to filter out older records for me.


=ROUNDDOWN(AVERAGE(OFFSET('Score Entry'!$I$2,,,VLOOKUP(COUNTA('Score Entry'!I2:$I$400),Rounds,2,TRUE)))*0.96,1)

In the "Score Entry" tab on my spreadsheet the date is in column D. Is there someway to modify this formula to filter anything beyond the previous 20 rounds?

For the sake of better communication the "Rounds" named range is a list of the number of total rounds played and the corresponding number of rounds that should be used to calculate the handicap.

View 9 Replies View Related

Sum Data For Most Recent Week

Dec 6, 2007

I need help with summing the corresponding data to the most recent 7 days.

I have the dates (dd/mm/yyyy) in row C1:AH1 and data immediately below it in C2:AH2. I believe that using some formula including SUMIF & LARGE might work but I haven't been able to figure it out myself or find examples posted in the forums here.

View 3 Replies View Related

Use Plus Minus Variables

Nov 30, 2008

Trying to work out the formulas for placing plus minus variables above and below a cell as per worksheet attached. right hand side of the page

View 2 Replies View Related

Tan To The Power Of Minus 1

Dec 10, 2008

How can i produce "tan to -1 " in excel ?

View 9 Replies View Related

Date Minus A Day

Dec 16, 2013

I use a formula that has a date in it 11/15/13 for example. Then I have a formula that calculates "days" (15), but I want to subtract one. How do I do that?

View 2 Replies View Related

Greater Than Or Less Than (Plus Or Minus)

Jul 19, 2006

Here is my formula.

=If(Sheet1!J5=$J$4,0,(Sheet1!$J$4-Sheet1!J5)*Sheet1!$J$1)

It is perfect, except it doesn't have one final step. What I need it to do
is be able to do that ONLY if it is greater than or less than by a specified
amount. So there needs to be a modification of ... Sheet!J5<> (but by 100 or
any other number that I set) $J$4,...

View 4 Replies View Related

Formula To Lookup Most Recent Date?

Jul 23, 2014

I have a list of numbers column A and a list of dates in column b, i need a formula which looks up the most recent for each of the numbers. can this be done?

View 3 Replies View Related

Continual Updates Of Most Recent Information

Aug 12, 2009

I coordinate nearly 200 volunteers for a small non profit using excel. I use excel to keep track of all volunteer information as well as for scheduling shifts. Currently I'm looking for a way to show what the most recent shift a volunteer performed was.

All of this information is kept in different tabs in the same document.

In the "Volunteer" tab you'd find all of the information for the volunteers: name, phone number, email address, number of shifts they've completed, etc.

In the "Shifts" tab you'd find the information for each shift including: Shift Date, Name of Volunteer, Location of shift, etc.

I'd like to find a way to show in the "Volunteer" tab what someones most recent shift was. The only way I've been able to think of would involve a ridiculously complicated series of =if() statements, which would be more hassle than it's worth.

View 14 Replies View Related

2007 Registry Key For Recent Files

Jan 7, 2010

I've had my Excel 2007 set up for the longest time to show the 30 most recent files when clicking on the office button. After changing it to 50 the office menu in Excel runs off the bottom of the screen and I can no longer get ot the options at the bottom to change it back. Does anyone know the registry key to modify this setting back to the 30 that allowed the full menu to be visible?

View 2 Replies View Related

Gathering Information By The Most Recent Dates

Jan 20, 2010

I have an employee summary sheet, and another sheet where data will be entered by date.

On the summary sheet I want to gather only the last 3 dates that were entered.

Attached is an example.

View 10 Replies View Related

Excel 2007 :: Most Recent Value Greater Than X

May 3, 2011

Here's an example of what my data looks like, in reality there's 1000's of rows and 100 columns...

[Code] ........

So, what I'm after is the most recent date on which a user goes over 2000. I've populated column I manually with what the value *should* be, I just can't figure out how to do this with a formula.

Using Excel 2007, have attached the sample data as an xlsx too.

View 7 Replies View Related

Delete All Rows Except Most Recent Date

Jan 26, 2009

Have a sheet with 24K rows. Column A is client name. Column B are check dates. The info is sorted by client then check date. Clients can have one to many check dates, so I client is listed as many times as there are check dates. If ten checks, then ten rows for that client. One check then one row for that client.

I only want to keep the last/most recent check date for each client, deleting all other rows for that client with check dates before the most recent. I believe I need to step through the file comparing column A, row by row, to see if I have a match for the next row in A. If no match I keep that row, because there is only one check, and move down one. If a match, then I delete the current row.

How to code this is my problem. Is it a loop?

View 6 Replies View Related

Copy Most Recent File To Another Directory

Sep 11, 2009

I've got this code that will copy data into my worksheet from the most recent .IRP file generated on my C:/ drive. Along with copying the data to my worksheet, I'd like to have a copy of the IRP file copied to a folder on my L:/Drive.

In the code section I've commented out the code that allows the data from the most recent file to be copied to my worksheet. I found code that supposedly will copy a file to a new directory. I want to combine this into my code to allow both to happen. Here's my attempt.

View 5 Replies View Related







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