انتقل إلى المحتوى الرئيسي

كيفية إخفاء الصفوف بناءً على قيمة الخلية في إكسيل؟

لنفترض أن لديك نطاقًا من البيانات ، وتريد إخفاء الصفوف بناءً على قيمة العمود ، على سبيل المثال ، إذا كانت قيمة خلية العمود أصغر من 3000 ، فقم بإخفاء صف الخلية كما هو موضح أدناه.


في Excel ، يمكنك استخدام وظيفة التصفية لتصفية وإخفاء الصفوف بناءً على قيمة الخلية.

1. حدد البيانات التي تريد تصفيتها ، وانقر فوق البيانات > منقي. انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 2

2. ثم انقر فوق السهم لأسفل لعرض قائمة التصفية المنسدلة ، ثم انقر فوق مرشحات الأرقام (أو مرشحات النص) > أكثر من (يمكنك اختيار معيار آخر تحتاجه من القائمة الفرعية). انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 3

3. في مربع الحوار المنبثق ، اكتب المعيار في مربع النص المجاور لـ "أكبر من". انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 4

4. انقر OK. الآن يتم عرض البيانات الأكبر من 3000 فقط ، ويتم إخفاء الصفوف التي تكون بياناتها أصغر من 3000.

doc إخفاء الصفوف بناءً على القيمة 5


علاوة على ذلك ، إذا كنت مهتمًا برمز VBA ، فيمكنني هنا تقديم رمز VBA لإخفاء الصفوف بناءً على قيمة الخلية.

1. صحافة ALT + F11 مفاتيح للتمكين ميكروسوفت فيسوال باسيك للتطبيقات نافذة.

2. ثم اضغط إدراج > وحدة لفتح ملف وحدة نافذة ، ولصقها أدناه رمز VBA.

فبا: إخفاء الصفوف بناءً على قيمة الخلية.

Sub HideRow()
'Updateby20150618
Dim Rng As Range
Dim WorkRng As Range
Dim xNumber As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xNumber = Application.InputBox("Number", xTitleId, "", Type:=1)
For Each Rng In WorkRng
    Rng.EntireRow.Hidden = Rng.Value < xNumber
Next
End Sub

3. ثم اضغط F5 مفتاح لتشغيل VBA ، ثم حدد نطاق البيانات الذي تريد إخفاء الصفوف في مربع الحوار المنبثق (باستثناء الرؤوس). انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 6

4. انقر OK، واكتب رقم المعيار في مربع الحوار الثاني. انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 7

5. انقر OK. يتم الآن إخفاء الصفوف التي تكون بياناتها أصغر من 3000.

تلميح: إذا كنت تريد إخفاء الصفوف الأكبر من 3000 ، فغيّر فقط Rng.EntireRow.Hidden = Rng.Value <xNumber إلى Rng.EntireRow.Hidden = Rng.Value> xNumber، أو إذا كنت تريد إخفاء الصفوف التي تساوي بياناتها 3000 ، فقم بالتغيير إلى Rng.EntireRow.Hidden = Rng.Value = xNumber.


حدد الخلايا بسرعة بناءً على المعايير في Excel

مع كوتولس ل إكسيل حدد خلايا معينة، يمكنك تحديد الخلايا بناءً على معيار واحد أو معيارين مرة واحدة. 
doc حدد خلايا معينة
 
Kutools for Excel: مع أكثر من 300 وظيفة إضافية مفيدة في Excel ، يمكنك تجربتها مجانًا دون قيود في أيام 30

إذا كنت لا ترغب في تمكين وظيفة التصفية ، ولا إلى VBA ، فإني أقدم لك هنا أداة مفيدة - حدد خلايا معينة of كوتولس ل إكسيل لتحديد الصفوف بأكملها بسرعة بناءً على قيمة الخلية ، ثم يمكنك إخفاؤها.

كوتولس ل إكسيل, مع أكثر من 300 وظائف يدوية ، تجعل مهامك أكثر سهولة. 

بعد تركيب مجاني Kutools for Excel ، يرجى القيام بما يلي:

تلميح. إذا كنت ترغب في الحصول على نسخة تجريبية مجانية من وظيفة استخراج النص ، يرجى الانتقال إلى تجربة Kutools for Excel مجانًا اولا ثم انتقل لتطبيق العملية حسب الخطوات اعلاه.

1. حدد نطاق البيانات وانقر كوتولس > أختار > حدد خلايا معينة. انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 14

2. في ال حدد خلايا معينة الحوار ، تحقق الصف بأكمله مع نوع التحديد ، ثم حدد المعيار الذي تريده نوع خاص أو معين list ، ثم اكتب الرقم أو النص في مربع النص. انظر لقطة الشاشة:

doc إخفاء الصفوف بناءً على القيمة 9

3. انقر Ok > OK لإغلاق الحوارات. الآن يتم تحديد الصفوف التي تكون بياناتها أصغر من 3000 ، وتحتاج فقط إلى النقر بزر الماوس الأيمن فوق رأس الصف لإظهار قائمة السياق ، والنقر فوق إخفاء. انظر لقطة الشاشة:
doc إخفاء الصفوف بناءً على القيمة 10

يتم الآن إخفاء الصفوف التي تكون بياناتها أصغر من 3000.

doc إخفاء الصفوف بناءً على القيمة 11

تلميح:

1. إذا كنت ترغب في إخفاء الصفوف التي تتضمن قيمة معينة ، يمكنك الاختيار يحتوي واكتب قيمة معينة في مربع النص.

doc إخفاء الصفوف بناءً على القيمة 12

2. إذا كنت تريد إخفاء الصفوف التي تتضمن قيمة أكبر من القيم ولكن أقل منها ، يمكنك التحديد اعظم من و أقل من، ثم اكتب القيم في المربعين ، وتحقق و.

doc إخفاء الصفوف بناءً على القيمة 13

مع كوتولس ل إكسيل حدد خلايا معينة الأداة المساعدة ، يمكنك تحديد موقع خلايا معينة وتحديد صفوف أو أعمدة بأكملها بناءً على قيمة الخلية وما إلى ذلك. انقر هنا لمعرفة المزيد عن هذه الأداة.

Kutools for Excel: أكثر من 300 وظيفة يجب أن تكون لديك في Excel، نسخة تجريبية مجانية لمدة 30 يومًا من هنا.

أفضل أدوات إنتاجية المكتب

🤖 مساعد Kutools AI: إحداث ثورة في تحليل البيانات على أساس: التنفيذ الذكي   |  إنشاء التعليمات البرمجية  |  إنشاء صيغ مخصصة  |  تحليل البيانات وإنشاء الرسوم البيانية  |  استدعاء وظائف Kutools...
الميزات الشعبية: البحث عن التكرارات أو تمييزها أو تحديدها   |  حذف الصفوف الفارغة   |  دمج الأعمدة أو الخلايا دون فقدان البيانات   |   جولة بدون صيغة 
سوبر بحث: معايير متعددة VLookup    VLookup ذات القيمة المتعددة  |   VLookup عبر أوراق متعددة   |   بحث غامض ....
قائمة منسدلة متقدمة: إنشاء القائمة المنسدلة بسرعة   |  القائمة المنسدلة التابعة   |  قائمة منسدلة متعددة التحديد ....
مدير العمود: إضافة عدد محدد من الأعمدة  |  نقل الأعمدة  |  تبديل حالة رؤية الأعمدة المخفية  |  مقارنة النطاقات والأعمدة 
الميزات المميزة: التركيز على الشبكة   |  عرض تصميم   |   شريط الفورمولا الكبير    مدير المصنفات والأوراق   |  مكتبة الموارد (النص السيارات)   |  منتقي التاريخ   |  اجمع أوراق العمل   |  تشفير/فك تشفير الخلايا    إرسال رسائل البريد الإلكتروني عن طريق القائمة   |  سوبر تصفية   |   مرشح خاص (تصفية غامق / مائل / يتوسطه خط ...) ...
أفضل 15 مجموعة أدوات12 نص الأدوات (إضافة نص, إزالة الأحرف، ...)   |   +50 رسم الأنواع (مخطط جانت، ...)   |   40+ عملي الصيغ (احسب العمر على أساس تاريخ الميلاد، ...)   |   19 إدخال الأدوات (أدخل رمز الاستجابة السريعة, إدراج صورة من المسار، ...)   |   12 تحويل الأدوات (أرقام إلى كلمات, نتيجة تحويل عملة، ...)   |   7 دمج وتقسيم الأدوات (الجمع بين الصفوف المتقدمة, تقسيم الخلايا، ...)   |   ... و اكثر

عزز مهاراتك في Excel باستخدام Kutools for Excel، واختبر كفاءة لم يسبق لها مثيل. يقدم Kutools for Excel أكثر من 300 ميزة متقدمة لتعزيز الإنتاجية وتوفير الوقت.  انقر هنا للحصول على الميزة التي تحتاجها أكثر...

الوصف


يجلب Office Tab الواجهة المبوبة إلى Office ، ويجعل عملك أسهل بكثير

  • تمكين التحرير والقراءة المبوبة في Word و Excel و PowerPointوالناشر والوصول و Visio والمشروع.
  • فتح وإنشاء مستندات متعددة في علامات تبويب جديدة من نفس النافذة ، بدلاً من النوافذ الجديدة.
  • يزيد من إنتاجيتك بنسبة 50٪ ، ويقلل مئات النقرات بالماوس كل يوم!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Yes, "Entire Row" is selected.
This comment was minimized by the moderator on the site
All rows remain selected without using Kutools. As soon as I use Kutools and select header row, all other rows but the header row de-select.
This comment was minimized by the moderator on the site
Are you sure check the Entire row option in the dialog? If you check cell option, the selected cells will be unselected when you right click at one row.
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-select-specific-cell-1.png
This comment was minimized by the moderator on the site
Hi - I'm using a newer Lenovo PC with Windows 10 Professional and Microsoft 365 Apps for business. Excel Version 2210 (Build 15726.20202 Click-to-Run).
This comment was minimized by the moderator on the site
I have tried the operation in the same version with you, there is no any problem. Could you try to manually select several rows (without using Kutools for Excel), then right click at one row header, see all rows are remained selecting?
This comment was minimized by the moderator on the site
I have done exactly what you've demonstrated. However, when I right-click on the row header, all other rows become de-selected and only that one row remains selected to be hidden or deleted. No matter what I do, the other rows do not stay selected when right-clicking on the header. I'm at a loss to know what to do now.
This comment was minimized by the moderator on the site
I am so sorry for that. Could you tell me what Excel version and system you use?
This comment was minimized by the moderator on the site
Hello,

That is exactly what I've been doing, however, it only hides the row on which I have clicked the row header. All other selected rows remain unhidden, and are deselected at the same time. I will try it again following your gif exactly. Thanks for your reply.
This comment was minimized by the moderator on the site
I'm using Kutools to select entire rows based on a value, and it does select all the rows with that value. However, when I right-click on the row header and click on "Hide" in the menu, only that row is hidden and the rest that were selected become de-selected. It appears I still have to hide each row one at a time. What am I doing wrong?
This comment was minimized by the moderator on the site
Hi, Rochelley, I think there may be some wrong when you right-click at the row header. After the rows which match your condition are selecetd after applying the feature, right click at one row header of them, note that other rows are kept selected, then choose hide from the context menu. Please see the gif:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-hide-selected-row.gif
This comment was minimized by the moderator on the site
Hello,

I have a drop down with multiple reponses. I am trying to hide certain rows dependant on the response, can someone please assist?

Dropdown options are "CDI", "AR", "Legal", "Multiple" and "Other".

If response is CDI then hide rows 42-100

If response is AR then hide rows 19-41 and rows 66-100

If response is Legal then hide rows 19-66 and rows 88-100

If response is multiple then don't hide anything

If response is Other then hide rows 19-88



Can someone please asssist?
This comment was minimized by the moderator on the site
Hi I need some help with my work sheet. I have to build a dynamic questionnaire and I need to have a code that allow me to hide/ Unhide automatically some rows base on a cell information. Example:

if c6 is "internally" then show me row 7 but hide 8 to 107
if c6 is "Externally" then hide all the rows from 7 to 107


if c7 is "yes" then show me row 8 but hide 9 to 107
if c7 is "No" then show me row 8 but hide 9 to 107
if c8 is "Critical" then show me row 9 but hide 10 to 107

if c8 is "Important" show me row 9 but hide 10 to 107
if c8 is "Ordinary" show me row 9 but hide 10 to 107
if c8 is "Other" then show me row 9 but hide 10 to 107

if c9 is "Critical" then show me row 10 but hide 11 to 107
if c9 is "Important" then show me row 10 but hide 11 to 107
if c9 is "Ordinary" then show me row 10 but hide 11 to 107
if c9 is "Other" then show me row 10 but hide 11 to 107

etc.

can somebody help me?
This comment was minimized by the moderator on the site
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 And Target.Row = 1 Then

If Target.Value = "YES" Then
Worksheets(2).Activate
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = True
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
ElseIf Target.Value = "NO" Then
Worksheets(2).Activate
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = True
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
Else
Worksheets(2).Activate
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
End If

End If
End Sub
This comment was minimized by the moderator on the site
I got same error
This comment was minimized by the moderator on the site
Sorry I do not know either.
This comment was minimized by the moderator on the site
I don't know either Sunny
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations