Analyzing Differences In Date And Time Data Presented In Two Columns?

Apr 24, 2014

I am wondering if there is way to analayse date and time data in a way that would allow me to look at time differences.

I have two columns of data, one has the date and time an entry was made onto a client database, the other shows the date and time an amendment or deletion was made.

What I would like is a formula that shows the time period difference between the two entries.

So for example if one column shows 14/02/2014 14:26 and the other shows 14/02/2014 14:28 it would show 1 (minute) as the result.

I have over 1000 entries to look at and manually it is taking a looooooooong time!

View 5 Replies


ADVERTISEMENT

Web Query: Compare Columns & Date Time Stamp Differences

Oct 10, 2007

I have two identical web query's on the same sheet. One from column A to column I and the other one from column K to column S, and both have 404 rows. The one on the left (from column A to I) autorefreshes every 60 minutes and the one on the right (from column K to S) autorefreshes every 4 minutes. I want to subtract the numbers in column Q from column G and the ones in column R from column H, and in both cases if the result is bigger than 0 to place a timestamp in column Y(for Q-G), and in column Z (for R-H). I tried with NOW formula, but the timestamp changed every time the web query from the right autorefreshed, no matter of the result. I guess that I have to use VBA codes...but I'm not good at that .

View 9 Replies View Related

Calculate Date Differences: Time In & Time Out

Aug 11, 2006

I'm trying to devise a formula to produce "days in inventory" based on the following data:

Date In
Date Out (which may be blank if cargo still here)
Todays Date
Days in Whse (which is the formula I can't figure out!)

It needs to work like this, date out - date in, unless date out is null. If date out is null, the result should be calculated based off of todays date - date in.

View 3 Replies View Related

Calculating Date AND Time Differences

Mar 21, 2006

Within 4 columns, I have a series of:
Start Dates / Start Times / End Dates / End Times
I need to create a formula which will give me the sum total of the difference between the data sets.

For example, the time difference between 8am on the 20th March and 1pm on the 21st March is 29 hours OR 1 day and 5 hours.
I need a formula which will calculate this for me.

View 11 Replies View Related

Date And Time Differences With Blank Cells And Monthly Totals?

Jan 30, 2014

see the attached workbook with two different sheets (same data) using different formulas. Each has problems (red text) preventing me from moving forward.

I need to calculate time in level 1, time in level 2 and total time for each row and then be able to sum for the month. Unfortunately, sometimes there is missing data, but I still need to calculate everything possible using a consistent formula that can be applied to the column/row universally.

View 3 Replies View Related

Formatting Date: Presented In The Format 20091012

Nov 4, 2009

I am generating a report from an accounting software every month and what I get is an excel spreadsheet, and one of the columns is a Date. The problem is that the date is presented in the format 20091012 and excel does not recognize that as a data. What I need is a formula or VBA code to transfer 20091012 into YY-MM-DD format.

View 2 Replies View Related

Analyzing Months Of Data

Jun 3, 2007

I have a spreadsheet for a stock - HOT TOPIC (ticker: HOTT) and I have the daily closing prices for several years going back. If I wanted to create a table that showed which months were the worst performing months -- when it lost the most money -- how do I set that up? I am particularly focusing on June/July to see if those are the worst performing months for this stock.

Looking back say 3 years (so 2004, 2005, 2006). (Maybe year-to- date 2007 too).

I colored the cells that contain the summer months june/july/august...but i am guessing its just june/july that has the worst performance... How do I set this up?

View 9 Replies View Related

Analyzing Survey Data In Excel

Apr 6, 2010

After survey questions and responses are in excel, how do you analyze this data using a correlation matrix and regression analysis for reporting or testing hypotheses?

View 3 Replies View Related

Merge Date And Time Columns Without Loosing Time?

Nov 25, 2006

I would like to merge a colum with a date and a column with a time into one to show DD/MM/YYYY HH:MM

I have tried merge cells and it takes out the time and leaves the date only.

View 7 Replies View Related

Convert Imported Date / Time Data To Date / Time Format?

Jan 2, 2013

I have loaded a .csv file in which the first column contains date/times, e.g. 01/12/2012 00:00. How do I now tell Excel (2010) that this is in fact a date/time format? If I select one or more of the cells, click on the Number dialog box launcher and try to pick a suitable format tghe cells resolutely refuse to budge from being text (i.e. left-justified, still allows me to edit the 'seconds' component to a number > 60). Also which data type should I be using? The only one that appears to have a full date/time format listed is Custom (not Date or Time).

View 4 Replies View Related

Calculate Differences At Set Time

Jun 3, 2007

I have data changes regularly (Say like tank level and we wil asume that at time 2:00 AM is the base , no matter what is the value) and I want to recored the that change every two minutes along with the time as list.
(i.e. if there is no change nothing will be recorded)

View 9 Replies View Related

Average Of Time Differences

Aug 4, 2007

I need get an average call time. I have column C that is the time call started and column D is time call ended. What would I need to get the average call time for the entire sheet? I'll attach a copy of my spreadsheet for you to look at.

View 4 Replies View Related

List Differences Between Columns

Aug 19, 2008

Finding the differences in letters (symbols) between 2 columns eg

column 1 column 2 column 3 should show

bidu aapl aapl
ldk bidu ldk
spwr rimm spwr
rimm

View 8 Replies View Related

Searching For Differences Between Columns

Jun 2, 2007

I've got a spreadsheet which lists reference numbers and a value of each one on for two different weeks which looks like this (please ignore the ....'s - I was trying to illustrate the colums clearly but the spaces seem to get removed when I post this)

ref(week 1):...........Value (week 1):......ref (week 2):....Value (week 2):
123456...................£100.23...............123456.............£100.23
113456...................£123.45...............147258.............£75.32
147258...................£74.25.................978645.............£1000.02

What I want to do is compare the value for week 1 and week 2 for each reference number. The problem is that not all the reference numbers for week 1 will be in week 2, and not all the reference numbers in week 2 will have appeared in week 1. I would like to know if there's a way that excel can identify a specific reference number, search for the values for this in week one and week two, and display any differences between these, (e.g. on the above spreadsheet I would like to identify that ref 123456 appears in both weeks and that the balance is the same, reference 147258 appears in both but the value is different, and that reference 113456 & reference 978645 do not appear in both weeks).

View 3 Replies View Related

VBA For Compare Two Columns And Show Differences In Another

Jul 16, 2008

I saw a great code which compared the values in two columns A and B, data such as A123 and then shows, in another column ie C , things in A and not in B and in another column ie D things in B and not in A.

View 9 Replies View Related

Compare Columns & List Differences

Dec 26, 2006

I have included a small example file. What I would like to do is compare column A - Code on -CORP REC - on first sheet, with column A -code -SUPR REC on the second sheet. Then compare the differences and insert them into the third worksheet - discrepancy -Column A- Code and Column B Name.

Also is it possible to convert all the uppercase names on sheet one to lowercase as I would like the discrepancy sheet to names to be in lower case.

If other threads list exactly this I apologize. I am not really good at using others for adaption. but I can try if you want to direct me

View 5 Replies View Related

Compare 2 Columns & Show Differences

Aug 21, 2007

So I have two worksheets: W1 and W2.

1. W1 has data in Column A, while W2 has none in that column (except for the header row of course).
2. W1 has rows that W2 does not have, and vice-versa.

I need code that will compare three columns in these two sheets. If the data in these three columns for a particular row match between the two worksheets, then for that row, I need the macro to copy the column A cell in W1 to the corresponding column A cell in W2. Finally, I would like an 'x' be placed into a W1 column if a match was found for that row.

The two sheets do not have the same number of rows, but the data being compared in the three columns should combine to form a unique row match between the two worksheets.

View 3 Replies View Related

Excel 2010 :: Insert Date And Time In Column Upon Data Change For First Time Only

May 3, 2013

I am looking for a macros VBA where a user insert or update a data the date and time should be insert in column I and save the workbook.

Note: If the column I already have the date and time inserted before then it should give message record already have date and time.

I am using office 2010.

View 9 Replies View Related

Split The Date And Time Into Two Separate Columns?

Aug 20, 2014

After I imported this data, the date and time is in the same column in the format of "mm/dd/yyyy hh:mm:ss" military time. How do I write a VBA code to split up the date and time into two separate columns. One column would only have "mm/dd/yyyy" while the other only have "hh:mm:ss" in military time.

Eventually, I need to extract information from the data by looking for a specific time. I would also plot time vs something.

I don't know if treating it as a string would work, because it would just become a text rather than a time, right?

View 10 Replies View Related

Multiple Totals Based On Information Presented

Jan 9, 2014

Based on the photo below i am looking to sum and multiple totals based on information presented.

I am looking to have the Total items calculated based on either the size run value(which in this case is 111, or 121, or 123,or 222 etc, all based on clothing sizes 1-s, 1-m,1-l) or calculated based on the Total from the sum of all the sizes (xs,s,m,l) which in this case is 9. and if that was not enough, then have the Total Items multiple based on the No of Packs, which in this case is 6.

In this example i have managed to get the formula to multiple 1 size run (111 = 3) multiplied by the number of packs (6) to get 18, (Size Run, is a drop down list from a reference page

I guess i need to know if there is an AND or OR function that can be combined with the SUM or SUMIF function.

Excel formula.jpg

View 2 Replies View Related

Speed Improvement - Macro Extract Higher/lower Values And Note Time Differences

Jul 8, 2009

I have a macro that needs a major improvement in performance. I have a Quad Core 2.67GHz single processor computer and with the current logic it calculates 20 values per minute. I have data sets that can be up to 400,000 data points, which means it will take 333 hours. The attached Sample file has over 9000 point. For this data set it takes 7.5 hours.

The core logic of the macro is to extract what I call “Break Point” into column M and “Time Difference” between the Break Points to column O.

I got the code from this forum (thank you DonkeyOte) and made some modifications. The modified logic does the following:

1) The user inputs the starting cell. In the Sample I use G200.

2) From cell defined in button, It moves down one cell in that column and compares that value to the original cell.

If the value is greater than original cell then there are 2 possible outcomes:

a) move down 1 cell in column and if that value is less than original cell, then extract that value and copy that value to the column M (Break Point value) and copy the Time Difference Value to column O. “Time Difference” is calculated as the difference between the 2 point breaks in Column A. In this case I’ve hardcoded 0.003472222 to get 5 minutes which matches up with each incremental time in column A, but I would like the Macro to automatically calculate that by the difference between Column A values.
b) move down 1 cell in column and if that value is greater than original cell, then move down again, until find lesser value than original cell. Once we find value less than original cell, extract value and copy value to column M and copy the Time Difference Value to column O.

Once lesser value has been copied to new cell, logic is now:
a) move down 1 cell in column and if that value is greater than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O.
b) move down 1 cell in column and if that value is less than original cell, then move up again, until find greater value than original cell. Once we find value greater than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

At any point in the process if we find a value equal to the starting cell, we ignore it and the logic continues. The logic continues flip flopping like this to the last value of column G.

OR
Here's the logic now in reverse I need:

If after moving down 1 cell of original cell, the value is less than original cell then logic has the following 2 outcomes:

a) move down 1 cell in column and if that value is greater than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O..
b) move down 1 cell in column and if that value less than original cell, then move up again, until find greater value than original cell. Once we find value greater than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

Once greater value has been copied to new cell, logic is now:
a) move down 1 cell in column and if that value is less than original cell, then extract that value and copy that value one cell to column M and copy the Time Difference Value to column O.
b) move down 1 cell in column and if that value is greater than original cell, then move up again, until find lesser value than original cell. Once we find value lesser than original cell, extract value and copy value one cell to column M and copy the Time Difference Value to column O.

Again, at any point in the process if we find a value equal to the starting cell, we ignore it and the logic continues. The logic continues flip flopping like this to the last value of column.

Once all the Break Points and Time Difference between Break Points are extracted for each value in column G, the AVERAGE, STDEV and MAX values of column O are calculated in column Q, R and S.

There is a loop that controls the execution of the core logic until the last value in column G. In the macro I’ve hardcoded last row being 9171, but I’d like the Macro to figure out what the last row is automatically.

I know this description is a bit long but I’ve worked for many hours on getting it work properly. I just need some help to make it run much faster. I hope someone can help me out on this. I have the right logic, just need the speed now and I really can’t figure it out.

Attached is a sample files demonstrating showing how the logic to flips back and forth as moving down the column starting in cell G200.

The sample shows the results first 4 loops (Rows 200 to 203). The values in M and O are the results of the fourth loop.

Again, assistance is very much appreciated because I've taken this as far as I can with my limited experience.

EDIT - I can embed the Macro, but it'll probably much easier to actually see it in the sample file.

View 14 Replies View Related

Get Maximum / Minimum Date And Time From Separate Columns?

Mar 21, 2012

So I have a workbook that has a range of dates in one column and a corresponding range of times in the column next to it. On a separate sheet I want to return the lowest time&date, and then the maximum time&date. I've tried a few different things but nothing is working.I tried this:

Code:
=MIN(B:B+D:D)

This didn't work for some reason. It did return a time, but it wasn't the lowest. The maximum wasn't even close.

Previously I was just doing the min/max of the date in one cell and then the min/max of the time in a different one, but obviously that didn't work since the time wasn't going off of the maximum date, so it was just showing the lowest time period.

View 9 Replies View Related

Find Duplicate In Certain Columns And Keep Newest By Date & Time

Jun 20, 2006

In the included workbook I've got a sheet that needs to be updated every time a userform is completed. So I intend to run a macro after the data is entered to find duplicates, and delete the older row.

so, column A must match then column C must match then look in columns AK & AL to find the newest entry to keep. I also need to delete any rows where column A is empty(light Green), no matter what other columns have data.

In my example sheet all the yellow's match for column A but the bright yellow's are the only "keepers", because one has a different number in "C" and the other is the newest.

Also remember that this is just part of a much bigger, multi-sheet book so I will need to I.D. this sheet in the code.

View 9 Replies View Related

Date Differences In Days, Weeks Or Months

Jan 3, 2008

I've been racking my brain on this one for awhile, and I feel like I'm going the right direction but...

I have a list of dates like:
11/30/2007
10/31/2007
9/30/2007
8/31/2007
7/31/2007
6/30/2007
5/31/2007

or maybe

11/30/2007
11/23/2007
11/16/2007
11/9/2007
11/2/2007
10/26/2007
10/19/2007
10/12/2007
10/5/2007
9/28/2007
9/21/2007
9/14/2007
9/7/2007
8/28/2007

...and I need to determine if the difference between them is daily, weekly, or monthly. There are 79 of these lists, on 79 different sheets so I can't visually peg them as daily, weekly, or monthly.

The way I have been looking at the problem is to calculate the number of months between the last & first dates and see if the resulting answer (+1) matches the number of actual dates, and so on...

View 5 Replies View Related

Excel 2003 :: How To Show Differences And Count Between 2 Columns Of Text

Aug 5, 2012

Have Excel 2003. I have

List of email addresses in column a
List of email addresses in column b

** I would like a formula that will take all the values in column A and compare it to the entire list of entries in column B.
Would like it to show in Column C any entries in Column A that ARE NOT in the entire column B.

*Would like it to repeat for entries that are in Column B, but not in Column A and show in D.

*Then would like a count of the differences for each column (that is pretty easy).

It needs to look at the entire list of entries in the column as these will be email addresses. We want to know what is missing from Column A that is not in Column B and what is missing from B that is not in A.

View 3 Replies View Related

Date/Time Formula: Pick Up A Date With Time Entry On A Worksheet And Place It Into A TextBox On A UserForm

Jun 17, 2006

I am attempting to pick up a date with time entry on a worksheet and place it into a TextBox on a UserForm. Format on the sheet is mm/dd/yyyy h:mm AM/PM. The UserForm is placing the value as mm/dd/yyyy 12:00 AM. here is the

Private Sub UserForm_Initialize()
If Not Range("dDate").Value = "" Then
TextBox2.Value = Range("dDate").Value
TextBox2.Text = Format(DateValue(TextBox2.Text), "mm/dd/yy h:mm AM/PM")
Else
TextBox2.Value = ""
TextBox2.SetFocus
End If
End Sub


"dDate" is the named range where the date is sitting. The format is also set on the TextBox2 exit event. Can anyone see why only the date portion is being transfered with the default 12:00 AM for no time component of the value?

View 3 Replies View Related

Analyzing Scores Per Subjects

May 2, 2014

I need a formula to analyze the attached sheet.

I need to know
1-Number of students that passed with 70% and above in English, Maths and Biology
2- Number of students that passed with 50%-69% and above in English, Maths and Biology
3- Number of students that scored below 50% in English, Maths and Biology
4-Number of student that where absent for each of the subjects (English, Maths, biology)

Note: Total of all the columns per subject must be equal to the total number of students in the sheet.

View 4 Replies View Related

Analyzing S Survey Form

Apr 20, 2013

I would like to analyze a survey form.

See attached example : survey.xlsx‎

I am trying to display a total of answers per question and transform that into a grid for easy reporting but am not sure how to do it.

View 2 Replies View Related

Analyzing Text And Compiling

Feb 19, 2009

I have a row of text (for example say they are cells c3, d3, e3, f3) that have one of four text strings (red, yellow, green, blue). In cell b3, I need it to report back the column heading of all the cells that have the text "blue".

So if cells c3 and f3 have text "blue", then I need their column headings to be inserted into cell b3.

View 9 Replies View Related

Swap The Data Between Two Columns At A Time

Apr 19, 2007

Swap the data between two columns at a time. Here are multiple columns to be swaped in one worksheet and I have many worksheets to work with.

View 9 Replies View Related







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