# Defining Time Periods In Graphs?

Mar 27, 2012I need to produce a graph that provides the user with opportunity to define the time period, i.e. start and end dates for the data to be used in the graph.

View 2 RepliesI need to produce a graph that provides the user with opportunity to define the time period, i.e. start and end dates for the data to be used in the graph.

View 2 RepliesADVERTISEMENT

production01.png

I am trying to figure a way to search for a cell that has a specific date and time range. There are several cell titles pending on the activity. I want to find a cell that has a time ** 7:30-15:30 , 15:31-17:30, 17:31-20:30. The end result is to calculate the activity between those time periods based on the data cells.

Example

If the date searched time field ** the activity ranges is 1635 I need to split the time and credit the activity time in the 730-1530 time and the rest on the 15:31-17:30 time

I have been able to do it on a single labor group based on time alone, but when I try to add the DATE to it my numbers go null. Eventually i will need to add 11 labor groups daily for weeks at a time .

Excel 2007

I have thousands of timestamps that have a start & end date and time in 2 separate columns. (one named start and one named end...)

I also have numerous set time periods that i'm interested in.. (about a dozen or so)

for example 01/01/2008 - 05/01/2008, 07:30:00 - 10:00:00

What i need is to be able to count the number of times the full time period i am interested (07:30:00 - 10:00:00) in falls in between the thousands of start and end timestamps i have. The time periods must also fall within the date range specifed.

So if my timestamps were

Start: 01/01/2008 06:30:00 & End: 02/01/2008 11:00:00, based on the set time period above, there would be a count of 2

and if my timestamps were

Start: 01/01/2008 07:05:00 & End: 02/01/2008 09:00:00 there would be a count of zero as there is not a full uninterupted timeperiod 07:00:00 - 10:00:00 between these timestamps.

and if my timestamps were:

Start 01/01/2007 07:00:00 & End 02/01/2007 10:00:00 the count would be zer as this is a year early!

I got the following table.

http://img163.imageshack.us/img163/2972/oldnf.jpg

What formula could I use so that the amount under STP premium would display at the right cell under different time periods depending on the time of the trade date, just like the following images?

http://img687.imageshack.us/img687/5720/newcg.jpg

http://img168.imageshack.us/img168/413/new1zk.jpg

I'm using this formula (below) to add the hrs between 2 time periods (4:30 pm in cell I37 and 8:00 pm in I38, then the formula is in I39) and works almost every time even when the second time goes into the am hours, except in certain instances such as: 4:30 pm to 11pm show as 30.5? But sometimes it shows the correct number, 6.5

=(IF(I37>I38,I38+1-I37,I38-I37))*24

I have a source table that contains time information about shifts people work:

E

F

G

H

37

Source Table

38

name

date

start-time

stop-time

39

John

1-1-2012

13:00

15:45

40

Frank

15-8-2012

8:45

10:30

Now I'm looking for way to 'enhance the resolution' of this information to an hourly basis.

This means I would like to know how many hours John worked on 1-1-2012 between 15:00 and 16:00 (0.75).

I probably need to add 24 calculated colums to the table corresponding with the hours of the day.

I have a spreadsheet that holds a list of customers and the contracts they have with my company - this sheet includes the Total Contract Value in £s - so how much each customer will pay us for the service - the period of the service - so the start date of 01/01/08 to end date of 31/12/08 for example. What I then have is all the months across the top of my spreadsheet and I need to extrapolate the contract value, based on the period between the months.

Initially I had complicated formulas that simply divide the value by the number of months of the contract - however, my company has since changed the policy and requires it to be done to the day.

For example, if the value was £12,000 and the period was 12 months from 01/01/08 - to calculate January 08 it would be - 12,000 / 365 * 31, Feb would be 12,000 / 365 * 29 and so on...

Does anyone know how I can do this - bearing in mind that each contract won't be as easy as 12 months - it may be start date of 15/06/08 to 08/10/10 for example... If anyone can help me do a formula or formulae to calculate the value for each month - I would be very very grateful - as always... [/img]

What formula should I use if I have a list of maturity dates and current investments amounts as of 06/30/07:

06/30/08 10,000

08/31/14 18,000

05/31/08 11,000

07/31/09 25,000

06/30/10 14,000

12/31/25 80,000

and the amounts need to be distributed in columns titled:

Within 1 Yr (From 7/1/07 to 6/30/08)

After 1 to 5 Yrs (From 7/1/08 to 6/30/13)

After 5 yrs (After 7/1/13)

I am trying to plot two data series in one chart. The first series has monthly corn prices for last 10 years (~130 data points). The second series has bimonthly chicken prices over the last 10 years ( ~72 points). How can I plot them together?

The bi-monthly periods for the second series do not exactly coincide with calender months ( e.g. Aug 19 to Oct 13, 2007). As a result, I can not adjust the points to match with calender months.

There are 2 seperate spreadsheets

S1 - "End"

No. | ID | Name | Login | Total | Jan-07 | Feb-07 | March-07 | => | Dec-07

S2 - "Datasource"

ID | Irrelevant Name | Period | State | Irrelevant Data

I need something to go through the unique IDs in the "Datasource" & find a match in the "End" spreadsheet & then insert the number "1" in the corresponding time period (matching Period with Jan-07 or which ever it's suppose to represent). The Period is written in the following format:

122007 for December 2007

12008 for January 2008

One thing, the datasource has dates for both 2007 & 2008. The end spreadsheet has 2007 in one worksheet & 2008 in another.

how to Make a forecast for the demand for the time periods shown....

View 9 Replies View RelatedI am attempting to create a formula that will count the number of times, lets say letter A, occurs in column E. However, the tricky part that I have been confused on is that I only want to count how many times A occurs between each hour of the day. I need to count number of times "A" occurs between each hour of the day for the entire month.

My Worksheet looks as such: Column A contains the dates for the month of November, Column B contains times that random instances occur, Column C is not important, Column E contains a Letter A-N that pertains to what occurred at a time in column B. SO, Column B and column E coordinate with each other.

Here is an example. Column A - Cell A1 - 11/01/2013 , A2 - 11/02/2013, A3 - 11/03/2013.

Column B - Cell B1 - 12:01 AM , Cell B2 - 14:03 , Cell B3 - 15:23

Column C - Cell E1 - A , Cell E2 - A, Cell E3 - B

So I would like Column F to display that between 12:00 - 12:59 Am there was X number of times the letter A occurred throughout the entire month.

Two graphs with different scale x-axis.

Graph No. 1 with smaller time frame, Daily.

Graph No. 2 with larger time frame, Weekly.

Objective: Add vertical line to mark the same times in both graphs.

Trouble is both graph already utilise the secondary axis. VBA is allowed.

I've been trying to get a graph that looks like the image below for a while now and can't seem to get it to appear how I want. I am looking to duplicate it exactly, but the issue I'm having is getting the individual bars to be separate and appropriately spaced.

[URL] .....

i have attached a sheet where I have 4 graphs on one sheet. I prefer this to an overlay. I would like to add a 5th graph but it would make all the the graphs too small. Is there a way to make the graph background longer. For instance, extend the length of this so that I can put multiple graphs on it and then just scroll from top to bottom to review them? Also, how do I copy and paste these individual graphs into a newly created graph. copy/paste doesn't work on these?

Boiler.xlsâ€Ž

I have been working on solving this riddle since yesterday. What I'm trying to do is have Excel use today’s date on the computer to tell me when my Paydays are in a given month. Or have it tell me the next two or three Paydays based on Today's Date.

I can get Excel to calculate Every Two Weeks by using the formula =A3 + 14 then have each sequential field add 14 days to the previous fields date. However what I end up with is just a column of Pay Dates. Not what I'm looking for. I want to have an active page that only shows 2 or 3 future Pay Days. I want to use the function =TODAY() in my formula so that every time I open up the file it can calculate the next Pay Dates automatically.

I have been playing around with this formula:.....

All this does is tells me the First Friday of every month. This won't work for me because the Pay Periods are separated by 14 days not the 2nd and 4th Friday of every month. Here is an example of my Pay Periods: Sep 19, 2008; Oct 3, 2008; Oct 17, 2008; Oct 31, 2008; Nov 14, 2008; Nov 28, 2008; Dec 12, 2008; Dec 26, 2008; etc.......

I'm trying to calculate the total hours worked for two given periods over a shift , which can span two consecutive days ie. start 15:45 and finish at 00:15 the next day. Hours worked between 6am and 6pm are paid at standard rate, whilst hours worked between 6pm and 6am attract penalty rates. Hours are cacluated in 24hr time

I have attached a copy of the timesheet that we use so you can see exactly what I'm trying to achieve, and included most of the shifts that we have.

When using the Trend function, I can get the value for individual future periods. I then can get a total for the year by summing each individual future period.

What I don't know how to do is sum them all using one formula. For instance, If I know the values of periods 1-5, how would I write a formula that would sum the future values (in one cell) of periods 6-12 -- without having to sum each future period individually?

I have a list of email addresses with the periods stripped before the .com, .net, etc.

How to insert the period to go from example@mailcom to example@mail.com? Obviously the email addresses are of different lengths, but it's always 3 characters after the inserted period.

I am having trouble writing a Macro to delete multiple periods at the end of each cell. Each cell looks simiar to this: Blah Blah Blah................... I am using the InStr function to find the first period but it returns a 0 everytime. Here is the code I used to find the period. I want it to delete everything after the first period and store the value back in the same cell. Right now it just stores blanks.

Sub PeriodRemover()

Dim NewContract As String, Contract As String

Application.Calculation = xlManual

i = 2

Sheets("Product Listing by Contract").Select

Contract = Range("A" & i).Value

Do Until Contract = Empty

NewContract = Left(Contract, InStr(Contract, "."))

Range("A" & i).Value = NewContract

i = i + 1

Contract = Range("A" & i).Value

Loop

Application.Calculation = xlAutomatic

End Sub

I have a text value which consists of two periods ".". I want to pull the value in the middle. eg. From the text value in a cell "oakland.california.usa", I want to pull "california" in another cell. All the values in column are in similar format.

A B

1 oakland.california.usa california

Hope this is not duplication of any pre-existing thread, if it is, I probably don't know the correct keywords to query.

I'm trying to make a chart viewer on the first sheet of my spreadsheet and am using this website as a guideline, [URL] However instead of the 3 charts in the example, I have 12 which makes my formula for defining a name substantially longer.

By moving my charts to the same sheet and getting rid of the INDIRECT formulas, I shortened my formula to 291 characters which is too long as the limit is 255.

=IF($G$9="Sodium",$N$34,IF($G$9="Manganese",$N$35,IF($G$9="Iron",$N$36,IF($G$9="Nitrate Nitrite",$N$37,IF($G$9="Nitrite",$N$38,IF($G$9="Nitrate",$N$39,IF($G$9="PH",$N$40,

IF($G$9="Conductivity",$N$41,IF($G$9="Turbidity",$N$42,IF($G$9="Fluoride",$N$43,IF($G$9="Selenium",$N$44,$N$45)))))))))))

Is there any way to make my formula shorter? Or to reference a cell where I place the formula?

If Average GMV (Cell A1) is less than 75% of Average BP (Cell B1), use Average GMV, however the Average GMV or Average BP can't be less than $600 million. Multiply the result by .01*1/3. Below are two equations I've created, however each of them only solves one part of the problem.

=IF(A1<0.75*B1,A1*0.01*1/3,B1*0.01*1/3)

=IF(B1<600000000,(600000000)*0.01*1/3,B1*0.01*1/3)

Essentially Average BP would be used, unless Average BP was something like $900,000,000 and Average GMV was around $650,000,000. At this point Average GMV is 72% of Average BP and above the $600,000,000 minimum.

Knowing Excel adapts its formulas upon inserting a row (i.e. a sum formula will automatically include a new row inserted in the middle of its range). Is it possible to do this with a named range. I have a pivot table that serves as a table for a vlookup, but the table sometimes changes month to month with extra accounts. I need to be able to keep the formula even though the table changes, so I figured a named range would help me out but it still doesn't accomplish what I need it to do. So basically, is there a way to make the Named Range, say AGroup (A1:C5) extend to (A1:C7) if 2 new rows are added in?

View 12 Replies View RelatedTrying to calculate the lost revenue value for when a piece of machinary is offline for a period of time based on the hrly price during that particular period. The machines come on/off line at various times during the year so i am trying to make this a bit dynamic so i only need to add new info and not have to change the formula

Column F - Off date of machine

Column G - Restart date of machine

Column H - Hrly time

Column I - Hrly price

I thought this formula (an array) would work for me

=average(if((Column H>=Column F) * (Column H<= Column G), Column I)) but it only calculates that average price for the first period and not new average prices for other periods.

what adjustments I can make to my formula or is there a better formula to use?

I am trying to find a way to identify the nmber of periods where a particular value is exceeded.

Basically I have daily data on sales for 40 years and I would like to define a level of sales i.e. 23 units per day and a period i.e. 10 days and then output the number of times where the recorded sales level is greater than 23 units per day for 10 or more days.

Ideally I would like it so the sales level and period can be set in reference cells and the formula can adapt to different sales levels and periods.

The data is formatted as follows: ...

I have a spreadsheet with numbers of various lengths.

Sometimes they are preceded with a period and have one at the end as well.

Examples: of their present state

.11110000.111111.000000.

111111.1111111.000000.

100000.000000.0000.110001.

Examples: of desired state

10000.111111.000000

111111.1111111.000000

100000.000000.0000.110001

Is their a way I can create a new column and insert a formula, then drag it down so that it will delete the first or last character, if the character is a period?

How can days be allocated into the periods in which they fall if they run across a number of months.

The attached sample might explain it better.

I am seeking to analyse loading cycles on a beam.

I have half hourly data for five years, in two columns A: Date and B: Load in Kg. The load on the beam is not uniform over time and shows a cycle of load.

In Column C I have an AVERAGE function that returns the average load based in the 4 hour period (2 hours backward looking and 2 hours forward looking) if it is less than 50% of the maximum load.

The data in Column C returns sets of continuous vertical cells of data showing periods of low loading and empty cells where the load is greater than 50%. The sets can be as small as one cell (i.e. one hour) to a set of contiguous vertical cells for one week of low load.

My objective is to use Excel to analyse all the sets of contiguous cells in Column C to determine the time period from the first cell of each set to the last cell of that set and drop the result into another work sheet (pivot table) to further analyse these results.

From G13:G33 I have an array of values of which I have computed.

E36 is where I have set my threshold value.

What is the excel formula to use, to count the PERIODS (not number of times), which this threshold value has been exceeded?

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