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.
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.
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.
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?
Attached you will find the spreadshhet in question. If you click on the click here button input the following info:
8.0 3508949 80 0 0 25
the sheet will auto populate all numbers. this part is working properly. MY issue is if you look at the Bad Debt number, the correct response should in cell f21 should be $636.46 because in order to hit the next level of pay, you must at least hit $3,424,082.00. I can not figure out how to get the correct formula that will put the right pay out. Basically in order to hit a certain level of payout you must hit that next number, even if you are a $1 higher you can not get the pay out. So for example if your bad debt is $3,424,083 you would be paid out at 100%, not 120%.
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
I am having issues with a min if formula, even though i enter it as an array (ctrl +shift+enter), it only returns a zero.
The formula is supposed to return the earliest date from Raw data if the name of the company matches the one from the data validation ('Company lookup'!D3).
Dates are in column D and company name in column M
I'm placing dsum on a table, and want to sum some criteria I've wrote, all I need is the sum of the 15 latest match of the event I've wrote - which needs to be Sum together , I can use "helping column" in the table, but is there is more elegant way to do this with a furmula which make dsum calculate only the latest 15 cases ?
I have a list of data which contains the destination and departure time. In a cell I would like to type in the destination name and in the two adjoining cells I need the earliest and latest departure times to be shown. Example if I enter Carlisle then the results would be 18:20 and 20:55.
see attached for the sample data. I'm looking for: Sat Score (from column F), that is from the latest/max Report Date (column A), for a Project (column B), THAT IS NOT BLANK
In other words: For each project, we want to know the score from the latest report. But sometimes the latest report doesn't have a score, so we want the score from the latest week that actually has a score. If none of the weeks have a score, return blank.
I tried searching through the forums, but I don't exactly know how to word my question!
I have a workbook with two sheets: Meetings and MasterStatus
On the both sheets I have taskID for a specific task.
On the MasterStatus sheet, I want to use an array to look up the next meeting date for each taskID (Column C), referencing the Meetings sheet (Column E) to do so.
I have a list of account balances in one column. How can I pick up only the bottom number in that column? I have 20 worksheets and want a total across all worksheets of the last number listed in a particular column but each worksheet is different because they contain a different number of rows with activity. So, if in col. C I have:
$482 $1,000 $899 $456 $231
... then I want $231 to be what is captured for that worksheet, but if the 2nd worksheet contains:
$500 $1000 $344
... then I want $344 to be what is captured for worksheet 2. Does that make sense. In the end I want to sum $231, $344.... etc.
I have a list of students that have sat a number of exams on different dates. Can I pick out from the list the last exam for each person. I can sort by id number and then by date but how do I then show the record showing the latest date for each person?
Example Mary 1/2/2012 john 2/3/2012 john 1/3/2012 mary 1/1/2012 mary 4/4/ 2012
I want to select the record showing the latest date for each person. the result would be mary 4/4/2012 John 2/3/2012
I have a spreadsheet and it shows a raw data dump of all sales transactions per product. This has been transferred via ODBC and I need some sort of query to filter out the data.
Is there any way I can write a query to only bring in the latest transaction based on the sale date per product?
I'm looking for a formula that will calculate the difference in times between specific times while working with a 24 hr clock. Please see details below:
E3 provides the start time of 4:00 H3 provides an end time of 15:30
If an employee works betwen the hours of 0:00 (midnight) to 5:59, this is considered DIFF hours and is therefore the number I am seaking. So for the data noted above, the total DIFF hours worked is 2 hours.
I have a list of rules on how to group account numbers. An example is below. I have a very long list of full account numbers (no wildcards). There are roughly 75 rules on how to group the over 40,000 accounts. I want to use the vlookup to determine what group each full account number (always 11 characters) would belong to? It seems that the vlookup isn't treating the ?'s as wildcards. I can use the full account number rules with the wildcards in the cell in the sumif function though.
So ultimately I would like to have my list of account numbers like 40000000000 and 40000000001 know that they belong in group 1 based on the rule table below.
I am working on a large data file (leasing file), that has many duplicates. The names on the file are duplicated due to the various variable costs associated with leasing. I need to remove the duplicates names based on the latest contract end date.
I included a spreadsheet that lays out what I am looking to do, basically I copied some times and speed from net. It shows up in non 24 hour format. I need to find the times and an associated speed for each row (day) directly before and after my inputted desired time. I've searched for days, tried different formulas with index,match, lookups,timevalue, time, etc and even tried using other peoples vba code without success.
how to easily pull numbers out of a column in excel. I have several sets of numbers with a total in column F. I want a macro to go in and pull the last row in each set (this is the total row) and paste them in a different column so I can have the totals only.
I have a generated list that pulls data from a different sheet. I need a formula to pull only unique values from that generated list since some values are list multiple times.
I have a generated list that pulls data from a different sheet. I need a formula to pull only unique values from that generated list since some values are list multiple times.
I have a series of rows 14000+ lines strong in an excel sheet.
The series contain caribou location reports from those caribou that have a collar attached to them.
Along with other information, each row contains three important columns related to this question. Collar Number, Date and LC (LC = Position Fix quality or Signal Strength).
I need a formula that will find the best and latest signal strength for each collar and for each day!. The formula should result in a 0 or 1. (no or yes).
There are about 30 different collars each reporting on certain days. The LC values are 1 to 7 with 7 being the strongest.
Trying to pull data from a list and if the cell above is empty then pull the data from the cell below and so on........
I have some code for it..but its just a little bit too long and I can't use it
This is what i have so far, trying to simplify it as its way to long to fit in a singel cell....i did think about breaking it down in to collums of either 8 or 6 and having it in chunks that way...but if i did that then i would still have to eventually use this forumla below as i don't really want huge gaps within the form i'm doing.