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

عدد القيم بالاعتماد على عدة خلايا


إذهب إلى أفضل إجابة Solved by سليم حاصبيا,

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

  • أفضل إجابة

جرب هذا الماكرو

Option Explicit

Sub Count_My_Colors()
Dim lr%, i%, x%, y%
lr = Cells(Rows.Count, 5).End(3).Row
For i = 1 To lr
 If Cells(i, 5).Interior.ColorIndex = _
  Range("I3").Interior.ColorIndex Then x = x + 1
 If Cells(i, 5).Interior.ColorIndex = _
  Range("J3").Interior.ColorIndex Then y = y + 1
Next
Range("I3") = Switch(x = 0, "Zero", True, x)
Range("j3") = Switch(y = 0, "Zero", True, y)
End Sub

الملف مرفق

 

Dragon.xlsm

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

dragon2007

فين انت من هذه الإجابة الممتازة ؟!!!

أين الضغط على الإعـــجـــــاب ؟!!!💙:clapping:

تم تعديل بواسطه أحمد يوسف
رابط هذا التعليق
شارك

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