Adjusting Formula To Calculate Weekdays Only?

Feb 4, 2014

I have the following formula....

=IF(B6<1,"",IF(I6<1,"PENDING",IF(J6>0,J6-I6,"PENDING")))

Where B6 = Job Number
Where I6 = Date Received
Where J6 = Date Completed

This calculates calendar days but now I need it to calculate only business days.

Not sure where within this equation I should insert the NETWORKDAYS function

View 4 Replies


ADVERTISEMENT

Adjusting A Formula

Apr 18, 2008

I am trying to figure out a formula for the boss, but I just cannot wrap my mind around what I need to do. I’m sending out an S.O.S.! If you can figure this out, please respond.

=MIN(b4*12-25%,b4*12-500) + MIN(c4*12-25%,c4*12-500) fills in the cell with the correct answer, but not quite the answer that I need. Let me illustrate:

The first part of the formula is to take b4 times 12 minus 25% --if this amount is less than or equal to 500 then use the amount. If it is more than 500 then use 500.

(b4*12-25%)
234.25 * 12 = 2811 – 25% = 2811
2811 - 25% = 702.75 500 Since this amount is more than 500, 500 should be used instead. ~~this is actually the amount that I want to show in the cell, the amount saved~~
2811 - 500 = 2311 ~~this is the answer that is showing up in the cell, which is not quite what I need. ~~

I want to find the answer to this question: b4 times 12 equals ?, subtract 25% or 500 from that, insert this answer into cell.

One of my biggest problems with this is that I can’t even figure out how to say what it is that I need. The formula is doing exactly what I'm telling it to do and I can't even figure out what it is that isn't working. This formula is confusing my brain…!

View 9 Replies View Related

Using Dcount Formula - Count Number Of Weekdays With Data In It

Jan 24, 2012

I'm not sure if using the Dcount formula is the right one in my example below, but I can't get it to work. Here is my data:

A
B
C
D
E
F
G
H
1

ThrFriSatSunMon TueWedThr2
2030101512

I'm looking for a formula that would count the number of Weekdays with data in it. So the answer would be 3. As I enter data into column F, G, H, etc. the count would go up and would always skip "Sat" and "Sun".

View 2 Replies View Related

Adjusting Networkdays Formula

Jun 11, 2007

How would you adjust the network days formula so that Wednesday is considered a non-working day?

View 9 Replies View Related

Help With Auto Adjusting Date Formula

Apr 6, 2009

This should be simple but I can't get it...any help appreciated. See sample attached

View 6 Replies View Related

Adjusting Width Of OFFSET In SUMPRODUCT Formula?

Dec 12, 2011

I have a data set that is coming from an Access cross-tab query, with attribute values in the first four columns and two years of sales $ in the subsequent 24 columns, much like:

Product | Category | Region | District | Jan10$ | Feb10$ | Mar10$....etc

I am summarizing the data using multiple criteria, so I've been using SUMPRODUCT formulas that utilize dynamic named ranges. All the summaries have required summing the data by individual months only, so I created only one named range for the sales data and use OFFSET to determine which column to pull it from in the SUMPRODUCT formula, such as

=SUMPRODUCT( --( rngRegion = $A$1), --(rngProduct = $A$2), OFFSET( rngSalesData, 0, $A$3))

...where A3 represent the number of the month that I'm summarizing (i.e. October = 10, etc). This method worked great, but now I'm being asked to summarize data YEAR-TO-DATE. I thought this wouldn't be difficult, as I'd just use the width part of the OFFSET function to expand the range I want to sum. But its not working. I attempted this variation, where I'm trying to sum Jan10 - Oct10.

=SUMPRODUCT( --( rngRegion = $A$1), --(rngProduct = $A$2), OFFSET( rngSalesData, , , ,$A$3)

...but it just gives me the dreaded #VALUE! error. I stripped down the formula to try to find the problem until it was just

=SUMPRODUCT( OFFSET( rngSalesData, , , ,$A$3)

And that gives me the sum I expect for the 10 months of data. The problem seems to be when I add in the additional critiera like --(rngRegion = $A$1), then the #VALUE! error pops up. So I'm guessing the issue is with the sizes of the named ranges in the formula being different even though they aren't, and they work just fine when I'm not trying to leverage the width portion of the OFFSET function. Should I try using a different technique to sum these multiple columns together?

View 5 Replies View Related

Copying Formula On Entire Column Adjusting Some Values But Keeping Some The Same

Jun 28, 2014

How to express what I am trying to do in a sentence but basically I have this formula

[Code] ..........

I need B# to change automatally like it does when you copy the formula but i need the N1 and N2 to stay N1 and N2, how do i do this?

View 3 Replies View Related

Run VBA Every 24 Hour Only On Weekdays

Aug 28, 2012

I have a code that I have put in the ThisWorkbook section, and I thought it should work - but nothing happens....

Code:
Sub FirstSub()
Application.OnTime TimeValue(Sheets("SetUp").Range("G1").Text), "SecondSub"
ResetTime = Now() + 1
Application.OnTime ResetTime, "FirstSub"
End Sub
Sub SecondSub()
If Weekday(Now()) > 2 And Weekday(Now()) < 7 Then Call CreatePDF
End Sub

It's supposed to call a sub called CreatePDF.

View 9 Replies View Related

First And Last Weekdays Of Month

Nov 12, 2006

I need a function that recognizes the first and last weekdays (M-F) of the month. I would prefer to do this with a function and not VBA.

View 9 Replies View Related

Sum Weekdays And Sum Weekend

Aug 15, 2007

I have a sheet with alle days an date in one month

in column "A" the date (format: TTTT TT.MM.JJ)
in column "B" I have the worked hours

Below in the sheet I would to have to sums
each one for weekdays and weekends,

because my guys get more money if they work on a saturday or sunday.

I have been playing with the formulars
=sumif(weekdays(....., but cant geht the right thing

View 9 Replies View Related

Display Weekdays Only

Jan 3, 2008

I would like to have a spreadsheet where everyday of the month dislpays automatically

such as
01/01/08 in A1
01/02/08 in A2
etc.

According to a cell name Account Period (eg 200801)

But I don t want week end days to be displayed. In the same excel document, I have a sheet with all non working days and week end for 2008 and another sheet.

View 5 Replies View Related

Determine Weekdays Between Two Dates?

May 8, 2012

I need to run job between 4 July 2012 and 1 September 2012 but only Monday through Friday.

I have used weekdays() to find the name of dates between these two dates but need to narrow to Monday through Fridays.

View 1 Replies View Related

VLookups And Filling Weekdays Only

Jul 4, 2012

I have done a V-lookup that auto populates my project report doc with different lead times/dates depending on the product selected. Problem I have it that the dates being pulled through are for all calendar dates and not just working week days.

I know you can select a selection of dates and fill as week days however all of the dates on my primary sheet either have the project start date minus lead time formula or the vlook up formula in it. Filling week days overwrites any of this.

View 3 Replies View Related

Displaying Weekdays Only In A Cell?

Nov 20, 2012

TWO more days to turkey day. 3 more to BF --- yaaaaak! Anyway,

Iam trying to display only 3 workdays in each of three cells. Days displayed depend on today's date.

I am usinf the following but it displays SAT and SUN.

Q3 = today's date
=UPPER(TEXT(Q3+2,"DDDD")) displays THURSDAY
=UPPER(TEXT(Q3+3,"DDDD")) displays FRIDAY
=UPPER(TEXT(Q3+4,"DDDD")) displays SATURDAY -- would like it to display MONDAY

Q3 changes to reflect today's date
therefore this would display:
=UPPER(TEXT(Q3+2,"DDDD")) displays THURSDAY
=UPPER(TEXT(Q3+3,"DDDD")) displays FRIDAY
=UPPER(TEXT(Q3+4,"DDDD")) displays MONDAY

In other words I want to display only the week days in these 3 cells.

I tried:

=TEXT(WEEKDAY(INDIRECT("Q3")),"dddd")

but "Q3 + 2" will not work

the end result desired:

MONDAY
TUESDAY
WEDNESDAY

TUESDAY
WEDNESDAY
THURSDAY

[Code] ......

View 3 Replies View Related

Using AutoFill To Fill Down Weekdays

Dec 13, 2012

I have a column of dates in Col B that I need to update every day. I want a macro that will automatically fill down the date in the column, but it has to be a working day. So far I have this:

Code:
Range("B3").End(xlDown).Select
Selection.AutoFill Destination:=Range("B3:B" & lastrow), Type:=xlFillWeekdays

However this doesn't work. Obviously the range will need to be dynamic (i.e. it will change from day to day as new dates are added).

View 7 Replies View Related

Subtract Weekdays From Set Date

Dec 18, 2007

I need a formula which counts back a set number of weekdays from a given date. Eg. I am supplied with a project end date and need to schedule 25 week days prior.

I've searched a can only find formulas for the number of weekdays between 2 dates.

View 4 Replies View Related

Display Only Weekdays From Current Month

Dec 7, 2012

I have a worksheet that displays all the current months weekdays from a starting date in cell b2 using the weekday formula it works accross a row checking next day is a weekday and adding 1 but since some months have more weekdays than others the few cells that are sometimes not needed are then filled with a weekday from the next month how can I stop this? and only have the current months weekdays

View 3 Replies View Related

Sorting Weekdays By The First Four Letters In Cell

May 13, 2009

I have a column where the data is listing the day of the week and time worked. What I need is to sort the column by the first four letters in cell I used the left(e5,4) to return the letters in a helper column but when I sort it still not in the Monday -Friday order. example:

View 2 Replies View Related

Creating List Of 5 Dates On Weekdays?

Jul 30, 2012

I am currently assigning dates to a list manually by giving 5 dates on Mondays to Fridays. I currenly need to do this for around 500 rows and as you can imagine this takes some time.

Is there a way to have a formula that would assign for instance 5 dates on each weekday, purley by dragging the formula down?

For example....

ID
Date

a
07/30/12

b
07/30/12

[Code] ......

View 7 Replies View Related

List Weekdays Excluding Weekends

Sep 13, 2007

I want to get the list of days which are only weekdays ( excluding sat, sun but includes holidays during weekdays) I have tried WORKDAY function but it is not exactly i want coz it excludes holidays during weekdays as well.

View 5 Replies View Related

Conditional Weekdays (Dont Count The Weekends)

May 18, 2009

I am using office 2003 and I need to create the conditional (just like in the attached image), but I need that the days -1 (day) -2(days) or -3 (days) that are in the end of each formula, I need them to be weekdays (i don't want the to count weekends.

View 3 Replies View Related

Autofill Weekdays/skip Weekends In A Month

Nov 30, 2009

I would like to be able to auto fill weekdays (skipping Saturday & Sunday) in a month. For example, my spreadsheet would look like this if cell A1 contains12/01/09:

DATE WORKDAYS TASK

1-Dec 1 AP CLOSE - CAPITAL & POS ITEMS
1-Dec 1 POS MONTH END
1-Dec 1 HEALTH INSURANCE
2-Dec 2 DEPR SYSTEM RUN; INCL-SOFTWARE AMORT
2-Dec 2 SPECIAL EQUIPMENT
4-Dec 4 PRELIMINARY ENERGY REPORT
7-Dec 5 AP CLOSE - ALL OTHER ITEMS

The DATE column needs to return the date for WORKDAYS listed...Monday through Friday only. The first workday in Dec 2009 is 12/1, the fifth workday is 12/7, and so on.

View 2 Replies View Related

How To Fill In 2014's Weekdays Range Automatically

Jan 17, 2014

i had a problem to fill in weekdays of 2014 excluding friday and saturday as holidays.

View 2 Replies View Related

Test Cell Values Before Adding Weekdays

Jan 8, 2008

I have the followinf formula

=IF(A2="","",IF(C2>TODAY(),"",IF(E2="",IF(B2="1st",WORKDAY(A2,4,$H$1),WORKDAY(A2,5,$H$1)),C2)))

What I am trying to do is cause (where the formula is) to:

If A2 is empty, put nothing,
If C2 is greater than today put nothing, otherwise put C2
If E2 is empty then if b2 is "1st" add 4 workdays to A2, otherwise add 5 workdays.

I seem to have a problem with getting the formula to put the value of C2 if it is not greater than today In otherwords if the date in C2 is 6th Jan, i want 6th Jan as the result of the formula.

View 9 Replies View Related

How To Build Countifs Function With Varying Weekdays In Different Months

Aug 13, 2013

I have a file with 3 sheets with Sales data. First sheet is for capturing Sales data, second sheet, with some Weekly Analysis and Monthly Analysis using COUNTIFS, third is charts based on second sheet's formulas.

When I use COUNTIFS function to capture the monthly sales nos, the working days in different months vary from each, obviously. Some months have 20 days, some with 21 days, some with 22/23 days. How to write a correct code for varying working days, because I have to capture only the working days in a month, and in THAT MONTH only, leaving all Sat days and Sun days?

My formula goes like this in cell E3 and I have attached my sample file as well.

=COUNTIFS(Master!$B$2:$B$5000,">="&$D$2-30,Master!$B$2:$B$5000,
"<="&$D$2,Master!$C$2:$C$5000,"="&$D3)

eg: If I want to measure Monthly Sales performance for a salesman, Date of Sales Performance measure will be done on the last WorkingDay/WeekDay of that month, in the month Sep-2013, Performance will be taken on 30-Sep-2013, till the 21 weekdays backwards. i.e. 02-Sep-2013. In the month of Aug or Feb the no of weekdays differs.

View 2 Replies View Related

Custom Function: Count Weekdays Between Dates Shows #NAME

Aug 25, 2006

I know there have been posts regarding this before, but I can't quite get any of them to work. I'm trying to create a function which counts the number of working days between two dates. I've come up with the following code, but it doesn't work.


Function dayscount(Firstdate As Date, Lastdate As Date)
Dim x As Long
x = 0
For i = Firstdate To Lastdate
If WorksheetFunction.Weekday(i, 1) > 1 And WorksheetFunction.Weekday(i, 1) < 7 Then
x = x + 1
End If
Next i
daycount = x
End Function

I then use the formula "dayscount(A1,B1)", where A1 is my first date, and B1 is my last date.

View 9 Replies View Related

Adjusting Row Height To Fit Text

Dec 10, 2012

How Auto Resize (height) cell to fit text? (macros, formulas, setting)? One can make the height of the cell is reset according to the amount of text?

ej..jpg

View 4 Replies View Related

Adjusting Height Of Rows?

Jan 30, 2014

I'm writing a code to adjust the height of the row based on the wraped lines. I want it to be "16.5 * (number of lines)".

First I counted the number of lines in each cell. I wrote at D1 the formula to calculate the lines at A1:

=LEN(A1)-LEN(SUBSTITUTE(A1;CHAR(10);""))+1

Then I wrote this vba code to adjust the height:

Sub AdjustHeight()
Dim x As Double
x = 1
For Each Cell In Range("A1: A11")
Cell.RowHeight = 16.5 * CELL(D"x")
x = x + 1
Next Cell
End Sub

How do I do that multiplication? How can I tell it to multiply 16,5 with the value of the cell D"x"? Is this the best way?

View 2 Replies View Related

Adjusting If -Then Statement In Code

Dec 8, 2009

I am trying to make some additions to this code. Basically what it does is copy some data from another sheet. Now there are two types of copying here.

1. A ‘call value’ from another sheet is copied to this sheet.

2. The formula from the previous cell in the column is copied. (eg. Formula in C3 is copied to C4, formula in D3 is copied to D4, and so on)

So the macro works fine for all cases EXCEPT the initial entry, which will be in Row3, that’s where the formulae begin. So I need some kind of an If-Then statement.. to say if A3 is empty then do the following, If not then do something else....

View 12 Replies View Related

Automatically Adjusting Vlookup

Oct 22, 2008

I have a table upon which I wish to perform vlookups, however I need to be able to adjust the range that the vlookup searches to include any data that may be added in the future without having to go into the sheets and change the vlookup.

Example

Name DOB
Tom 01/01/81
Dick 02/02/82
Harry 03/03/83

if someone then adds

Fred 04/04/84

I would like the vlookup to automatically accommodate the extra entry without needing any changes.


I've seen this done on data validation with the following formula:

=OFFSET($a$1,0,0,MATCH(REPT("z",255),$A:$A))

It only needs to do new rows, not columns.

View 9 Replies View Related







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