Shortening The Formula I Used For Calculating Number Of Public Holidays That Passed

Sep 25, 2009

I am using this formula to calculate a set of PH(Public Holidays) that have passed from a period of 1/4/2009 to 31/3/2010.

=IF(TODAY()>='Team Schedule'!D5,1.5,0)+IF(TODAY()>='Team Schedule'!D6,1.5,0)+IF(TODAY()>='Team Schedule'!D7,1.5,0)+IF(TODAY()>='Team Schedule'!D8,1.5,0)+IF(TODAY()>='Team Schedule'!D9,1.5,0)+IF(TODAY()>='Team Schedule'!D10,1.5,0)+IF(TODAY()>='Team Schedule'!D11,1.5,0)+IF(TODAY()>='Team Schedule'!D12,1.5,0)+IF(TODAY()>='Team Schedule'!H2,1.5,0)+IF(TODAY()>='Team Schedule'!H3,1.5,0)+IF(TODAY()>='Team Schedule'!H4,1.5,0)-4.5

From what u can see here, its a massive formula.... but I am pretty sure that there is a shorter way to key in the formula

*Note*
'Team Schedule'!D5-D12 and 'Team Schedule'!H2-H4 are PH. disregard the 4.5 that is in the formula as it is used for other purposes. Every PH that has passed will credit a 1.5 into the cell.

View 2 Replies


ADVERTISEMENT

Months Have Passed Irregardless The Number Of Days Passed

Mar 5, 2010

I need a formula to calculate how many months has passed irregardless how many days had passed. What I mean by that is if I have a starting date of 1/31/2010 and an end date of 2/1/28/2010, that should count as 1 month passed. I tried using the DATEDIF function, but that function is counting number of days, so if only 28 days had passed, that would not count as 1 month.

View 9 Replies View Related

Displaying Work Days Excl. Public Holidays

Jan 2, 2008

way to get a worksheet to display workdays that exclude public holidays? I have used the Workday() function, but this keeps displaying the date over xmas. Is there an easy way to do this?

View 9 Replies View Related

Calculate A 24 Hour Cycle Time Which Excludes Weekends And Public Holidays

Mar 16, 2009

I would like to find out if a job took more than 24 hour cycle time (eg. 6:00 am to 5:59:59 AM next day). data:

A1 = received date & time (format "m/d/yyyy h:mm")
B1 = completed date & time (format "m/d/yyyy h:mm")

my formula is '=if(B1-A1>"24:00"+0,"Yes","No"). The problem with the formula is that it doesnt exclude weekends nor public holidays. I couldnt formulate a solution using networkdays function......

View 3 Replies View Related

Formula To Get Number Of Passed Days

Feb 15, 2010

I have a formula which calculates number of days remaining. But I need a formula to to know how many days passed after a particular date.

Example :-

Date .Days passed
10-Feb-2010 .6

=IF(ISBLANK(G14),"",IF(TODAY() > G14,"LIC EXPIRED",G14-TODAY()))

View 9 Replies View Related

Calculating Lead Time Between Two Dates / Times - Excluding Holidays And Weekend

Apr 18, 2013

Calculating Lead time (in hours) between two dates/times, excluding holidays and weekend

Start Time
End Time
Lead Time

12/26/2012 15:50
1/2/2013 12:38:00
??????????

View 4 Replies View Related

Shortening Summation Formula?

Jan 10, 2014

I have attached a screen shot below of a sheet I am using to collate fruit orders and calculate an order total for each individual person.

Untitled.png

The price of each fruit item runs along row 3 and then each persons order has its own row. The total price for each person is then calculated in column AM. However I am looking to shorten the formula I am using to calculate the total in this column.

I am currently using:

AM4=SUM(C3*C4+D3*D4+E3*E5+F3*F5+........+AJ3*AJ5+AK3*AK5+AL3*AL5)
AM5=SUM(C3*C5+D3*D5+E3*E5+F3*F5+........+AJ3*AJ5+AK3*AK5+AL3*AL5)

As you can see this formula is far too long so I am looking to write it in compressed formula.

View 4 Replies View Related

Count The Number Of Events Passed

Apr 21, 2009

[data] ....

Here I have 9 total requirements to be tested in any event. If I wanted to count the number of events passed it wouldn't be 7. See Blah2 it passed Design and Electrical. Separate Events yes, but only one requirement. I need to have a total could of 1 for that as passed. Not two. I'm comfusing myself because this inherited spreadsheet is over 1,000 requirements.

View 9 Replies View Related

Calculating Number Of True Results From If Formula

Apr 16, 2014

I am using a spreadsheet to determine if students are meeting Growth Targets between a pre test and post test.

Here is my formula

=If(D8>=C8,"yes","no")

D8 is the Growth Target and C8 is the Post test Score.

After doing this, I need to calculate the percentage of Yes results. This year it will be easy, as it only applies to 25 students. Count the yes's and multiply by 4. Next year, it will apply to number in the neighborhood of 150 students.

Here is a sample

PreTarget Post
Student 15778 82Yes
Student 25369 91Yes
Student 35778 75No
Student 45778 68No
Student 55369 50No
Student 63761 50No
Student 74061 68Yes
percent of yes's

View 5 Replies View Related

Count Number Of Loops Passed Through And Display On Excel Status Bar

Jun 8, 2010

Is there a way to count the times a loop has occurred and be able to present a running total in the status bar of MS Excel?

Code:
Sub Master_Phone()
'
' Select cell A2, *first line of data*.

[Code].....

View 4 Replies View Related

Excel 2007 :: Conditional Formatting Dates Based On Number Of Days That Have Passed?

Nov 22, 2011

I am trying to figure-out how to set up conditional formatting of dates in a column (e.g. Date Submitted) and have these dates, and/or cell, change color as time progresses. I have Excel 2007.

For instance I have an application submitted on 11/20/2011 in a cell. I would like to have the date change color (Yellow) after 30 days have passed.

Then do the same except change to Red after 60 days have passed the date.

I searched the forums and did not find this particular problem. I of course may have missed it too...

My guess was to try "$A$1

View 4 Replies View Related

Count Number Of Holidays In Given Date Range

Nov 29, 2013

I have date range, create and fixed date as follows:

Create Date
Fixed Date

10/1/2013 17:36
10/25/2013 20:33

I have list of holidays as bellow:

1/1/2013
3/29/2013
4/1/2013
5/1/2013

[Code] .....

I need a result which shows how many holidays w/in the date range. The result i should be 1.

View 3 Replies View Related

Calculate Number Of Days Excluding Holidays

Oct 7, 2011

I need to calculate the number of days between 2 dates including holidays and weekends. That means I cant use NETWORKDAYS as it excludes weekend.

View 9 Replies View Related

Looking For A Formula That Counts The Ones That Passed Or Failed The Audit?

Apr 25, 2013

I am working on a sheet that has over 150 tabs of information. It is a simple audit that allows for Yes, No or N/A to be selected for each audit category. I have an Outcome Summary tab that is pulling totals for all the audit information on each tab. I did a CountA statement to count any cells (from all worksheets) that had anything selected, so I have my count for the amount of files audited, but for the life of me I cannot come up with a formula that counts the ones that passed or failed the audit. Needs a formula that counts for Yes as 1, No as 0, N/A as 1 (these don't count against us) and doesn't return an error for a tab that wasn't selected.

View 3 Replies View Related

Add Additional Formula To Existing Formula To Exclude Weekends And Holidays?

Mar 27, 2014

I have an existing formula in a cell linking back to a start date only. determining how to add an additional formula to exclude weekends, and possibly holidays.

View 2 Replies View Related

How To Find Number Of Mondays Between 2 Dates Minus Holidays

Feb 8, 2012

I have a formula to find the number of Mondays between 2 dates.

=SUMPRODUCT(--(TEXT(ROW(INDIRECT(E2&":"&F2)),"DDD")="THU"))

I now need to add in the variable of holidays and other days off. This is where I am loss. I do have a list of the weekdays that we did have class and a list of when we didn't

View 9 Replies View Related

Clear Formula If Date Has Passed Paste Contents

Jun 21, 2006

Have a macro where is some dates have passed the formulas are cleared but if the date is < than TODAY the value is left. All worked ok until I changed to formula to where the date calulated exclued weekends. Have attached example spreadsheet.
Forgot to add the marco was provided by the hard work of fellow Ozgrid memeber (Ger).

View 8 Replies View Related

Call Public Object From Public Sub?

Aug 14, 2012

I am trying to bring up a form after clicking the "ok" button on another form. Both forms are defined in my public sub, so basically, the module creates both forms, calls the first form, and hides the second form. Then the first form hides itself and shows the second form. However, when second form is defined using "dim", the first form can't find it to show it, and when I make the second form "public" in my public sub, I get the error that it is an invalid attribute or function.

Here is the code from my sub that applies to this error:

Code:
Public Sub PutInEngine()
Dim InputForm As New FrmInputs
InputForm.Show

[Code].....

View 3 Replies View Related

Formula To Calculate Holidays?

Jan 15, 2014

MLK day is the 3rd in January. I have a cell with the current Year 2014, which becomes input in the formula.

View 3 Replies View Related

Networkdays Formula Excluding Holidays

Feb 27, 2014

I have formula for working days which excludes holidays :

[Code] .....

Code works but I have monthly worksheet and macro for adding days in month. This formula's end date is in AI2 cell, which corresponds to 31th day of the month. Problem is that I get #REF error across all sheet when I delete last day columns, in month which have less than 31 days.

I know that this is the cell reference error because cell AI2 is deleted, but is there any solution for changing networkdays formula or replace It with something else that will work same, with range maybe ?

For now I just hide columns, which is o.k., but I would rather delete columns...

View 7 Replies View Related

Exclude Weekends And Holidays From A Formula.

Aug 27, 2009

I have been asked to create a worksheet to calculate the percentage of the utilisation of a number of loan cars per month. Each of the cars may be used on each and every day of the week but the percentage utilisation is to be calculated on working days only. However it is essential to record the name of the driver of the car at weekends and holidays. Column A is populated with the dates of the month. Colum B is populated with the relative days of the week. In column C and subsequent columns I record the name of the driver of a particular car registration. Is there any way that I can count the number of drivers of each car on working days only and not weekends or bank holidays?

View 5 Replies View Related

Different Holidays For One Networkday Function/Formula

Aug 16, 2006

my sheet has departure and arrival dates and each row can be for a transaction in a different country (there is an additional column with a 2 character ISO country code like GB, DE, FR,..)

I need to calculate networkdays but not every country observes the same holidays.
Networkdays function seems to allow a one dimensional list of holidays and I am looking for a 2-dimensional solution.

View 4 Replies View Related

Formula For Mapping IP Addresses To Private Or Public Defined Spaces?

Dec 31, 2013

I have a macro that pulls specific data from a CSV, then I copy that extract to my master excel doc (setup by year), so I can put the data into pivot tables and charts. This is used to create "management" style reports.

This data has IP addresses in it. Both internal and external. Trying to find a formula that will look at Cell A, where the IP address is and input either External or Internal into column AA, based on the number.

Internal would be numbers between 10.0.0.0 and 10.255.255.255, 172.16.0.0 and 172.31.255.255, and 192.168.0.0 and 192.168.255.255. Anything not in those three ranges would show as External.

View 6 Replies View Related

Shortening A URL

Jun 1, 2007

I have a very long column (almost 3000 cells) of URLs. I would like to replace them in the second column with shortened versions, basically cut them at the fourth slash.

how can I used functions in Excel to do it?

View 10 Replies View Related

Shortening Text With MID

Apr 2, 2008

I'm using this function to make a short description of a product from a long description.

=MID(K2,1,200)&"…"

So it's taking the first 200 characters of cell K2 and adding a ... to it.

Whats happening is it is splitting words and ending at character 200 instead of the end of the closest word to character 200.

Is there a way to alter this formula to break at the end of a word close to character 200?

Or is there a better way to do this?

View 9 Replies View Related

Shortening Code

Mar 20, 2008

How would I make the following code shorter/ more efficient? The columns don't vary much - either B, G or L. The rows vary a bit more....

View 9 Replies View Related

Shortening Data For Printout

Feb 9, 2014

I have a letter and numbers in the A column. example: (A001_C108_1231Xb)

This kind of numbers go from Column A1 : A1800.

I need to print them out, therefore I would like to fill every page which has 50 rows and 3 columns : A, D and G to write in the data.

I tried to do it manually, which is quite some work.

View 5 Replies View Related

Shortening Recorded Macro?

Jul 15, 2012

shortening the below recorded macro?

Code:
Sub Macro1()
'
' Macro1 Macro

[Code].....

View 3 Replies View Related

Shortening A Speed Sheet

Apr 18, 2008

weekly i have a report that is generated that is over 5000 lines and 4 columns wide.

I currently copy and paste one page column to make it 16 columns across the page. Is there a function in excel to do this?

View 9 Replies View Related

Shortening Code With Loop

Jan 16, 2007

How would I shorten this code using a loop and arrays? It is working correctly but needs to be shortened down.

Sub cr()
Dim j
Cells(1, 1).Interior.Color = RGB(250, 155, 100)
j = 0.09
Cells(1, 1).Value = j
Application.Wait Now + TimeValue("00:00:02")
j = 0.094
Cells(1, 1).Value = j
Application.Wait Now + TimeValue("00:00:02")
j = 0.043
Cells(1, 1).Value = j
Application.Wait Now + TimeValue("00:00:02")
j = 0.05
Cells(1, 1).Value = j
Application.Wait Now + TimeValue("00:00:02")
j = 0.034
Cells(1, 1).Value = j
Application.Wait Now + TimeValue("00:00:02")
j = 0.032.........................................

View 4 Replies View Related







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