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

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • Download the featured file here (including completed formula) excels-if-func...
    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

  • @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.

  • @brandenbailey6384
    @brandenbailey6384 Рік тому +1

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

  • @TG1181
    @TG1181 4 роки тому +2

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

  • @omprakashojha9698
    @omprakashojha9698 3 роки тому +4

    Awesome. This lesson resolved my query. Thank you!

  • @Tigtigify
    @Tigtigify 4 роки тому

    This video just helped me finish a worksheet with multiple references

  • @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 4 роки тому

      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!

  • @willemvantongeren7292
    @willemvantongeren7292 2 роки тому

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

  • @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!

  • @zulqurnainahmad1130
    @zulqurnainahmad1130 3 роки тому +1

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

  • @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

  • @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'?

  • @TeriBzw
    @TeriBzw 3 роки тому

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

  • @andreausa123
    @andreausa123 Рік тому

    Thank you Sir, nice teaching.

  • @shakhawathossain3420
    @shakhawathossain3420 3 роки тому

    Helpful. ..Deserve more video.

  • @rkvt
    @rkvt 3 роки тому

    Easy peasy -- thanks!

  • @BernardoSeguraSilva
    @BernardoSeguraSilva 2 роки тому

    it helps me a lot!! thanks!

  • @ibrahimisrafilov1248
    @ibrahimisrafilov1248 3 роки тому

    Solved my problem! Thanks

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 роки тому

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

  • @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?

  • @casino110
    @casino110 Рік тому

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

  • @kimriley9058
    @kimriley9058 4 роки тому

    Thank you. Very easy to follow.

  • @mdivyakanth
    @mdivyakanth 4 роки тому

    thank you so much your logic helped me a lot

  • @magicdrummer411
    @magicdrummer411 4 роки тому +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?

  • @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

  • @gopalashetty3592
    @gopalashetty3592 3 роки тому

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

  • @quasardementor8434
    @quasardementor8434 3 місяці тому

    For ME was help-ul ths for info

  • @johnabram4159
    @johnabram4159 4 роки тому

    The "+0" trick was cool.

  • @JacksonStith-uw5fu
    @JacksonStith-uw5fu 11 місяців тому

    Thanks so much!

  • @mohamedwahdan4698
    @mohamedwahdan4698 4 роки тому

    Excellent, thank you, thank you so much,

  • @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?

  • @yenyen5379
    @yenyen5379 3 роки тому

    Thanks for this!

  • @collidowscope5054
    @collidowscope5054 3 роки тому

    Thanks Bro! More informative content!

  • @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.

  • @juancruzstrubbia3428
    @juancruzstrubbia3428 Рік тому

    THANK YOU!

  • @dhunpagla3871
    @dhunpagla3871 4 роки тому

    Awesome Mr T.....Thanks

  • @8ksmiff502
    @8ksmiff502 2 місяці тому

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

  • @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

  • @RohitKumar-cc7zi
    @RohitKumar-cc7zi 3 роки тому

    Thats a good think, just keep it up

  • @nikmazel5750
    @nikmazel5750 3 роки тому

    thank you

  • @VoteLaborOut
    @VoteLaborOut 4 роки тому

    thanks for sharing

  • @Stephon723
    @Stephon723 4 роки тому

    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

  • @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.

  • @stevenjohnstone5833
    @stevenjohnstone5833 Рік тому

    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?

  • @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

  • @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?

  • @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?

  • @alanwebb1885
    @alanwebb1885 2 роки тому

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

  • @berkmutlu31
    @berkmutlu31 3 роки тому

    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?

  • @coldavenue2325
    @coldavenue2325 2 роки тому

    How to find the exact dates which overlap?

  • @Stephon723
    @Stephon723 4 роки тому +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.

  • @ericscalise2992
    @ericscalise2992 3 роки тому

    what if you have multiple start and end 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

  • @olgapascaru6952
    @olgapascaru6952 4 роки тому

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

  • @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?

  • @lifelessonfromramayana3979
    @lifelessonfromramayana3979 2 роки тому

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

  • @user-mn9et4pv2o
    @user-mn9et4pv2o Рік тому

    What if you have multiple dates.

  • @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 4 роки тому

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

  • @IvanCortinas_ES
    @IvanCortinas_ES 4 роки тому

    Another option is to apply the double "--"

  • @TheSardOz
    @TheSardOz 2 роки тому

    ❤️

  • @anta_9z
    @anta_9z 4 місяці тому

    Why its not working in mine🥺

  • @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!

  • @Bec_love
    @Bec_love 3 роки тому

    Thank you!

  • @jellylion2521
    @jellylion2521 4 роки тому

    Thanks a lot!

  • @khemangeegavhade2655
    @khemangeegavhade2655 Рік тому

    How can we do the same thing in vba?