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


ADVERTISEMENT

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

Filter Dates From Oldest To Most Recent

Jul 24, 2014

I have this column, and consists of a collection of dates. I want:

1 - change the format of the dates of "03.01.2013" to "01/03/2013"
2 - arranging dates from oldest to newest and then sort them without repeating

01.03.2013

01.04.2014

01.06.2014

01.07.2014

[Code] ...........

View 7 Replies View Related

Finding Recent And Previous Dates Based On Multiple Criteria?

Apr 29, 2014

i have with noting the most recent date of a test and also the one prior to the most recent dependant on location and test type. I require most recent and previous test info to enable a comparrison to be made. All other dates are not required but need to be kept as historical data and can't be deleted.

Is there anyway i could get column E to auto populate and amend itself as more test dates and locations are added to the list?

View 1 Replies View Related

If Statement With Dates..

Oct 6, 2009

i have a invoice number column and date column and profit column for each job that they do. they may do several jobs in one day. what i want to know is how much they make total for the week. so in a separate column i want a weekending "such and such date" profit total

then i can have this for each person then i can just add up each persons week ending column to see how much i have made for this week. but i only what it to add up the numbers in a set range of dates.

for instance in the week ending 9/4/09 column it should only add profits that go from dates aug 30 to sept 4. and in weekending column 9/11/09 it should only add up profits corresponding to dates between 9/7/09 and 9/11/09

View 4 Replies View Related

Using Dates And Months In IF Statement?

Aug 10, 2014

I was wondering if this can be done we have a monthly award program so if a date was entered for that drive on this month it would = no if blank =yes but needs to reset each month?

=IF(AND('Driver'!A51:A1000)="",IF('Driver'!A51:A1000>='Driver Bonus'!A3,"YES","NO")) This brings back a #value! error

=IF(AND('Driver'!A51<=A3,'Driver'!A51>=A3),"NO","YES") this works but only for that cell i need to also recognize cells A51:A1000

=IF(MAX(INDIRECT("'"&A8&"'!A51:A1000"))<A3+1,IF(MAX(INDIRECT("'"&A8&"'!A51:A1000"))<>A3,"YES","NO")) this also works but only for 1 day

View 4 Replies View Related

IF Statement Correction Regarding Dates?

Apr 5, 2013

I have different dates in column A, let's say:

10/26/12
11/1/12
11/15/12
2/12/13

I want to say that if the date is <= 12/31/12, put "LEASED IN 12", othwerwise put "LEASED IN 13".

My formula:

=IF($A1<="12/31/12",'LEASED IN 12","LEASED IN 13")

I get only 'LEASED IN 12".

View 11 Replies View Related

IF Statement For QTRs With Dates

Feb 4, 2009

IF statement?

The error keeps stopping at the "6 for the date 6/30/2008....

View 9 Replies View Related

Comparing Dates In Two Columns Using IF AND OR Statement

Apr 14, 2014

I'm trying to determine if one date meets the criteria to be considered 'on time'. I have two columns: estimated completion date and completion date. I want to compare the completion date to the estimated completion date and if completion date is <= completion date but is NOT = 1/1/2099 then I met my date. I've tried this several different ways and problem is I cannot make it work.

When estimated completion date is 1/1/2099 'on time' should be 'no'
When estimated completion date is not 1/1/2099 but is greater than completion date 'on time' should be 'no'
When completion date is <= estimated completion date and estimated completion date is not equal to 1/1/2099 'on time' should be 'yes'

And I have a null date to deal with also but if I can satisfy the first 3 criteria I can manipulate the null values manually.

View 9 Replies View Related

Creating RAG Status Between Two Dates - IF / AND STATEMENT?

May 22, 2014

I am trying to generate a RAG status on an action log. Column K is the start date, Column L is the due/delivery date. I need a formula to bring through the following (i'll use conditional formatting to change "G" to green etc) -

show "R" if past due/delivery date
show "A" if past start date but before delivery date
show "G" if not past start date yet

This is probably really simple, but I've been trying various IF/AND statements and can get the "G" to work but not the rest for some reason. I think i may be using 'TODAY' incorrectly in my formula.

View 4 Replies View Related

If Statement Using Offset Values For Dates

May 19, 2006

I'm trying to write code so that it uses an offset value depending on criteria. In the attached book I have three coloumns, firstly the date, secondly some letters, an If statement in the third coloumn and another IF statements in the fourth coloumn. I would like a macro that calculates the number of DAYS ONLY, depending on the fourth coloumn. The way it should operate is it should is detect a 1 in the D coloumn and then calculate the difference in days from the adjacent date in coloumn A and subtract from the first time it appears in coloumn A.

For instance in the worksheet, the first 1 in coloumn D is in 'D5'. The date in 'A5' is 04/01/2005. The first time a '1' appears in coloumn C is C2 and its date in 'A2' is 01/01/2005, so 04/01/2005-01/01/2005 is 3 days. Now heres the twist, the next 1 in the D coloumn is in 'D8' and hence the date in A8 is 07/01/2005, now this time the '1' in coloumn C is in 'C7' and hence the new calculation is 07/01/2005-06/01/2005. So hence the 1 in coloumn C is always changing (ie new offset value).

View 2 Replies View Related

If Then Statement Regarding Matching Dates And Cell Totals

May 20, 2009

I have Column A with chronological dates. Some of them will be the same. If the dates are the same then the lowest row of those dates would need to add all the corresponding values in column D and print the total to column E

eg.
A1 through A3 = 2/12/2009
D1 through D3 would need to be added
E3 would display total for =d1:d3

it would then do this for each of the dates that match in Column A

View 4 Replies View Related

Multiple Conditions For If Statement For Past And Future Dates

Feb 14, 2014

I need creating a formula that combines the following if statements in cell C107:

=IF(AND(B107

View 1 Replies View Related

IF Statement - Calculate Due Dates Based On Assigned Rank

Aug 1, 2014

I am using the following formula to calculate due dates based on the rank i assign an issue.

Note: a similar formula is used for the due date of section one, but if it is not complete, i do not want this formula to kick in a determine the due date for section 2. The formula itself is working fine, but is giving a 'due date' of 1/30/1900. I was wondering if there is a way to not display anything if it has no number to calculate from.

=IF(ISNUMBER(SEARCH("S",D11)),F11+30,IF(ISNUMBER(SEARCH("B",D11)),F11+30,
IF(ISNUMBER(SEARCH("A",D11)),F11+30,IF(ISNUMBER(SEARCH("QNM",D11)),F11+30,""))))

View 4 Replies View Related

Custom Autofilter (select Case Statement, Two Dates)

Jan 14, 2007

I have a workbook with 2 sheets I want to make an autofilter by two method :

- select case statement
- two dates

View 4 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

Find Dates With Find Statement

Mar 6, 2007

I have dates in column A (Source Dates) and Column C (Target Dates). All data is formatted as Dates. I want to find which dates in column A have a matching date in column C. When using the find statement within a For Each loop I can not find a date match unless I format the target dates as General. How can I use the Find Statement using dates without formating the target dates as General?

Option Explicit

Dim SourceDate As Range
Dim TargetDate As Range

Sub FindTargetDate()
Columns("C:C").Select
Selection.NumberFormat = "General"
For Each SourceDate In Range("A1:A32")
'MsgBox SourceDate
Set TargetDate = Sheet1.Range("C1:C7").Find(SourceDate, LookIn:=xlValues)

View 7 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

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 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







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