Average Data Between Two Date Ranges - Specific Hours
Aug 22, 2014I would like to average data between 0600 and 2200 hours, between two date ranges, such as July 1st and July 31st.
Capture.JPG
I would like to average data between 0600 and 2200 hours, between two date ranges, such as July 1st and July 31st.
Capture.JPG
I would like to get a monthly average between the first of the month & the end of month of a handful of percentages collected during the month for individual projects.
View 10 Replies View RelatedUsing Excel 2010.
I am trying to come up with a formula that will return a total average from two columns of dates with criteria. The range will need to cover an entire column as my data is continuously growing and the criteria would have to limit the start date to each month. I have tried
=AVERAGEIFS(DAYS360(A:A,B:B),A:A,">5/1/2012",A:A,"5/1/2012",A:A,"
I have created a spreadsheet which creates an average of feedback for trainers in a training company. The form adds up the feedback score into column L of the summary sheet and I have created a summary sheet which I want you use to calculate the average for each trainer.
I have cobbled together an array formula which creates the overallaverage for each trainer based on the named ranges entered via the form.
It looks something like this:
in the attached excel file, in cell D21, i have tried to join my SumIF/CountIF formula together with my 2 date range vlookups.
the first vlookup is for the start of november and the 2nd vlookup is for the end of november.
in essence, i want to the average price of all 6160 printers sold in November 07 period.
i cant get the formula working, so any help would be much appreciated by me.
I have a data base with 12 columns of data. I need it to look for one criteria in one row, match it, look for another criteria in another row, match that, and then once those criteria are met, average those rows that met the criteria with the statistics in that row that contains a value.
Such as:
Monica 2 Timed 310 Michele
Tom 3 UnTimed 410 TC
Art 5 Timed 216 TC
Monica 4 Timed 415 Michele
Tom 6 Timed 200 TC
Tom 4 Untimed 216 TC
Art 8 Timed 410 TC
What I need is the formula to search in through the data, look for Tom, then find all the ones that say UnTimed, and then average the number in column 2 that match those criteria.
I have been working on my spreadsheet for sometime now, so far when I run into a code problem I can figure it out using someone eles's post. However, I can't seem to figure this one out. I need to send data from a userform to specific cells on my spreadsheet based upon the users selection in combobox 1, and textbox 1.
Example: User selects customer name from Combobox1, and part number auto loads into textbox1 from the data sheet.
There are then 11 combobox's that can be clicked as the userform is updated. Once the user is finished, I need the answers from each combobox to transfer to the worksheet next to the referenced Combobox1 and textobox1.
I used the code that RoyUk posted to him, but have only been able to get the first combobox to copy to the sheet, the rest stay blank.
(Here is the code so far)
Private Sub CommandButton2_Click()
Dim ce As Range, srcRng As Range
Dim sYear As String, sMonth As String
sYear = UserForm3.ComboBox1.Text 'When combobox1 is loaded, use as reference#1
sMonth = UserForm3.TextBox1.Text 'When textbox1 is loades, use as reference #2
Set srcRng = Range("c2", Range("c65536").End(xlUp)) 'Search range on worksheet
For Each ce In srcRng
find a formula that will calculate the hours between the two below values but only take in to consideration the business hours (from 9 to 17) and exclude any weekends?
08/03/2013 13:32:00
02/04/2013 09:32:50
i attached link to sample and its contains employee sheets and Report sheet ,and in Report sheet there is comment
[URL]
In my workbook I have about 20 sheets (less in the attached sample), and on most sheets I’d like to query data for each day and find an average value based on the time and then copy that result into another sheet. I’m not sure if I’ll need 2 macro’s for this or if one can be used.
Here’s a quick description:
Assuming that I am currently in the sheet I want to run the macro, then I will either input “1:45” or “0:45” into a popup box, or I could always simply input the 1:45 or 0:45 in the code itself. I’m flexible
1:45:
If I input 1:45, then I’d like the macro to find the first 1:45 in Column B and the value in the same row in Column F will be used in the calculation. Once 1:45 is located, then the macro moves up to find 22:45 in Column B and the value in the same row in Column F will be used in the calculation.....
I have rather large Excel file that spans around 245 columns & has multiple users responsible for certain columns. Columns are chunked to provide data about a specific group. Every 72 hours, I need to provide to managers what’s currently on this file in a specific summary format.
I’ve recorded a macro that gets me half way there. Here’s where I’m clueless. After my macro deletes unnecessary columns, what remains are the columns for “Main Data” group + each of the 5 “Business” groups (Investors, Lawyers, Credit, Finance, and Support) which would have identical column headings.
(1) Name (2) Address (3) ID# (4) Control#
Furthermore, for each of the 5 “Business” groups, there are 9 slots (ie- a user can enter up to 9 unique entries for a particular group.)
Example- The Investor group contains 9 slots. Each slot will contain the 4 columns mentioned above. So there are 46 slots in total – 1 for Main Data, 45 (5 groups x 9 slots) for Business groups.
MAIN DATA (columns A-D)
Investor1 (columns E-H)… Investor2 (columns I-L)… Investor9 (columns AK-AN)
Lawyer1… Lawyer9
Compliance1… Compliance9
Finance1… Finance9
Support1… Support9
MY PROBLEM: I need a macro to now cut & paste all data from each of the 45 Business groups slots & then paste at the bottom of the MAIN DATA slot.
The final file would be 4 columns (as listed above) wide. Data from each of the 45 business group slots would be one below the other- all of it underneath the data in the Main Data group.
I attempted to record a macro where I’m copying a section’s data range starting from row2 to row4000 (I know there will never be 4000 entries. I did this just to ensure that all future data would be captured) then pasting that after the last entry in the Main Data.
Example- I’d copy data from Investor1 slot(starting at column E2-H2) & go about 4000 rows down. Then I’d press CTRL+Down Arrow key in column A & then click the down arrow one time to take me into 1st empty cell where I would paste my copied data. I was going to repeat this process for the remaining 44 slots.
I’ve added some extra entries to test the macro & the problem is that the recorded macro is pasting data in specific cell location in column A instead for looking for the 1st empty cell in column A & then pasting the copied data.
So far I've gone thought the net & tried to paste in a few VBA posts/tips that I thought would work. Here's what I have so far from tinkering around. I need someone to tell me what to replace the xxxxxxx line with. This would be the language to tell Excel to paste copied data range into the first blank cell in column A. I've gone thought the net & tried to paste in a few VBA posts/tips that I thought would work.
Here's what I have so far from tinkering around. I need someone to tell me what to replace the xxxxxxx line with. This would be the language to tell Excel to paste copied data range into the first blank cell in column A.
Sub transposedata()
Sheets("ConsolidatedYTDReport").Select
Range("E2:H4202").Select
Selection.Copy
XXXXXXXXXXXX
ActiveSheet.Paste
End Sub
For my business, I am tracking how many sales I am doing per hour. That one was easy. NOW I need to track the average number of customers that I have for each day of the week, Sunday-Saturday. I need for one page to look at another page and, every time the word 'Sunday' is there, take that row of hourly jobs and average them with every other 'Sunday' and give me the total average number of customers on each Sunday, Monday, etc.
Attached is my worksheet for review. If you look at the 'Tracking' and 'Balances' tabs, you'll get the idea......
i have an Excel sheet that contains Dates and Number of Logins pr Hour I need to get the average number of Logins pr hour each day.
Like this
Date Logins Average Login pr hour That day
21.03.14 12:00102 21.03.14 91.8
21.03.14 11:00107 20.03.14 83.25
21.03.14 10:0053
[code]....
I have a column called "Weekly Working Hours" which totals the number of hours worked per week. The cell is filled in every Saturday.
In the next column I have "Average Weekly Working Hours per Month" which needs to calculate the average number of weekly hours every four weeks, filled in every Saturday.
Please see attached file. I am referring to columns J and K ....
I am 2007 Excel user.
I am attempting to take a large data download of time in hours and minutes and average or get the sum. Each cell contains hours and minutes in this format:
203:30 (meaning 203 hours and 30 minutes)
196:05
72:22
6:55
I have formatted the column in everyway I can think of from custom hh:mm to time, to scientific--I have grasped at each straw I have used the TRIM function to ensure there is no leading space. When I attempt to average I receive the #DIV/0! error, and when I attempt to use SUM, I get a dash (-).
I have been researching this on the internet, and have tried everything that is slightly applicable, with no luck yet. I am wondering if it is because the hours are more than 24, so the hh:mm format does not truly apply...
I've attached a spreadsheet that I'm working on. I want to be able to extract data from a master sheet and copy data to another sheet if the date is within a defined date-range. I've prototyped the problem within the attachment.
Given the code in macro2, none of the records are selected (the "yep"). What am I doing wrong?
I am trying to determine the total hours of downtime accumulated when there are 2 or more machines down during the same time period. To do this, I need to be able to determine if at any point there are 2 or more pieces of equipment down at the same time, and if this is true, how many hours were overlapped. The attached spreadsheet shows how the data is presented.
View 7 Replies View RelatedI need to calculate average response time, the problem is that it should be based only on "core hours" and that's between 7am - 6pm.
How to create function that will exclude "out ot hours" time (6pm-7am) from the calculation.
I starting to develop a macro for grouping specific information together. part of it I need to group data based on date ranges. My plan was to, in one sheet label the start and end ranges by month (not every range starts and stops at the beginning and end of the month)
For July I would have 7/1/2012 in one cell and in another 7/28/2012
For august I would have 7/29/2012 next to it 8/25/2012, etc
I need to take those ranges and in my FY2013 sheet column I where all of my dates are listed, in the next column J if the date says 7/1/2012 to label it July, if date says 7/30/2012 to label it August, etc.
In the file attached there is only the data to look at, though file is little bit lager.
Now in cell G10 I've got the stock forecast in 3 months time, this stock forecast is calculated from a date rounded to the closest month (according to my criteria), then the formula looks at the reference number cell D1 to work out the formula. All the steps are in the file.
In order to be more accurate my boss and I want to use the exact date, so that delete all the round month process. My intention is to use the day of the date and then make a fraction of the months to calculate the average. Taking into account that a month have as an average of 30.4166 days.
In the file I did an example, to clarify my messy explanation.
Cells B2, C2, D2 won't be needed in order to do so.
Please have a look at the file. At the end my intention is to to such a formula or a similar one. The formula should be an automatic one when typing dates in cell A10
The result of it is in row 31 and 32.
trial.xlsx
I'm trying to calculate the average of every five rows. I have a formula =Average(A1:A5) in cell B1. When I do an autofill in B2, the formula would read =Average(A2:A6). What I actually want it to be is =Average(A6:A10), increments of 5. I don't know what i'm doing wrong. I have also tried selecting all the B rows and doing autofill and that still doesn't work.
View 3 Replies View RelatedI have a list of grade from 2~4 (i have long list but for sample i made it short). I want to get average of all grades one by one as well as by making some groups. Like 2,3, "2~4" (all groups) then "3~4". All the things were going nicely with a drop down menu. But when i put average on grde "3~4" only then the problem occurred. Although I've done my work but still I think there must be some improvements.....
View 6 Replies View RelatedIs there a way to sum data up to a specific date?
I have a large data table, which includes various values throughout the year, if i want to look at the total value up until say 31/01/2014, but my data goes up to 28/02/2014, is there way to do this within the sumifs function?
I'm trying to figure out a formula that will give me monthly average (per person) on the following report. The problem is that people start at different times and sometimes they don't produce in a given month after they have started. Basically I'm trying to get a monthly average from starting month to the last full month, in this case January.
View 8 Replies View RelatedBasicly we pay single rate between 8.00am and 8.00pm at all other times and on bank holidays and weekdays we pay an enhanced rate. If I can calculate the standard hours then the remainder of the hours are enhanced. Aim to count how many work hours fall between a standard start time (SHS) and a standard end time (SHE) (currently 8.00am and 8.00pm), that do not fall on a weekend and are not a bank holiday.
Column B = Start time (eg 06:00)
Column C - End time (eg 22:00)
Column D= date (from which day of week is derived)
Column E = Y or N for whether it is a bank holiday or not..............
I want to set up a spreadsheet where i can log people's time in half day intervals. The spreadsheet will be split into each person and AM and PM sessions with different projects listed against different days. The spreadsheet will also list any overtime they have spent and totalled up at the end of a period. I would like to be able to ask Excel to look through everyones projects and total up how many days everyone has spent on each project eg. if there are 3 people working on 1 project what is the total amount of time spent by everyone. I will then later add their hourly rates and overtime rates and want to total all of this up against the different projects.
View 2 Replies View RelatedI needs a formula (not VBA) to calculate the required start date.
I have to do a job of 14 working hours and this job must be finished on 05-may-2014 13:00
My working week is from monday u/i friday and every day I work from 08:00-16:00
At what time do I have to start the job to get it done in time.
The formula should give this result: 01-may-2014 15:00
This time I have a situation like this:
Column A - Dates
Column B - Equipment Type
Column C - Load Start Time
Column D - Load End Time
I need to do some statistical analysis (average, mode, medium, st dev) on the load times, which is load start time - load end time. As far as I know, I can't subtract ranges (column d i column c) within Averageifs function. I assume I would need to use an array function for this.
I would like to create a shortcut to averaging ranges. The ranges vary in size so I want to be able to click on a cell. Press Ctrl + W and automatically average the cells above it. I know how to get the short cuts, I just can't figure out the proper code to be able to average based on different sizes. Let me know if you need a better explanation./
View 3 Replies View RelatedI need to create formulas that reference a single date and output date ranges. The objective is to have a person input a Monday date in any given month and receive a four weeks out worth of dates and ranges. For example: In a lone cell, the person inputs 10/13/08. Automatically, the sheet produces the next full week range: October 19 – October 25 in a single cell and also produces a cell for each date. Example: Sunday 19, Monday 20, Tuesday 21, etc…. It should look like:
Monday Date:
10/13/08
October 19 – October 25
Sunday 19
Monday 20
Tuesday 21
Wednesday 22
Thursday 23
Friday 24
Saturday 25
and then repeat for three more weeks. I thought I had it figured out until the month changed. The dates continued in October instead of adding a month. This report will be ran weekly, so simply adding a +1MONTH to some cells will not benefit me as I’ll have to change the formula every week. I want the formula to compute the data without any manipulation over the next several years. The only change will be the Monday date.