Dynamic Sum Function (number Of Sheets Can Vary From Time To Time)

Sep 8, 2009

I need a sum function in A1 of a "Total"-sheet that totals cell A1 in every sheet with a certain color on the tab. The number of sheets can vary from time to time.

Any idea about a dynamic sum function that will do this, in combination with VBA?

View 2 Replies


ADVERTISEMENT

Row Number Of Last Date / Time In Column (Dynamic Range)

Feb 4, 2014

I have a long (~42,000) list of dates and times (some including zeros). I would like to name these ranges and use a formula to find the last entry in each column. I know the lists will never go over 45,000.

The data is in this format:

1/31/14
23:58:00
1/30/14

[Code]....

The data will not always be consecutive, so I imagine the criteria would be something like (if there were such a thing) "ISDATE" or something of the sort.

How would I write a formula to dynamically calculate the row number of the last date or time in the column? (In this case, it would be 6.)

View 9 Replies View Related

Function To Be Added On Timestamp Macro To Align Time Of Users From Different Time Zones

Mar 28, 2014

I am looking for a function to convert time given by my computer (Local time) in EST (Eastern Standard Time). We are several users of a same file (with timestamp macros) and all time need to be aligned to one time zone (EST), even if all users are working in different time zone (EST, CST and IST).

View 1 Replies View Related

Count Function :: Vacation, Personal Time, & Sick Time

Nov 17, 2005

I am using the count function for attendance tracking of Vacation, Personal Time, & Sick Time. (Example: = COUNTIF($F6:$CQ6, "V")

I need to be able to do half days. I have tried many different formulas/ways to incorporate the half day scenario even without using the count function with no success.

View 13 Replies View Related

IF Function To Compare Specific Time To Time In Cell

Nov 19, 2008

I am looking for a formula to change a condition based on the time of day. Essentially, before 1pm I would like the formula to be:

=((I12/100)*25)/D12

After 1pm I would like the formula to be

=((I12/100)*25)/B12

I tried various ways with "=if(now()> ..." formulas to no avail because of the way Excel handles Now().

View 6 Replies View Related

Add This Number To The Start Time, Factor In Break Minutes And Get To The Projected Completion Time

Mar 3, 2009

I am trying to provide a tool for department leaders to monitor productivity for order processing in their departments. The variables I have are: Number of orders(variable), number of pickers (variable), start time(variable). Then, I know each order takes 1 picker 4 minutes to pick on average, and there are 45 minutes worth of breaks during the picking process. So after entering the variables I used =(((C3*4)/60)/D3) to come up with the time needed to process the orders. What I can't get to is how to add this number to the start time, factor in break minutes and get to the projected completion time. I have Excel 2003 at work. Clearly I need to take a class!

View 4 Replies View Related

Subtract Start Time From Finish Time Return Hours Worked As Number

May 5, 2006

I have a user form with textBox1 = start time (entered as "[h]:mm") and text Box2 = finish time (entered as "[h]:mm"). I would like textBox3 to display the difference between the start time and finish time as a general number!

For example
Start time: 21:00
Finish time: 06:30
Hours worked: 9.50

Start time: 12:30
Finish time: 23:00
Hours worked: 10.50

View 9 Replies View Related

Count Number Of Full Time Periods Within A Time Period

Nov 18, 2008

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!

View 9 Replies View Related

Index Function (isolate One Number At A Time And Evaluate Usage)

Mar 27, 2009

The value that is returned is off by 2 rows everytime. When I evaluate the formula, it shows the correct row just before the indexing function does it's thing.

I have a cell phone bill for 20 or so phones and am trying to isolate one number at a time and evaluate usage. The first sheet is my data, the second is sheet ("Breakdown") is where I enter the number in A2 that I want to look at. When I do, it misses the first 2 rows and picks up 2 extra from the following phone number.

View 4 Replies View Related

Userform With Time Field Displays Time As Number

Dec 24, 2008

I have a userform that has a time field on it and then the userform displays the time as a number.

Ex. I entered 11:00 AM in the Time of Contact field and the form displays it as 0.458333333333333.

View 10 Replies View Related

Convert Number To Time & Decimal Time

Oct 8, 2007

I need to separate a list of times from a telecommunications bill. I have 170,000 line of data.

The Times are represented as below.

eg

46 46 Sec
59 59 Sec
100 1 Min
159 1 min 59 sec
200 2 mins
502 5 mins 2 sec
1256 12 mins 56 sec
3456 34 min 56 sec.

How do I separate them to a decimalized per min value.

View 5 Replies View Related

Time Function Is Resuming Again The Same Time

Jan 25, 2009

D: is quantity to be made
G: is number of minutes this will take
J: is the time each order should be finished

Problem
at 12:00 work stops for lunch and resumes again at 12:30
Somehow I need this to be reflected J:

View 4 Replies View Related

Range - Dynamic Use #rows & Cols Vary

May 29, 2007

i have data that will vary from item to item in the $ of rows associated
and the # of columns to be dealt with.

item1 Line 1
Line 2
Here i want to have a formula put and copied across X columns
item2 Line 1
Line 2 other data going across in the columns
Line 3
Line 4
Here i want to have a formula put and copied across X columns
item3 Line 1
item4 Line 1

get my meaning??

columns involved will be known before i get to this bit of code !!
as an example lets say it's 8 columns

using the record macro i get this bit of code

Range("E14:M14").Select
Selection.FormulaR1C1 = "=SUM(R[-10]C:R[-1]C)"
This is fine but i don't know what row or the columns are before i run the macro so the Range
("e14:M14").select wont really work.

I've sent sometime going through MRexcell searching for tips but found nothing also googled for dynamically pasting across unknown columns

this is close to my idea in my mind conceptually
Range("C2:C" & LastRow)
but it doesn't make the columns dynamic eg column 8 being = H and then P = 8th column on and the last with data.

View 9 Replies View Related

Display End Time Automatically Upon Entering Start Time And Time Usage

Dec 19, 2008

I have a worksheet which contains START TIME in column A, then TIME USAGE in column B and END TIME in column C. User enters start time, followed by the number of time usage in minutes, how could i possibly display the end time automatically in this scenario? how do you add the entered time usage to the start time to display the end time? Say if I enter 1:00 AM at start time and 00:15 minutes on time usage, how can 1:15 AM be displayed on the end time automatically?

View 2 Replies View Related

"Time" Function To Find Time&date - ?hours

Dec 17, 2008

I m Trying to add some features to it and run into an issue. Here are the fields we are working with!

A1= 13:30:00 17/12/2008
(in other words 1:30pm on date given) - Need to know proper cell number format!!

B1= 23:00:00
(this represents 23 hours) - format for cell is [h]:mm:ss

C1= Unknown function
(This field is my problem!!)
Answer here SHOULD be "14:30:00 16/12/2008"

I need a function for C1 (using A1 and B1) that will give me the time and date 23 hours earlier or however many hours:mins:secs is specified in B1! Also need to know what number format to use for both A1 and C1

View 4 Replies View Related

Run-time Error '1004' Method 'Add' Of Object ' Sheets' Failed Adding Multiple Sheets

Aug 9, 2007

I have been running a simulation for about 18 hours now and just received:

Run-time error '1004':
Method 'Add' of object ' Sheets' failed

I have been creating new sheets, importing data, pulling some values from the data then deleting the respective sheet. I am using:

ActiveWorkbook.Sheets.Add after:=Sheets(Sheets.Count)

The sheet is actually being added to the workbook, seemingly before the error. I resume the code, and a new sheet is placed in the workbook and it errors again. The Debugger stops and highlights on the code above.The sheet count number was 10895 at the error, just as an indicator of how many times the simulation has performed successfully. I am hoping this is something I can fix without having to start over...

View 9 Replies View Related

Date Is Dynamic But Time Is Static

Aug 24, 2013

If I want date to be current and time constant how to do it for ex:

in A1 want display of 8/23/13 8:00 next day when I open excel A1 should display 8/24/13 8:00

so my date is dynamic but time is static.

View 6 Replies View Related

Add Number To A Time And Get Time

Dec 4, 2012

I have a cell that has a formula in it (F11) the formula produces a number with no decimal places and that number represents a time in minutes. I have another field (K11) which has a time in it. In another field I want to add the minutes of cell F11 to the time in K11.

F11 = 29
K11 = 7:00 AM

When I just add the two cells : =J12+F11 the returned result is 8:42 PM.

Why do I get 8:42 PM?

I need the answer to be 7:29 AM. How do I get that?

View 1 Replies View Related

Macro To Create Dynamic Time Stamp

Mar 6, 2009

I am have average excel knowledge with formulas and I am relatively new to the creation of Macros. I was told by my boss that he wants me to create a Macro that will palce a time stamp in the bottom left corner of the page (via the footer) that updates automatically every time a sheet is worked on. Please provide any help or assistance that can get me through this task.

View 11 Replies View Related

Plot X Values At A Time In Dynamic Chart

Sep 26, 2007

I have over 5000 cells of data. I want to take 4 data points at a time, average them then plot them on a dynamic chart. I know how to do the dynamic chart but how can I take the average of the the first 4 numbers store it in a different cell, then the next 4 and so on...

View 4 Replies View Related

Vary Columns Based On A Number

Feb 5, 2009

You can always add numbers together. however, how can you vary columns based on a number?

for example, i can always do things like the following to change the number of rows selected in a column based on the variable numRows.

View 2 Replies View Related

Dynamic Array Redim Preserve: Run-time Error 9, Subscript Out Of Range.

Jul 20, 2009

I found quite a few posts about this problem, but none of the answers was any use to me. I need to redimension a 2 dimensional array in a Sub. I deleted all the code that is not of interest:

View 3 Replies View Related

Calculate Time Between Start Time And End Time?

Feb 7, 2014

the vendor has a 21 hr working window; start from 7am and goes until 4am; Mon to Fri.

Here is a scenario:
- i request for a product information from a vendor on 3-Feb-14 8:00am (Monday)
- he replies with all of the product info on 6-Feb-14 12:00pm (Thursday)

can you find the time in above scenario consideration the working window?

Here is another scenario:
- i request for a product information from a vendor on 6-Feb-14 8:00am (Thursday)
- he replies with all of the product info on 11-Feb-14 12:00pm (Tuesday)
- Sat & Sun are days off but keep in mind that my Friday shift ends on sat at 4am so the networdays formula wont work.

View 2 Replies View Related

Time Sheets ...

Apr 1, 2007

I am tearing my hair out trying to find a solution to this problem. Can anyone help?

I work 5 shifts each week, some are over night. What formula would I use in order to find,

a) Hours worked each shift.
b) Hours worked for the week.

I have discovered how to calculate (eg.) 6am - 6pm, but over night (eg.) 6pm - 6am

As for adding total weekly hours

View 9 Replies View Related

Excel 2007 :: Macro - Copying Column In Which Number Of Rows Can Vary

Sep 23, 2013

I am using MS Excel 2007 and I am trying to create a macro which will copy column E and paste the data in column E to the bottom of column D. However each week the amount of rows in these column with vary, they will always be the same amount of rows in column E as in column D but there may be 20 rows one week and a 100 rows the next.

The formula I currently have is below but this will only work for a specified number of rows. How I could change this to work for any number of rows?

Code:
Sub IPT()
'
' IPT Macro
'
'
Range("E1").Select

[Code] .....

View 2 Replies View Related

If Function And Time

Jan 24, 2009

is it posible and if so how do I use the IF function to tell cell that

it has a time between 12:00 and 13:00 then add 30 minutes and if not then do nothing

View 4 Replies View Related

On Time Function

Jan 5, 2007

I finally got an ontime code to work almost the way I want it. What it does not do correctly is necessarly copy paste information for the correct hour of the day. For example if the computer goes down it will start again copy/pasting for the next hour readings. Even if its three hours latter. The log should be blank for three hours since those hours wwere missed. My code is below, how can it be fixed to run "Capture" macro for the correct time of each day and leave the rest blank? Rich

Public LastSoon
Function Soon() 'As Date
Dim tm As Variant
tm = Now
tm = tm + 1 / 24 'next hour
tm = tm - Int(tm) 'time only (no date)
tm = Int(tm * 24) 'on the hour
tm = tm / 24 - 5 / 1440 '5 minutes before hour
Soon = tm

View 9 Replies View Related

Trying To Make A Time Schedual Between Two Sheets.

May 21, 2009

I am trying to make book to represent time frames from sheet 1 to sheet two. The times are at the bottom of the sheet represented by letters from the alphabet eg, A is 6:30 in the morning to 2:45 in the afternoon. B is 8:45 in the morning to 5:00 in the afternoon ect, ect . I need to have the time represented in color or maybe a diagonal line through the cell in sheet 2 where each letter and corrosponding time frames are. Eg, I have given an example of the time frame "A" in column C in sheet two. I will make a sheet for each day of the month, so all I need is an equation for row "C"(Monday the 16th) in sheet 1.

View 4 Replies View Related

Use Userform And Hidden Sheets At The Same Time

Feb 1, 2013

Is there a way to use a userform and hidden sheets at the same time?

I want to limit the access to the information through a userform but my userform requires me to unhide the userform to show. Is there a way to go around this? Because the information might be misused if the user can simply close the form and have access to the information in the sheet.

View 3 Replies View Related

Run A Macro In Multiple Sheets At The Same Time

Jun 13, 2007

I have to run the macro in over 75 sheets every month and they are divided in few workbooks. The workbooks have 2 summary sheets and then the sheets I need to run the macro. Can you help me to run the macro in all of these workbooks running it just once?

Sub TelcoTicketsCleaning()
'
' TelcoTicketsCleaning Macro
' Macro recorded 6/13/2007 by EQUANT
'
Dim lastrow As Long
lastrow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row

For r = lastrow To 46 Step -1 'Remove rows with DSL, ISDN and PSTN services..................

View 9 Replies View Related







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