Count Full Weeks Monday Through Sunday Between 2 Dates

Jul 16, 2014

Another thread that wanted to count "weekends" got me to thinking about this one:

Count the full weeks (from Monday thru Sunday) between 2 dates.

For example...

Data Range

A
B
C
D
E
F

1
Date
Weekday
------
Start
End
Weeks

2
8/1/2013
Thu

8/1/2013
8/15/2013
1

3
8/2/2013
Fri

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

Full Monday thru Sunday weeks = 1

This array formula** entered in F2:

=(MAX(IF(WEEKDAY(ROW(INDIRECT(D2&":"&E2)),2)=7,ROW(INDIRECT(D2&":"&E2))))-MIN(IF(WEEKDAY(ROW(INDIRECT(D2&":"&E2)),2)=1,ROW(INDIRECT(D2&":"&E2))))+1)/7

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER).

Hold down both the CTRL key and the SHIFT key then hit ENTER.

The logic of the formula is:

The max Sunday date within the date range minus the min Monday date within the date range +1 = total days divided by 7 (days in a full week) = full weeks

View 14 Replies


ADVERTISEMENT

Add Weekly Values From Monday To Sunday?

Jul 30, 2014

The required results from the below data are:

Required Result
Week 25 = Batches 25
Week 26 = Batches 40

Data

Data - Day

No. of Batches

16/06/14 Mon

5

17/06/14 Tue

6

18/06/14 Wed

9

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

View 9 Replies View Related

Dynamic Weekly Graph To Run From Monday To Sunday?

Oct 3, 2011

Is there a way to create a dynamic chart to automatically run from the most recent Monday to Sunday. So on Monday the entire chart will reset?

View 9 Replies View Related

Week Starting On Saturday Instead Of Sunday Or Monday? (formula Not Macro)

Feb 8, 2012

Can weeknum work with the week starting on saturday instead of sunday or monday?

if not, what are my options?

View 4 Replies View Related

Move Date To Next Monday If Date Is On Friday / Saturday Or Sunday

Aug 24, 2014

I have a list of dates and I need a formula that will return the date of the following Monday, IF the date falls on a Friday, Saturday or Sunday.

View 3 Replies View Related

How To Get Only (Sunday) Highlighted In A Series Of Dates In Columns

May 19, 2014

How to get "only Sunday" highlighted in a series of dates included in excel columns. I tried some formulas found from the web pages, but they all deal with both "Saturday and Sunday"...

View 6 Replies View Related

Count Days Excluding Only Sunday?

Jun 5, 2014

how to count days excluding only sundays in a calender period.

"weekdays" excludes both saturdays and sundays.

View 3 Replies View Related

Count Number Of Days Except Sunday

Jan 6, 2009

In B13 I have the start date: 12/1/2008
In C13 I have the end date: 1/5/2009
In cell D13 I want a formula that counts the number of days between the two dates that are not Sunday. The start and end dates are included in the count.

I have created this formula using Ctrl + Shift + Enter:

{=SUM(IF(WEEKDAY(ROW(INDIRECT(B13&":"&C13)),2)7,1,0))}

I have also created this formula using Ctrl + Shift + Enter:

{=SUM(IF(TEXT(ROW(INDIRECT(B13&":"&C13)),"ddd")"Sun",1,0))}

They both seem to work. I get a result of 31.

Is there a formula that is better than this, more efficient than this, or "less expensive"?

View 9 Replies View Related

Weekly Leave Planner Reflecting Monday Dates??

Jan 22, 2010

Is there any weekly leave planner that shows the dates of the mondays in the month? eg in Jan we have 4,11,18,2

View 3 Replies View Related

Macro Code To Get Saturday And Sunday Dates On Inputting Year

Jan 16, 2014

I am looking for Macro code preferably to get list of dates with Saturday / Sunday in a separate columns which falls Saturday and Sunday on imputing the year.

View 5 Replies View Related

6 Months Ahead If Falls On Monday If Not Next Monday Date

Sep 23, 2007

I am currently using this formula =DATE(YEAR(A1),MONTH(A1)+6,DAY(A1)) to get me 6 months ahead from a certain date. There is a new problem that has arose for me. I need a formula that will give me 6 months from a certain date if it falls on a Monday if the 6 months does not fall on a Monday then give me the next Monday date.
for example 6 months from 1/2/2007 is 7/2/2007 which falls on a Monday which is fine but, If the start date was 1/3/2007 this falls on a Tuesday so I would need the next Monday date 7/9/2007.

View 9 Replies View Related

Formula / Adding 2 Days To Saturday And Sunday For Count?

May 12, 2013

=IF($C2="","",IF(NETWORKDAYS($A2,$C2+1)

View 9 Replies View Related

Converting Dates To Weeks

Jun 27, 2013

Is there a way to convert data that has dates to week by week? such was week 1 week 2 week 3 etc....

View 8 Replies View Related

Converting Dates To Weeks

Jul 20, 2006

I require a worksheet function or group of function that will allow me to
convert my dates of format dd/mm/yyyy to Week 1, Week 2, Week 3, Week 4.

View 10 Replies View Related

Turning Dates Into Weeks

Jan 14, 2009

"Decision Date". It is a numerical date (ex: 1/5/09 indicating January 5th 2009).

I need to turn that date into the week that it falls into within a particular quarter of a year.
1/5/09 would be Week 2 (it is in the second week of January, and 2nd week of the quarter)
2/3/09 would be week 6 (6th week of the quarter).

And then I need the formula to start over once each quarter restarts... for example, April 1st would be week 1 (1st week of the second quarter).

View 9 Replies View Related

Counting Weeks INVOLVED Between 2 Dates

Nov 3, 2008

I've been having problems coming up with a formula that will take a start date and an end date and come up with the number of weeks INVOLVED within this date range (each week being a Sunday through Saturday).

My problems is that the start and end dates could be any day of the week and not necessarily the same day (meaning divisible by 7 doesn't always work). I tried using ROUND((A2-A1)/7,0)+1 where A1 was the start date...and A2 was the end date.

The problem I had was if I picked a Monday as the start date, and went 12 days out (The saturday of week2)...it came up stating 3 weeks were involved - AND if I selected a Friday start date and picked the following monday in week 2 - the result was 1 week involved when 2 different weeks were involved.

View 4 Replies View Related

Formula To Calculate Weeks Between Two Dates?

Jan 13, 2014

find the formula to calculate how many weeks between two dates for example. I how many weeks between

December 23, 2013
January 5, 2014 = 2w

January 6, 2014
January 19, 2014 =2w

January 20, 2014
February 2, 2014

View 2 Replies View Related

Adding Weeks Or Months To Dates

Dec 17, 2006

a sample of my sheet first....

View 9 Replies View Related

Grouping Dates Into Weeks Without Using A Pivot Table

Oct 16, 2009

I have a large spreadsheet which lists individual dates over two years and circulation figures next to each date. Sometimes there are two entries for a particular date e.g. 1/10/08 there were 150 readers of magazine A and 200 readers of magazine B. When displaying this on a graph it give a bar for each day, whereas I would like a bar for each week.

Is there a formula to convert the individual dates into weeks and then total the circulation figures for that week?

Column A = Dates
Column B = Circulation Figures

View 9 Replies View Related

Automatically Count Weeks

Jul 26, 2008

Hereīs the deal: based on weekly reports, I need to count and sum orders created in our CRM.

Iīm exporting, once a week, a full report of opportunities created in our CRM. Week after week I copy&paste the changes to my main file or dashboard. This allows me to see, manually four values my sales manager wants:

1. Opportunities created in the last week
2. Opportunities created in the last 2 weeks
3. Opportunities created in the last month
4. YTD

I donīt need help with the last one, thatīs the easy part. The thing is, I have to do this manually. Every thursday I run the report, export it, find the new opportunities and add them to my main report. Then, I just modify an already defined IF formula that counts and a SUMIF one that sums the values, so it will take into account only the last week, the one before that one and the whole month.

So, my questions are...

1. I need to set different formulas for count and sum, thatīs clear, but how can I make this autimatically without having to change the formula each week?

2. Do I need to consider the date my main file is modified, and count backwards?

As usual I am not sure Iīm being clear, though I hope Iīm getting better at this. Iīm attaching an example where B2:D7 is similar to my main report, and G4:M12 is my DataTable.

The formulas in C4, C5, C6, D4, D5, D6 should be "automatic", so when I copy&paste the extra rows from the weekly reports into my datatable, those cells will count and sum without me having to change the period in the formulas.

View 9 Replies View Related

Count Weeks Delayed

Sep 19, 2009

how create a formula in D2 to D27 using the date A1 = (A2 to A27), and calculate how many weeks delayed comparing the value of Cum Actual (B1) if it less than, equal or greater than the value of Cum Planned (C1).

Sheet1

ABCDE1Week26-Jul-09Cum ActualCum PlannedDelayed2105-Apr-09 - 83.27
3212-Apr-09 - 237.00
4319-Apr-09 - 416.36
5426-Apr-09 - 570.09
6503-May-09 - 672.58
7610-May-09 - 826.31
8717-May-09 667.16 1,005.67
9824-May-09 667.16 1,244.25
10931-May-09 667.16 1,431.81
111007-Jun-09 667.16 1,646.79
121114-Jun-09 908.16 1,831.06
131221-Jun-09 1,345.16 2,046.04 ..............................

View 9 Replies View Related

VBA To Read Full Dates Not Just The Day

Aug 5, 2009

I have a macro which searches for the latest date down a column and across particular rows. Extract of the code is shown below:

View 11 Replies View Related

Number Of Full Months Between Dates

Jun 8, 2007

I want to calculate leave on the basis of Date of joining (DOJ). Rule is:
If DOJ is not he first day of the month, then no leave is earned for that month. Suppose DOJ is 26/12/2006, for Dec.2006 no leave is earned. One leave will be earned in January 2007 & subsequent months.

But if DOJ is 01/12/2006, then one leave will be earned in Dec.2006 & subsequent months also.

A zip file containg two excel files is attached for ready reference.

View 9 Replies View Related

How To Count Back 4 Weeks Skipping Blank Cells

Feb 7, 2014

I am using excel to analyze stock changes. Yahoo spits out a column with dates and another with closing prices but occasionally inserts a row showing a dividend, something like this:

Date Closing price
12/30/13 120
12/23/13 118
12/16/13 119
12/9/13 117
12/2/13 115
11/25/13 116
11/22/13 dividend 0.23
11/18/25 116
11/11/13 115

In the spreadsheet, column A is date and Column E is closing price, such that the cell in column E where the dividend is listed is blank.

The problem- as I update data each week, the dividend row moves. How can I consistently figure price changes for 4 weeks and 13 weeks without getting messed up by the dividend row? Is there to auto delete the row or make the formula count down 4 cells in the price column, while skipping any cells without data?

View 2 Replies View Related

Count Values In Weeks Estimated If Actual Figure Is Also There?

May 6, 2014

I'm trying to see how accurate people's work predictions are to actual work completed. So I have these formulas:

=IF(C15=0,"",(SUMIF(L$24:IO$24,"Est.",L15:IO15))) - total estimated days
=IF(C15=0,"",(IFERROR((SUMIF(L$13:IO$13,"Act.",L15:IO15)),""))) - total actual days

But the problem of course is that people estimate a load of work and only fill in the actual days as they go along, so the accuracy of comparing one to another is almost always misleading.

What I want to do is only count the values in the weeks Estimated if the Actual figure is also there (L24:IO24), which is always the cell directly on its right.

View 3 Replies View Related

Excel 2007 :: Create Bar / Count Weeks And Colour Bar From Input Date?

Feb 14, 2012

I am trying to simplify a type of gannt chart bar across a spreadsheet. The spreadsheet has dates across row 3 that are calculated from the first cell F3 with =F3+7 to populate the rest of the row with dates. I want to be able to input a start date in D4, then all the other titles in column A. This start date will start the coloured bar at that start date in the chart, I will then copy/drag that start date cell for however number of weeks for the duration and I want the finish date to auto populate E4 with the finish date and also auto populate the numbers of weeks in C4 for that bar.

Excel 2007ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANA
OAPAQARASATAUAVAWAXAYAZBABBBCBDBEBFBGBHBIBJBKBLBMBNBOBPBQBRBSBTBUBVBWBXBYBZ
CACBCCCDCECFCG1D42342McArthur River Mine Power

[Code]....

View 9 Replies View Related

Convert Sunday 8 January To Sunday 9 January Using Formula

Nov 17, 2012

I am trying to update a spreadsheet for 2012 to 2013 and want to use a formula to change SUNDAY 8 January to Sunday 9 January and so on for rest of year.

View 1 Replies View Related

If Statements: Option Of Between 3 Weeks And 6 Weeks

Sep 7, 2009

i currently have a what if statement

=IF(B2>=NOW()-42,"< 6 wks","> 6 wks")

I need it to also give an option of between 3 wks and 6 weeks

Therefore all options are

3-6 WKs
< 3 WKs
> 6 WKs

I have mastered 2 but now need a 3rd.

View 7 Replies View Related

Convert List Of Dates To Count No. Of Dates By Week

Jan 27, 2006

Basically I have 2 columns each with a list of dates in no particular order (and containing blank cells too), one planned date column and one actual date column.

What I need to do is plot this on a graph, and since the number of dates has no set limit and I dont want to have to plot maybe 100 dates on the x axis, so i want to group them by week before plotting them, i.e. 10 dates for week ending 10th jan, 25 dates for week ending 17th jan etc

I have a pivot table that counts how many of each date occurs, i.e. 10 x 2nd jan, 7x 3rd jan etc etc but it does not split them into weeks.

im sure theres an easyish way of doing it so i can get the 2 lines on the graph for no. of planned dates each week and no. of actual dates each week, i just cant see it.

View 13 Replies View Related

Count Working Days Between 2 Dates, But Return A Zero If The 2 Dates Are The Same Day

Jan 15, 2009

Today I am having a very annoying problem that really has me stumped – I need to work out the lag between a Due Date and Delivered Date

But as people sometimes manage to deliver on the Due Date it needs to show a zero (as in they got it in on time) but using the formula below the result is a 1 and I want a zero

Can anyone help me please? I have tried putting assorted -1s in to the formula and it looks like it might work until I copy down and find that if a person delivered one day early the result shows -3 for example!

View 7 Replies View Related







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