Assume cell a1 has a date e.g. 01/08/2014
Assume cell a1 has a date e.g. 31/12/2014
What is the formula on a3 to find out how many
weekends are there i.e. saturday and sunday ?
Assume cell a1 has a date e.g. 01/08/2014
Assume cell a1 has a date e.g. 31/12/2014
What is the formula on a3 to find out how many
weekends are there i.e. saturday and sunday ?
=WEEKNUM(b1)-WEEKNUM(a1)
Hope this helps
Sometimes its best to start at the beginning and learn VBA & Excel.
Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
Available for remote consultancy work PM me
=INT(A2-A1-NETWORKDAYS(A1,A2))
Used Int() to set the cell formatting to general instead of changing as date.
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
or this
=ABS(NETWORKDAYS(A1,A2)-(A2-A1))
Format cell as General
Last edited by AlKey; 07-16-2014 at 10:19 AM.
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
If you're using Excel 2010 or later:
A1 = start date
B1 = end date
To count how many Saturdays and Sundays within the date range (inclusive):
=NETWORKDAYS.INTL(A1,B1,"1111100")
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Thanks i took that of nathansav , shorter
Sixthsense I will collection yours too , glad
to tell you I am still using you branch stocking
formula till date
You had corrected it if you recall for the prior
formula that had too many loops into one formula
Last edited by makinmomb; 07-16-2014 at 10:29 AM. Reason: credit to sixthsense
Apparently I misunderstood the question.
Though I should start a next thread for this ,
but it would be too short ,
Also looking for how many Fridays between
two range of dates
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks