اذهب الي المحتوي
أوفيسنا

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

  • أفضل إجابة
قام بنشر (معدل)

وعليكم السلام ورحمة الله تعالى وبركاته

ادا كان هدا  ما تقصده 

 10.PNG.5653537083402cf52a5d7cb2895adb4d.PNG

جرب هدا

=IFERROR(TEXT(DATE(2000+LEFT(B2,2),MID(B2,3,2),RIGHT(B2,2)),"DD/MM/YYYY"),"")

 او 

Option Explicit
Sub ConvertDate()
    
    Dim lr As Long, r As Long, xDate As String, n As String
    Dim scWS As Worksheet: Set scWS = Sheets("Sheet1")
    
    lr = scWS.Cells(scWS.Rows.Count, "B").End(xlUp).Row
    
    For r = 2 To lr
        xDate = scWS.Cells(r, "B").Value
        If xDate <> "" Then
            n = Format(DateSerial(2000 + Left(xDate, 2), _
                                             Mid(xDate, 3, 2), _
                                             Right(xDate, 2)), "dd/mm/yyyy")
            scWS.Cells(r, "D").Value = n
        End If
    Next r
End Sub

 

New Microsoft Excel Worksheet.xlsx

تم تعديل بواسطه محمد هشام.
  • Like 4

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