Write an IF Statement for Dates Between Two Dates (Date Range)

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 มี.ค. 2020
  • Download the featured file here (including completed formula) excels-if-function.com/2020/0...
    This video demonstrates how to write an IF statement where you want to test for dates that occur between two dates. The video features three functions: IF, AND and DATEVALUE.
    The video looks at three ways you can achieve the IF statement result for date ranges.
    This video will be useful to you if you are asking the following questions:
    How do you write an IF statement between two dates?
    How do you use IF in a date range?
    How do I return a value if date within range?
    If date is between two dates then how do I return a value?
    How do I use an IF function in Excel for dates?
    How do you find the value if the date falls between two dates?
    ------------------------
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 77

  • @omprakashojha9698
    @omprakashojha9698 3 ปีที่แล้ว +4

    Awesome. This lesson resolved my query. Thank you!

  • @zulqurnainahmad1130
    @zulqurnainahmad1130 3 ปีที่แล้ว +1

    Excellent, I always had a hard time remembering AND with IF condition, u saved my day. thanks

  • @BaseStation
    @BaseStation 3 ปีที่แล้ว

    Took me 2 hours to find what I was looking for, but it was here. Found my answer by marker 1:25. THANKS!

  • @TG1181
    @TG1181 4 ปีที่แล้ว +2

    Thank you so much for the explanation that has just helped me to crack the task.

  • @Tigtigify
    @Tigtigify 4 ปีที่แล้ว

    This video just helped me finish a worksheet with multiple references

  • @brandenbailey6384
    @brandenbailey6384 ปีที่แล้ว +1

    This was super helpful! Thank you for putting this together.

  • @Serenalambre
    @Serenalambre 4 ปีที่แล้ว +1

    Thank you, thank you, thank you!! Finally an answer to the dreaded date problem within formulas! I have just finished a very lengthy and quite expensive Excel course and I never got the answer to this question. Now can you expand even further and say, 'If the dates are between these ranges then add them up'?

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 ปีที่แล้ว

    Great job!! "Value" is also a useful formula.

  • @kimriley9058
    @kimriley9058 4 ปีที่แล้ว

    Thank you. Very easy to follow.

  • @rachelmorris706
    @rachelmorris706 ปีที่แล้ว +1

    Thank you , 3 mins in and i ave my answer. I can go have a cup of tea now with the time I saved.

  • @andreausa123
    @andreausa123 3 ปีที่แล้ว

    This is what exactly i need . All the best wishes to you !

  • @imagist.
    @imagist. 2 ปีที่แล้ว

    THANK YOU.
    Exactly what I was looking for

  • @willemvantongeren7292
    @willemvantongeren7292 2 ปีที่แล้ว

    Thank you very, very much!! In 5 min. Its all clear.

  • @BrucutuPlayer1
    @BrucutuPlayer1 4 ปีที่แล้ว

    Is there a way to find if a date is between a matrix and how many times does it appears ?
    for example, if in this sheet that you use is this video there was dates on cells F3...F18 and G3...G18 (matrix), how many times does the cell A8 (08/03/2020) appears on the matrix?
    sorry for my bad english, I hope you understood my doubt

  • @mdivyakanth
    @mdivyakanth 3 ปีที่แล้ว

    thank you so much your logic helped me a lot

  • @yenyen5379
    @yenyen5379 3 ปีที่แล้ว

    Thanks for this!

  • @collidowscope5054
    @collidowscope5054 3 ปีที่แล้ว

    Thanks Bro! More informative content!

  • @nattroy891
    @nattroy891 4 ปีที่แล้ว

    Wow, your video totally solved my problem. I'd been racking my brain and doing GOOGLE searches, but I wasn't even aware of the datevalue function. Thank you!

    • @ChesterTugwell
      @ChesterTugwell  4 ปีที่แล้ว

      Glad I could help!

    • @Stephon723
      @Stephon723 3 ปีที่แล้ว

      This date value function is looking like it's the most promising thing so far for what I'm trying to do as well. However I'm trying to figure out why the first function it not automatically applying itself when I hit enter. I'm having to reenter the first date

    • @pkrenvironmentaldivision2839
      @pkrenvironmentaldivision2839 3 ปีที่แล้ว

      @@ChesterTugwell I'm working on a spreadsheet for expiry dates for inspections to be conducted. I currently have it conditionally formatted to display colors when the due dates are within 2 date ranges. My question is once I have completed the inspection, is it possible to format it to have the previous inspection date go blank (delete) so that I can continue to use the same spreadsheet for future inspections? Thank you in advance, and great videos!

  • @olgapascaru6952
    @olgapascaru6952 4 ปีที่แล้ว

    What format does the data need to have in order for the function to work?

  • @Bec_love
    @Bec_love 3 ปีที่แล้ว

    Thank you!

  • @dhunpagla3871
    @dhunpagla3871 4 ปีที่แล้ว

    Awesome Mr T.....Thanks

  • @ibrahimisrafilov1248
    @ibrahimisrafilov1248 3 ปีที่แล้ว

    Solved my problem! Thanks

  • @jellylion2521
    @jellylion2521 4 ปีที่แล้ว

    Thanks a lot!

  • @andreausa123
    @andreausa123 ปีที่แล้ว

    Thank you Sir, nice teaching.

  • @rkvt
    @rkvt 3 ปีที่แล้ว

    Easy peasy -- thanks!

  • @alexc5369
    @alexc5369 2 ปีที่แล้ว

    what if you have a bunch of date ranges listed under columns A and B and a bunch of separate dates listed under column C, and you wanted the date range cells to highlight if any of the dates listed in C were within them?

  • @magicdrummer411
    @magicdrummer411 3 ปีที่แล้ว +1

    I am looking for a formula that allows me to change data based on time of day.
    For example, I want a cell to change to a different link every 15 seconds.
    When I type in =IF(now()=time,reference data) it doesn't work.
    is there a way to get the NOW() to work in an if statement?

  • @BernardoSeguraSilva
    @BernardoSeguraSilva 2 ปีที่แล้ว

    it helps me a lot!! thanks!

  • @berkmutlu31
    @berkmutlu31 2 ปีที่แล้ว

    Can I use this for multiplite dates?
    For example: F and G 09.03.20 and 13.03.20 also 25.03.20 - 30.03.20. I want that it will highlight only dates between this two dates. Other ones will be not. Is there a solution to this?

  • @JacksonStith-uw5fu
    @JacksonStith-uw5fu 9 หลายเดือนก่อน

    Thanks so much!

  • @juancruzstrubbia3428
    @juancruzstrubbia3428 ปีที่แล้ว

    THANK YOU!

  • @TeriBzw
    @TeriBzw 3 ปีที่แล้ว

    Thanks, Chester. I am Your number 1 fan, nothing I was trying was working, I was getting sooooo frustrated.

  • @SamFickelHomeLending
    @SamFickelHomeLending 2 ปีที่แล้ว +2

    What if you wanted to do this with multiple date ranges?
    In this video, you used dates between the 9th and 13th to return a value (true/false).
    How would you do it if you wanted to see if the date fell between the dates and if so, return a value?
    For example, 9th-13th (James), or the 14th-20th (Jenna), or the 21st-30th (Robert)
    Would you have to stack all of the different functions within the same cell?

  • @VoteLaborOut
    @VoteLaborOut 4 ปีที่แล้ว

    thanks for sharing

  • @mohamedwahdan4698
    @mohamedwahdan4698 4 ปีที่แล้ว

    Excellent, thank you, thank you so much,

  • @redhaakhund1271
    @redhaakhund1271 3 ปีที่แล้ว

    Thank you for the video, I have tow dates, From Date and To Date and I want to fill in the cell if he is on vacation or on Duty. How to do this. I use function TODAY() and still not working properly. Plz advise.

  • @nikmazel5750
    @nikmazel5750 2 ปีที่แล้ว

    thank you

  • @shakhawathossain3420
    @shakhawathossain3420 3 ปีที่แล้ว

    Helpful. ..Deserve more video.

  • @alexlizano3853
    @alexlizano3853 ปีที่แล้ว

    How can I find a date range, between another date range? Lets say Colum A1: 11/02/2022 Column B2 11/30/2022, and then I have a list of initial and ending dates in separate columns, where I need to know an specific value for the dates in A and B Columns?

  • @robertlindlner720
    @robertlindlner720 3 ปีที่แล้ว

    Can we do the same in time values?

  • @arpit840x
    @arpit840x 4 ปีที่แล้ว

    Sir, I am facing a problem with retirement dates. If someone took birth before 15th day of a month, I have to choose the last day of previous month as his retirement day and if he took birth after 15th day, I have to choose the last day of the same month as his retirement day. Is there any solution to this problem?
    Is there any way to blend =EOMONTH(serial number, -1) and =EOMONTH(serial number, 0) with IF formulas?

  • @8ksmiff502
    @8ksmiff502 12 วันที่ผ่านมา

    Hi! can you help. I want a formula which trigger if a certain number is between a range of certain numbers....

  • @johnabram4159
    @johnabram4159 4 ปีที่แล้ว

    The "+0" trick was cool.

  • @RohitKumar-cc7zi
    @RohitKumar-cc7zi 3 ปีที่แล้ว

    Thats a good think, just keep it up

  • @quasardementor8434
    @quasardementor8434 หลายเดือนก่อน

    For ME was help-ul ths for info

  • @ckelly6556
    @ckelly6556 4 ปีที่แล้ว

    This looked so promising for what I need, but I just can't figure it out. Maybe someone can help me in the comments.
    I'm trying to use conditional formatting based on two different columns of dates.
    Basically, if DATE2 is greater than two years of DATE1, DATE1 is highlighted.
    Any help is greatly appreciated!

  • @UnknownChannel88889
    @UnknownChannel88889 2 ปีที่แล้ว

    What if you have 3 columns all have dates, then you want the 3rd column to highlight if it is between column 1 and 2. YOu have 100's of dates. How do you get the between to go all the way down?

  • @jimt7786
    @jimt7786 2 วันที่ผ่านมา

    Your video is very helpful but I need help finding a Date between a range of dates
    I try to find out if a date in my list occurs during DST (Daylight saving time) or Standard time
    I need to calculate a time for an event in my spreadsheet and if the date will be during DST (Daylight saving time) they have to add 7 Hours if it falls during winter time that use standard time it should only add 6 hours
    So I have a list with 50 events during 10 year periods so I need to find out on every date if its durned DST or Standard time for that year
    I do have a table with the dates for DST start/end from 2014 to 2033

  • @FREAK12111
    @FREAK12111 ปีที่แล้ว

    🙋‍♂️ question. How can I create a date series that covers just certain days of the week. I need a date series that covers mondays tuesdays and Thursdays.

  • @Stephon723
    @Stephon723 3 ปีที่แล้ว

    I setup my page exactly the same with the one exception. Column A is a list of names. Column B lists the dates. Otherwise everything is the same including the headers and the formula. They issue that I'm having is that when I enter the first Formula explained, under "refer to cell", the formula applied but it does not recognize the date in column B. It is not until I re-enter the date that it actually applies. He does not have to do that in this video. I want to apply the formula to a spreadsheet that is already full of dates.
    Column A John Doe
    Column B 2020/09/13
    Column C =AND(B2>=$G$2,B2

  • @Stephon723
    @Stephon723 3 ปีที่แล้ว +1

    So let me try just asking someone to help me with exactly what I need. I want everything on a row to be red if the date in column B is prior to September 1st. I wanted to be green if it is September 1st or later.
    And I should clarify I'm only using column A and B. A is the name B is date. I want column A and B to have the highlighted color. Not C & Beyond
    What is the formula I need to use for this?

    • @omprakashojha9698
      @omprakashojha9698 3 ปีที่แล้ว

      I think applying the conditional formula twice i.e with both conditions, would help.

  • @alanwebb1885
    @alanwebb1885 ปีที่แล้ว

    Hi There how would I return a Expired in a cell, I have got a Manufactured date and a Expired date ?

  • @ericscalise2992
    @ericscalise2992 2 ปีที่แล้ว

    what if you have multiple start and end dates?

  • @gopalashetty3592
    @gopalashetty3592 3 ปีที่แล้ว

    I subscribed your channel. Please show what are the possible ways that a PDF file can be transfered to EXCEL.

  • @alexa2294
    @alexa2294 3 ปีที่แล้ว

    Now, I am sure this can be done, just don't know where I am getting wrong here if any kind soul could assist, will make me a happy person. Thank you
    Essentially trying to create a conditional format to cell A2 that allows someone to be able to input only weekdays between the dates below. Thank you
    =IF(AND(A2=WEEKDAY(A2,2)=DATE(2021,1,1),A2

  • @khemangeegavhade2655
    @khemangeegavhade2655 ปีที่แล้ว

    How can we do the same thing in vba?

  • @casino110
    @casino110 ปีที่แล้ว

    Please list 2-3 dates and time ranges that you could do an interview.

  • @coldavenue2325
    @coldavenue2325 2 ปีที่แล้ว

    How to find the exact dates which overlap?

  • @stevenjohnstone5833
    @stevenjohnstone5833 9 หลายเดือนก่อน

    Great video. BUt I can't find a way to get a calculation to run at a given time of day. For example I have live data which is ever changing via web connected table. I want to sum the vales of one column at say 10:PM. How would I be able to do this. This would be a web table without any correspondingtime values. I just want to calculate values as a snap shot in time. I would have a new table with a set of time vales and would want to create a snapshot sum against each time value. e.g I would have time values 10pm 10:05 pm, 10:10pm ... etc and create a sum value for each. So the corresponding cell would be blank until calculated. For exaple I a monitoring the Dax via a web connection and want to do a straight sum of % change in price of all the companies in the table as a sequence of snapshots in time every five minutes of the trading day and store them in a table. can you think of a way to do this?

  • @TheSardOz
    @TheSardOz 2 ปีที่แล้ว

    ❤️

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 ปีที่แล้ว

    Another option similar to add 0 ist multiply by 1!

  • @graysongrzybowski943
    @graysongrzybowski943 2 ปีที่แล้ว

    Is there a way of displaying a cell with a color IF the date is within a few days to a given date? Lets say I have a due date of some day. If todays date is within a few days before its date I want it to display a color denoting its coming time to get the job done.

  • @manishlal795
    @manishlal795 4 ปีที่แล้ว

    Nice job, sir I want to compare month formula not date only month. Say in my row there r different dates and I want to change serial no when date starts another months or year hoe could be possible.

  • @crazytandons
    @crazytandons 3 ปีที่แล้ว

    This is not working in excel please help??????????

  • @lifelessonfromramayana3979
    @lifelessonfromramayana3979 2 ปีที่แล้ว

    How to find the date from the specifics list that falls between two given dates

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 ปีที่แล้ว

    Another option is to apply the double "--"

  • @user-mn9et4pv2o
    @user-mn9et4pv2o ปีที่แล้ว

    What if you have multiple dates.

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 ปีที่แล้ว +1

    Give you the extra-formulas:
    =IF(AND(A2>=VALUE("09/03/2020");A2="09/03/2020"*1;A2=--"09/03/2020";A2

  • @anta_9z
    @anta_9z 2 หลายเดือนก่อน

    Why its not working in mine🥺