Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
lavinia.monica la Simpatie.ro
Femeie
24 ani
Timis
cauta Barbat
26 - 67 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] Find How Many Legal Holidays are Between Two Dates Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 787
In order to calculate, let's say how many free legal holidays (like Easter etc.) were between 2 given dates, first you need to put in a column all the legal holidays in your country, then the start date and end date in 2 different cells.

My range for legal holidays is: N2:N16
My start date and end date: B17 and D17

I couldn't find a simpler formula for this to work.

=IF(AND($N$2>=$B17;$N$2<=$D17);1;0)+IF(AND($N$3>=$B17;$N$3<=$D17);1;0)+IF(AND($N$4>=$B17;$N$4<=$D17);1;0)+IF(AND($N$5>=$B17;$N$5<=$D17);1;0)+IF(AND($N$6>=$B17;$N$6<=$D17);1;0)+IF(AND($N$7>=$B17;$N$7<=$D17);1;0)+IF(AND($N$8>=$B17;$N$8<=$D17);1;0)+IF(AND($N$9>=$B17;$N$9<=$D17);1;0)+IF(AND($N$10>=$B17;$N$10<=$D17);1;0)+IF(AND($N$11>=$B17;$N$11<=$D17);1;0)+IF(AND($N$12>=$B17;$N$12<=$D17);1;0)+IF(AND($N$13>=$B17;$N$13<=$D17);1;0)+IF(AND($N$14>=$B17;$N$14<=$D17);1;0)+IF(AND($N$15>=$B17;$N$15<=$D17);1;0)+IF(AND($N$16>=$B17;$N$16<=$D17);1)


pus acum 1 an
   
Pagini: 1  

Mergi la