Finding Earliest And Latest Dates

Jan 4, 2009

I have a workbook with two sheets.

Sheet1 contains details of all of the jobs I do.
Sheet2 is my customer list.

Customers appear only once in sheet2, but may appear mutiple times in sheet1.

In sheet1 I have customer name, lead date, job date et al.
In sheet2 I have customer name, first date, last date et al

I am trying to populate first and last date in sheet2 from the lead date and job date in sheet1.

Sheet1 has a range of 500 jobs

View 9 Replies


ADVERTISEMENT

Pull Out Earliest And Latest Dates Associated With Text String In Workbook

Feb 7, 2014

I'm trying to pull out the earliest and latest dates associated with a text string in a workbook.

Min Max dates example.xlsx

i.e. in this example, I want one column to display the earliest date associated with DU 145, and the next column to display the latest.

From what I understand, I need an array formula to do this and have written the following, which works:

=MIN(IF($A$2:$A$6=A2,$B$2:$B$6))
(confirmed with CSE) - and the same for MAX.

Where I'm struggling is that DU 145 may be entered in the workbook as DU145, DU 145 or DU-145 and I need to take all of them into account. I tried:

=MIN(IF($A$2:$A$6="du*145",$B$2:$B$6))

As this works in a COUNTIF formula in the same sheet. But this just returns a date of 00/01/1900. I'm new to array formulae & haven't really worked them out yet. Is there a way to do this? I assume it's something to do with the way I'm entering text as removing the wildcard * makes no difference.

View 4 Replies View Related

Returning Earliest And Latest Date For Unique ID?

Jun 25, 2014

I need an excel function to return the earliest and latest date for a particular/unique ID.

For example: In my sample workbook, the earliest date for all the columns with ID = 1 should return 11/1/2001 and the latest date should be 12/2/2011. If all the dates for a particular ID are the same, it should just return that date. For example, for ID = 2, all dates are 5/5/2010 so the earliest and latest dates should equal 5/5/2010. The earliest and latest dates have to be for each unique ID.

View 5 Replies View Related

Deleting Duplicate Rows Based On Earliest Or Latest Time?

Mar 19, 2014

Below is an example of an Excel sheet I'm working with: [URL]

Basically, I'm trying to delete the duplicate rows by matching ID, Date and Type. If ID, Date and Type are the same, then, I want to only keep the record with the earliest Time in case of Type = In and the latest Time in case of Type = Out.

So, for example, in the case of ID = 1, there are 3 records for In, I only want to keep the one where Time is: 8:01 as this is the earliest. The other 2 records should be deleted.

Similarly, in the case of ID 3, I want to keep the record where Time = 18:05 as this is the later time out of the 2.

Can this be achieved by Conditional Formatting or Macro or VBA?

View 1 Replies View Related

Pulling Earliest And Latest Times From A List Using Lookup / Formula?

Jul 25, 2014

I'm trying to pull the earliest and lasted times out of a list of time stamps. Say I have a column full of clock in and clock out times and wanted to find the first clock in time and the last clock out time (just an example). My lookup_value would be a Store number. I can't post it here due to legality reasons, but I have a column a store numbers that will be my lookup values and I need to find the earliest and lastest time in a list of data on another tab.

View 9 Replies View Related

Finding Earliest Date And Transaction By Name

Apr 2, 2012

I'm working through a large database on sheet 1 that has multiple transactions for each person, what i am trying to do is find the earliest date and the first amount that each person deposited money. The findings will go into a table on sheet 2

This is a dummy data of what i have: Sheet 1 - database....

View 5 Replies View Related

Retrieving Earliest Time And Latest Time?

Apr 26, 2012

I have something like the following that has a name and a time associated with it for each given name:

A23-Mar-122:27:18 AMB24-Mar-123:38:56 AMD23-Mar-123:38:44 AMA23-Mar-1210:52:01 PMB24-Mar-122:43:26 AMD27-Mar-123:05:07 AMA27-Mar-123:05:16 AM

What I am looking to find is for that that name (i.e., A) what the earliest entry is for the given day (and put in Start Time). The same for end time but to have that the latest time for that given day.

3/23/20123/24/2012Start TimeEnd TimeStart TimeEnd TimeA2:27:18 AM10:52:01 PMB2:43:26 AM3:38:56 AM

View 2 Replies View Related

Earliest Date From A Column Of Dates

Dec 10, 2008

I have a column of dates listed at the bottom of this post. I am looking to have a formula in a cell that gives me the earliest date from the column. I have tried Min() and Small() with no success. Is it perhaps the "AM" and "PM" that is throwing things off? A small example of the data:

11/21/2008 AM11/09/2008 AM11/09/2008 PM11/09/2008 PM11/10/2008 PM11/11/2008 AM11/11/2008 AM
and it should return 11/09/2008. Thanks in advance any and all.
Ed

View 9 Replies View Related

Lookup For Succeeding Dates After Earliest Date

Dec 8, 2013

On the attached sample file, I used this array formula to lookup fo the

"First purchase date" - {=MIN(IF((Sheet2!A:A=Sheet1!A2),Sheet2!B:B))}

However, for the "Second purchase" and "Third purchase", i'm stuck and can't think on how to return the dates.

View 3 Replies View Related

Pick The Earliest Date From A Selection Of Dates

Jan 24, 2007

There is a speadsheet at work with a column which has a range of dates (from 18/05/2003 - date) which information gets drawn from every Friday. The information needed from the column is pretty simple but lengthy to expalin. For example...

[url]

As you can the dates are in no order...and need to stay that way. The information needed every week is shown here...

[url]

I have got the formula for the number of enteries between each date but strugling with the earliest date within the dates. I can do it manually by auto filtering the column and looking for the date closest to the earliest date but this is long.

The dates change on a weekly basis...just to throw a spanner in the works.

View 9 Replies View Related

Finding The Newest / Latest Date In Each Record

Aug 26, 2009

I have a table that contains names and dates. I need to find the most recent / latest date in each record. For example:

Names Dates
A 01/02/09
A 05/25/09
B 06/09/09
B 07/30/09
B 01/02/09
C 03/09/09
C 02/28/09
D 12/12/09

The results should be:
A 05/25/09
B 07/30/09
C 03/09/09
D 12/12/09

View 4 Replies View Related

Finding Difference Between Latest And Previous Value Excluding Blanks

Dec 4, 2013

I need a spreadsheet to record the number of calls taken by my staff YTD, and have it laid out as follows:

Column A Column B Column C

1 Date Calls Taken Increase
2 01/01 10
3 02/01 13 3
4 03/01 19 6
-19
etc.

The "Increase" is a simple =B4-B3 etc. But, there is a problem...

Say for example a member of staff is ill one day and therefore doesn't take any calls, I end up with a 'blank' cell in column 'B'...

Column A Column B Column C

1 Date Calls Taken Increase
2 01/01 10
3 02/01 13 3
4 03/01 19 6
5 04/01 -19
6 05/01 25 25

My problem is the increase in calls from 03/01 to 05/01 YTD ISN'T 25, it's 6.

Is there a formulae I can use that works out the difference between the latest number of calls taken and the last number of calls taken (excluding the 'blank' cells)?

View 1 Replies View Related

Finding Latest Date In A Range Dependent On Record Variable

Sep 4, 2013

I have this table as my simple little database and I have to extract some info from it and keep track of dates and deadlines...

A
B
C
D
E
F
G
H

[Code]...

I have to get the following data, I need to lookup the last visit date out of all dates associated with a specific name in column "A".

This requires that I test an unsorted table for a value in column "A", i.e. "test2". Then determine which record has the latest date.

In other words, If I test for the value "test2" in column "A", I find I have 2 records, with dates ranged across "D4:F4 and D7:F7".

I need to return the latest date found in those ranges...

The purpose here is to write a function that will find a range of dates associated with a name in an unsorted table, from that range find the latest date, then add 90 days to that date and display the results....

I have been trying to employ a form of, =VLOOKUP(E3,$B$3:$D$11,MATCH($F$1,$B$1:$D$1,0),FALSE) and =INDEX(Table_Array,MATCH(Lookup_Value,Lookup_Array,0),Col_Index_Num) combined with "IF" functions, but to be totally honest I am COMPLETELY lost here....


View 9 Replies View Related

Sort Latest Dates In Lot Of Data?

Mar 4, 2014

I have a table as below, and I would like to keep only the latest date for each EMP_NO. For example:

001VICE PRESIDENT A062004-01-01
031SENIOR VICE PRESIDENTA042004-01-01
...
....
....

=======================================
[EMP_NO JOB_TITLE DEPTCHANGE_DATE
014 ASSISTANT VICE PRESIDENT A01 2004-01-01
001 MANAGER A062000-03-01
001 MANAGER A062001-06-01
001 VICE PRESIDENT A062004-01-01
076 VICE PRESIDENT A022003-04-23
013 DIRECTOR OF MARKETING A01 2000-06-19
031 FIRST VICE PRESIDENT A042002-01-01
031 FIRST VICE PRESIDENT A042003-01-01
031 SENIOR VICE PRESIDENT A042004-01-01
=======================================

View 5 Replies View Related

Sort Latest Data Descending For Dates

Oct 4, 2011

Based on the table below, I need two tasks.

1. Sort out the data descending for dates
2. Have a way so that I can only retrieve the latest information.

Meaning if I ask for Pen, I should only get a value of X

Similarly for XYZ, I should only get a value of N

Date A B Types
Value 5 Oct Pen X 5 Oct Pencil Y 5 Oct Pencil H 4 Oct Glue
Q 1 Oct
Pen N 27 Sep
Glue T 2 Sep
XYZ N 2 Sep
XYZ X

View 4 Replies View Related

Automatically Select Most Latest File Name From Similar Names Ending With Dates

May 25, 2014

I need to use the VLOOKUP feature from the most latest files, I am using VLOOKUP in VBA code which is working fine, however the problem is that the files from where I do VLOOKUP are added randomly in a week.

Ex:

There are 2 Files, 1st File where the data would be looked up from the 2nd File, Now the 2nd File has names like this "Offline Data as on 10th May 14", "Offline Data as on 13th May 14", "Offline Data as on 23rd May 14", etc.

Now these files are send by another department, and each time the most recent data has to be searched from these files.. All of these files have to be maintained separately for record purposes.

Hence in the VLOOKUP, Lookup file keeps on changing...so is it possible to make a code in such a way that the code picks up the most recent file for reference, from the above example we would need to pull the data from the most latest file which is "Offline Data as on 23rd May 14" , if any other file is added in that folder more recent than the one mentioned than the code should automatically link it to that file.

I have managed to codify the lookup but due to this filenames being changed always I have to do this manually..as this has to be done at several columns in several sheets its extremely time-consuming.

So, logic code to pick the most recent date which is embedded in the filename...

View 12 Replies View Related

Finding Months Between Two Dates?

Dec 23, 2013

finding a formula to calculate the number of months between two dates. I've attached an Excel spreadsheet with sample data. Some are in the future, and some are in the past.

Excel Help.xlsx

View 9 Replies View Related

Finding Dates In With VBA In Excel

Sep 15, 2008

I was wondering is there a way to find all the dates in column A and if they are two or less days then the system date then change the font to bold?

View 10 Replies View Related

Finding Data Between Two Given Dates

Oct 10, 2011

I have to detect all staff members with the passport expiration dates between two given dates, i.e.

A 12/4/2012
B 5/3/2012
C 7/3/2012
D 6/3/2012
E 9/12/2012
F 12/11/2012
G 11/16/2012
H 10/12/2012
etc

So, I need to have excel detect all staff members with the expiration dates between let's say 9/1/2012 and 12/31/2012.

View 3 Replies View Related

Finding Data Between Two Dates

Jul 22, 2009

I have a problem on matching up two sets of data. One set has a start date/time, and an end date/time. The second set has a single date/time.

Set 1:
Process, Start Date/Time (dd/mm/tt hh:mm) and end Date/Time
e.g
Process 1, 01/01/2009 12:45, 01/01/2009 12:56
Process 2, 24/01/2009 13:45, 24/01/2009 14:02
Process 3, 24/01/2009 14:38, 24/01/2009 14:43
Process 1, 01/02/2009 12:55, 01/02/2009 12:56
Process 2, 08/02/2009 12:35, 08/02/2009 15:21

Set 2:
Event, Date/Time
e.g.
Event 1, 01/01/2009 12:55..................

View 9 Replies View Related

Finding Dates Without Prompt

Feb 2, 2007

I have an excel sheet which contains date in a cell .I need to find the date in sheet and keep it in a variable. I came across this code which finds dates but it prompts the user to enter a value and then searches.But i need the macro to run automatically and find any date present in the sheet without any prompt for the user.

Sub FindDate()
Dim strdate As String
Dim rCell As Range
Dim lReply As Long
strdate = Application.InputBox(Prompt:="Enter a Date to Locate on This Worksheet", _
Title:="DATE FIND", Default:=Format(Date, "Short Date"), Type:=1)
If strdate = "False" Then Exit Sub
strdate = Format(strdate, "Short Date")
On Error Resume Next
Set rCell = Cells.Find(What:=CDate(strdate), After:=Range("A1"), LookIn:=xlFormulas _
, LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False)
On Error Goto 0
If rCell Is Nothing Then
lReply = MsgBox("Date cannot be found. Try Again", vbYesNo)
If lReply = vbYes Then Run "FindDate":
End If
End Sub

View 3 Replies View Related

Finding The Difference Between Two Dates And Times?

Feb 14, 2014

I am having difficulty finding the difference between two times and dates in Excel. I have researched this on Google and tried several formulas but none have worked for me. The format the data is currently in can be seen below:

A1: 1/3/2014 11:00:02.230 B1: 2/7/2014 08:42:37.637
A2: 2/12/2014 07:51:58.663 B2: 2/13/2014 05:36:31.893

(Note all times are military time format)

I want to display the difference in C1 in a format along the lines of "dd hh:mm". The data for seconds and fractions of a second is included in the source data but is not needed in the final results.

If the date and time falls on the same day, I have no trouble doing a simple "B3-A3" to determine the answer. For example:

A3: 2/5/2014 09:56:06.273 B3: 2/5/2014 10:39:51.34

Gives me an answer of: 0:43

Trying to do the same for A1 and B1 gives me this: "03 21:42" when I format it to "dd hh:mm".

Is there a formula that would give me the correct answer in both of these cases?

View 8 Replies View Related

Finding Average Age From List Of Dates?

Jul 20, 2013

Finding an average age from a list of dates. This is just a small sample:

7/9/2013
7/10/2013
7/10/2013
7/10/2013
7/11/2013
7/11/2013
7/14/2013
7/14/2013
7/19/2013
7/19/2013

I tried using =AVERAGE(DAY(A1:A10)) CTRL + SHIFT + ENTER, but that just doesn't seem correct.

View 9 Replies View Related

How To Exclude Sundays And Other Holidays While Finding Difference Between Dates

Jul 25, 2014

find the difference between 2 dates in excel "date 1 - date 2"..... but I'm not quite sure as to how one would do it while excluding holidays!

View 8 Replies View Related

Finding All Dates In A Column That Are In The Range Today To A Week From Now

Sep 21, 2008

Im trying to search a column (A), that has a list of dates (not in order), for the row in which the dates are equal to or greater than today and less than or equal to a week from today. I then want the information contained in the rows with these dates to be transferred to another sheet and ordered by date.

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

VBA - Finding And Counting Unique Dates And Days Of Week Within Date Range

Feb 11, 2013

Within a user entered range of two dates, I would like to identify the individual calendar date(s) and count the number of Mondays which fall within the specified date range.I will eventually be using the same "Monday" code to find the same data for every day of the week within the dates ranges, but I figured I'd start with Mondays and build from there.

For Example: Date range 1/1/2013 - 1/15/2013 (date ranges could potentially encompass a full business quarter) Within the range, list each of the dates as dates. (used for comparative counting purposes elsewhere in the document)Count the number of Mons, Tues, Weds, Thurs, Fris, and Sats within the date range.Based on the example date ranges above; Mons = 2, Tues through Sats = 3 each.

View 2 Replies View Related

Find Out The Earliest Date

Feb 25, 2009

I have two columns in a table; Plan and Date.

Plan Date
A 01/02/03
B 12/08/05
C 02/04/06
C 06/04/07
C 06/04/07

Now I want the third column, also a date, so that it returns the earliest date for the repeating plan type.

Plan Date New Date
A 01/02/03 01/02/03
B 12/08/05 12/08/05
C 02/04/06 02/04/06
C 06/04/07 02/04/06
C 06/04/07 02/04/06

View 14 Replies View Related

Select The Earliest Date

Mar 14, 2008

a formula to pick a first and last date from two lists of dates.

I have attached a spreadsheet to show the exact problem.

View 14 Replies View Related

Find The Earliest Result For The Same Period

Jan 14, 2014

Basically, what I want is to find the earliest EPSI1MN and its associated EPSI1YR and EPSI1NE, within the same period of EPSI1YR and then store the results in a separate sheet. This process is to be repeated for 12 years of data, covering more than 4000 companies.

View 3 Replies View Related







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