Hi all,
I'm trying to find number of Mondays and Saturdays in a date range. Could some assist with the formula pls.
For eg: between 01/01/19 and 31/01/19 how many Mondays and Saturdays. I found no of week days using NETWORKDAYS. but I need it for everyday.
Please advice
Thanks
Count days in date range
Re: Count days in date range
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Count days in date range
Yes, that's right because the division counts the the time spans between the Xdays. Just append +1 to the last formula.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Count days in date range
Code: Select all
= INT(($C$4-2)/7) - INT(($C$3-2)/7) + (MOD($C$4-2; 7)>=$C$5) + (MOD($C$3-2; 7)<=$C$5) - 1
C4 - End date
C5 - Select number from 0 to 6 for monday, tuesday, etc.
LibreOffice 7.6.6.3 on Ubuntu 22.04.4 LTS
Re: Count days in date range
YEP!lader wrote:C3 - Start dateCode: Select all
= INT(($C$4-2)/7) - INT(($C$3-2)/7) + (MOD($C$4-2; 7)>=$C$5) + (MOD($C$3-2; 7)<=$C$5) - 1
C4 - End date
C5 - Select number from 0 to 6 for monday, tuesday, etc.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice