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

كيفية استخراج جميع السجلات بين تاريخين في إكسيل؟

إليك مجموعة من البيانات في Excel ، وفي هذه الحالة ، أريد استخراج جميع سجلات الصفوف بين تاريخين كما هو موضح أدناه ، هل لديك أي أفكار للتعامل مع هذه المهمة بسرعة دون البحث عن البيانات واستخراجها واحدة تلو الأخرى يدويًا؟

سجل استخراج المستند بين التواريخ 1 حق السهم سجل استخراج المستند بين التواريخ 2

استخرج كل السجلات بين تاريخين بواسطة الصيغ

استخرج جميع السجلات بين تاريخين بواسطة Kutools for Excelفكرة جيدة 3


استخرج كل السجلات بين تاريخين بواسطة الصيغ

لاستخراج جميع السجلات بين تاريخين في Excel ، عليك القيام بما يلي:

1. قم بإنشاء ورقة جديدة ، ورقة 2 ، واكتب تاريخ البدء وتاريخ الانتهاء في خليتين ، على سبيل المثال ، A1 و B1. انظر لقطة الشاشة:
سجل استخراج المستند بين التواريخ 3

2. في C1 في الورقة 2 ، اكتب هذه الصيغة ، =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2))، صحافة أدخل مفتاح لحساب العدد الإجمالي للصفوف المطابقة. انظر لقطة الشاشة:
سجل استخراج المستند بين التواريخ 4

ملحوظة: في الصيغة ، الورقة 1 هي الورقة التي تحتوي على البيانات الأصلية التي تريد استخراجها ، $ A $ 2: $ A $ 22 هي نطاق البيانات ، A2 و B2 هي تاريخ البدء وتاريخ الانتهاء.

3. حدد خلية فارغة ستضع فيها البيانات المستخرجة ، اكتب هذه الصيغة =IF(ROWS(A$5:A5)>$C$2,"",INDEX(Sheet1!A$2:A$22,SMALL(IF((Sheet1!$A$2:$A$22>=$A$2)*(Sheet1!$A$2:$A$22<=$B$2),ROW(Sheet1!A$2:A$22)-ROW(Sheet1!$A$2)+1),ROWS(A$5:A5))))، صحافة شيفت + كترل + إنتر ، واسحب مقبض التعبئة التلقائية فوق الأعمدة والصفوف لاستخراج جميع البيانات حتى تظهر الخلايا الفارغة أو القيم الصفرية. انظر لقطة الشاشة:
سجل استخراج المستند بين التواريخ 5

4. قم بإزالة الأصفار ، وحدد التواريخ التي تظهر كأرقام مكونة من 5 أرقام ، انتقل إلى الصفحة الرئيسية ثم حدد التاريخ القصير في القائمة المنسدلة عام لتنسيقها بتنسيق التاريخ. انظر لقطة الشاشة:
سجل استخراج المستند بين التواريخ 6


استخرج جميع السجلات بين تاريخين بواسطة Kutools for Excel

إذا كنت ترغب في التعامل مع هذه المهمة بسهولة أكبر ، فيمكنك تجربة ميزة Select Specific Cells في Kutools for Excel.

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

بعد تثبيت Kutools for Excel ، يرجى القيام بما يلي:(تنزيل مجاني Kutools for Excel الآن!)

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

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

3. انقر Ok > OK. وتم اختيار الصفوف المتطابقة مع التواريخ. صحافة CTRL + C لنسخ الصفوف ، وحدد خلية فارغة واضغط CTRL + V للصقه ، انظر لقطة الشاشة:
سجل استخراج المستند بين التواريخ 9

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

🤖 مساعد 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 (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, this formula worked ok, except it only returned one data set for each date in the range. Is there an adjustment to allow for multiple entries with the dame date value?
This comment was minimized by the moderator on the site
This formula works awesome thanks, I need some extra help though. I have 200 employees, each with certification that expires on different dates. The heading for each certification is at the top with their expiry dates below. I want to extract the rows that with all info if there is an expiry reached and throw them into a new sheet. Exactly like the example above just dated from multiple columns.
This comment was minimized by the moderator on the site
Hi, Christiaan82, could you upload the a screenshot about you workhsheet, or give me more details about the information of sheet format, only with your description, I do not get it clearly.
This comment was minimized by the moderator on the site
All sorted. Instead of trying to retrieve the rows from multiple columns, I added a new hidden sheet where all the info populates the info on top of each other. So the information only needs to be retrieved from one column, as per your example above.
Thank you Sunny
This comment was minimized by the moderator on the site
"drag Auto fill handle over columns and rows to extract all data until blank cells or zero values appear."
This doesn't seem to be working for me. The first row gives me the dates but the same gets repeated in the next two rows.
This comment was minimized by the moderator on the site
Hi, Neha, could you check if your auto calculate is turn on? Click Formulas > Calcuations Options > Automatic.
This comment was minimized by the moderator on the site
it worked well for single sheet. can u pls help me to get the same from multiple sheets of similar data. first 4 sheets contain similar data. i need all records of same 'date' in sheet5.
This comment was minimized by the moderator on the site
Can you extend the formula to check for dates that encompass more than one day? For example, using the same start and end dates from 1/1/15-12/31/16, but the data in sheet 1 have start and end dates too rather than just existing for a singular date.
This comment was minimized by the moderator on the site
This formula worked brilliantly. I was concerned as I have multiple date duplicates and there was no mention of how it handles those; no issues. It returned all relevant data.
Stoked.
This comment was minimized by the moderator on the site
Thanks for your support, you can combined the duplicate dates cells after extracting.
This comment was minimized by the moderator on the site
The trouble I am having because I need to find dates that run through the date range specified. So I want anything that runs through something like 1/2016 to 12/2017, however it needs to include start dates that may be before the range so I can identify the records I need to look at.
This comment was minimized by the moderator on the site
I used this code and it is pulling up dates outside of the window... how do I fix it?
This comment was minimized by the moderator on the site
Which code Kayla? Do you mean the formula?
This comment was minimized by the moderator on the site
I recreated this example in Excel 2010, and the result was that the first row of data would show up, but everything underneath had a number error.
This comment was minimized by the moderator on the site
Same thing happens to me n Excel 2010. Something in the formula doesn't work correctly.
This comment was minimized by the moderator on the site
Have you pressed Shift + Ctrl + Enter keys?
This comment was minimized by the moderator on the site
I see what's wrong. You have to press the shift + CTRL + Enter keys while still in edit mode.
I was hitting those keys after entering the formula and hitting ENTER.
I wish it would have been clearer.
This comment was minimized by the moderator on the site
Yes, brian, after typing the formula and still in edit mode, directly press Shift + Ctrl + Enter keys (the keys instead of Enter key), to get the correct result.
This comment was minimized by the moderator on the site
Still doesnt work for me? I am doing exactly as above and still returning the NUM error? Any other ideas?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations