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

كيفية التحقق مما إذا كان الوقت بين مرتين في Excel؟

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

تحقق مما إذا كان وقت محدد بين وقتين معينين باستخدام الصيغ


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

على سبيل المثال ، لدي عمودان من الأوقات وهما وقت البدء ووقت الانتهاء في العمود A والعمود B بشكل منفصل ، والآن أريد التحقق مما إذا كان الوقت في العمود C بين النطاق الزمني في العمود A والعمود B كما هو موضح أدناه لقطة الشاشة :

تحقق من المستند إذا كان الوقت بين الأوقات 1

قد تساعدك الصيغ التالية على تحديد ما إذا كان الوقت المحدد بين وقتين ، يرجى القيام بذلك على النحو التالي:

أدخل أيًا من الصيغ التالية في خلية فارغة بجانب بياناتك حيث تريد إخراج النتيجة:

= IF (C2 = MEDIAN (A2، B2، C2)، "نعم"، "لا")

=IF(AND(C2>=MIN(A2:B2),C2<=MAX(A2:B2)),"YES","NO")

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

تحقق من المستند إذا كان الوقت بين الأوقات 2

ملحوظة: في الصيغ أعلاه ، C2 هو الوقت المحدد الذي تريد التحقق منه ، و A2 و B2 هي الخلايا التي تحتوي على المرتين اللذين تريد التحقق بناءً عليهما.

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

🤖 مساعد 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 (22)
Rated 5 out of 5 · 1 ratings
This comment was minimized by the moderator on the site
Curious how to write a formula that results a number (1) to count a person present at a specific time.
For example: If I need to know that a person was present at 2:45pm, during these 5 schedules.
IN OUT 2:45pm
11:00 5:00PM 1
12:00 4:13PM 1
9:00 5:00PM 1
7:47 2:10PM 0
3:50 6:00PM 0

Need to result a 1 - if they arrive before 2:44pm
And result a 1 - if they depart after 2:46pm

Suggestions?
This comment was minimized by the moderator on the site
Hello,

This is a great article and the OR(MOD... is a great work around for times on different dates.

How would I incorporate this to a formula with the following parameters:

If Cell A1 reads as yesterday between 22:00 and 23:59, display as same day.
If Cell A1 reads as today between 00:00 and 21:59, display as yesterday.

Any assistance here is GREATLY appreciated as I'm a lost little puppy on this one.
Rated 5 out of 5
This comment was minimized by the moderator on the site
Ik hoop dat iemand mij hier kan helpen.
Ik heb zoals de meeste mensen in deze discussie, een tijdvenster bestaande uit 2 tijden.
voor het gemak:
Cel A2 staat in 15:00
Cel B2 staat in 16:00
Cel C2 staat in 15:49

ik wil met een formule weten of Cel C2 binnen het tijdvak van A2 en B2 ligt.
als ik de formules kopieer van hierboven en deze aanpas naar mijn cellen(en taal), krijg ik een onjuiste formule melding.

Ik ben vrij handig in Excel... maar dit krijg ik verdorie niet voor elkaar.
(Ik heb een nederlandse versie van Excel)

de formule die ik nu probeerde te gebruiken is: =als(en(C2>=MIN(A2:B2),C2<=MAX(A2:B2)),"YES","NO")

wat doe ik fout? :(
This comment was minimized by the moderator on the site
Hello, Bastiaan
I have tested your formula in Dutch, the formula works well, please see the below screenshot:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-check-time-1.png
Please try again, thank you!
This comment was minimized by the moderator on the site
Hi, I am comparing hundreds of thousands of lines of data (for the first time) and needed an equation that that compares time between two of he columns. However, I cannot get away with an IF statement using A3<>F3 because the times in A3 are about 1 second off. Rather I just need to the nearest minute. Any help?
This comment was minimized by the moderator on the site
I am in need of assistance. I have been pulling my hair out over the last month trying to figure out a way to make my life simpler. I am not even sure if it can be done because I can not find anything on how to do it. My problem is this........ I recently started using a new program to collect data for incoming and outgoing employees. The data readers are sensitive and will sometimes account for an employee multiple times over the course of a couple of minutes. when I export this data into an excel file, it is an absolute nightmare trying to individually delete the extra captures. Using the remove duplicates option helps, but still leaves many duplicate times due to the Seconds in the time being different. Today for example after I removed the duplicates, I still have over 24,000 unique entries that I have to go through to get that data I need. Someone, anyone..... please Help!
This comment was minimized by the moderator on the site
I am trying to calculate time per day for example I went to the computer lab and logged in for 4hours&35minutes on Monday and Tuesday I logged in on for 2 hours and 10 minutes and Wednesday 3hours and 4 minutes and Thursday for 4 hours and 14 minutes and Friday 1 hour and 15 minutes. Add those total together and get a grand total. I want to be able to keep every minute. No rounding, I know that I have to use the IF function.
This comment was minimized by the moderator on the site
Help me in this, as if there is some time ranges in a day and i have to find out time clashing is there or not. then please suggest some formula!
This comment was minimized by the moderator on the site
Hello I have to find my specific time is in between two times...eg : Start time(AS2) is 23:00:00 and End time(AT2) is 8:00:00, specific time(J2) is 0:02:20, so when i use the formula =IF(AND(J2>=MIN(AS2:AT2),J2<=MAX(AS2:AT2)),"YES","NO") it should show yes as its in between tow times only but its showing no, any help in correcting the formula ?
This comment was minimized by the moderator on the site
Hi Santosh, That is similar to my use,I use something along the lines of;

=IF(AND(C2>=MIN("13:00"),C2<=MAX("13:10")),"YES","NO")
This comment was minimized by the moderator on the site
Hi Silver,


The formula doesn't work. If I have to enter "13:00" (hours) in each row, why there is formula, this is not making the job any easier.
This comment was minimized by the moderator on the site
If your time over midnight, you should apply the below formula:
=OR(MOD(C1,1)>TIME(23,0,0),MOD(C1,1)<TIME(8,0,0))
This comment was minimized by the moderator on the site
In the above formula, C1 is the specific time you want to check for, and the TIME(23,0,0) and TIME(8,0,0) are the two times you want to check between. You should change the references to your need.
Please try it, hope it can help you!
This comment was minimized by the moderator on the site
I have two times here 23:00:00(AS2 Start Time) and 8:00:00(AT2 End Time) and specific time is 0:02:20(J2), so when i use this formula =IF(AND(J2>=MIN(AS2:AT2),J2<=MAX(AS2:AT2)),"YES","NO"), it should come as yes as the specific time is in between our two start and end time but its showing no..any help in correcting this formula
This comment was minimized by the moderator on the site
This isn't working for me when the specific time is =NOW() to display the current time. Any suggestions?
This comment was minimized by the moderator on the site
Hello, Nikkii,

If you enter =now() function to get the current date and time, both date and time are displayed, if you need a formula to get the current time dynamically, you can apply this formula: =MOD(NOW(),1), and then format it as time format. And then, you can use the formula in this article successfully.

Please try, hope it can help you!
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