اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

صرف بدل ايام العطلات الرسمية الجمعة والسبت


إذهب إلى أفضل إجابة Solved by lionheart,

الردود الموصى بها

السلام عليكم ورحمة الله وبركاته كل عام وانتم بخير بحلول شهر رمضان الكريم المبارك بعد اذنكم ممكن معادلة تظهر يوم الجمعة والسبت بناء على الخلية k6 عند كتابة التاريخ في الخلية k6 يظهر لى يوم الجمعة والسبت خلال الشهر وهذا جدول يوضح المطلوب

صرف بدل ايام العطلات الرسمية الجمعة والسبت.xlsx

رابط هذا التعليق
شارك

  • أفضل إجابة

 For Excel 365, use the following formula in cell D11 (Clear the range first from D11 to D25) then put the formula

=TEXT(FILTER(SEQUENCE(DAY(EOMONTH(K6,0)),,EOMONTH(K6,-1)+1,1),WEEKDAY(SEQUENCE(DAY(EOMONTH(K6,0)),,EOMONTH(K6,-1)+1,1),1)>=6),"ddd")

In cell E11, use the formula

=TEXT(FILTER(SEQUENCE(DAY(EOMONTH(K6,0)),,EOMONTH(K6,-1)+1,1),WEEKDAY(SEQUENCE(DAY(EOMONTH(K6,0)),,EOMONTH(K6,-1)+1,1),1)>=6),"dd/mm/yyyy")

 

For older version of excel

-------------------------------

In cell D11, use the formula

=IF(MONTH($K$6-MOD(WEEKDAY($K$6,1)-6-IF(WEEKDAY(DATE(YEAR($K$6),MONTH($K$6),1),1)=7,1,0),7)+IF(WEEKDAY($K$6,1)<6,7,0)+7*(INT((ROW()-11)/2)))=MONTH($K$6),$K$6-MOD(WEEKDAY($K$6,1)-6-IF(WEEKDAY(DATE(YEAR($K$6),MONTH($K$6),1),1)=7,1,0),7)+IF(WEEKDAY($K$6,1)<6,7,0)+7*(INT((ROW()-11)/2)),"")

In cell D12, use the formula

=IFERROR(IF(MONTH(IF(WEEKDAY(E11)=6,E11+1,IF(WEEKDAY(E11)=7,E11+6,"")))>MONTH($K$6),"",IF(WEEKDAY(E11)=6,E11+1,IF(WEEKDAY(E11)=7,E11+6,""))),"")

Select the cells D11 & D12 and drag them

 

Do the same exactly for E11 & E12

تم تعديل بواسطه lionheart
  • Like 4
رابط هذا التعليق
شارك

هذه دالة من أبي هادي:
 

Function CountWkDay(ByVal Date1 As Date, _
                    ByVal Date2 As Date, _
                    WkDay As Byte) As Long
    'WeekDay Counter
    Date1 = Date1 - 1
    Date1 = Fix((Date1 + (7 - WkDay)) / 7)
    Date2 = Fix((Date2 + (7 - WkDay)) / 7)
  
    CountWkDay = Date2 - Date1
End Function

وهذه طريقة استخدامها:
 

= CountWkDay(K6, K7, 6) + CountWkDay(K6, K7, 7)

جربوا المثال:
 

صرف بدل ايام العطلات الرسمية الجمعة والسبت_02.xlsm

  • Like 3
  • Thanks 1
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information