I have the below excel formula that I need some help adjusting
=MOD(DATE(2015,6,20)-TODAY(),-14)+TODAY()
The formula in it's current state works well however what I want now is to modify it to have it kick in at 5:01 PM.
For example the formula will display 5/23/2015 each day until I get to the 6th of June. From June 6th it will display 6/6/2015 until June 20th (14 days later) and so forth. What I want however is for the actual date change to occur at 5:01 PM. So for example on June 6th at 5:01 PM the date change will then take effect.
Is there a way to do this?
Thanks in advance for any help you can provide.
Adding the time you want to the date and then subtracting by NOW() instead of TODAY() should work:
=MOD((DATE(2015,6,20) + TIME(17,1,0)) - NOW(),-14)+TODAY()
Related
I thought this would be a no brainer. But I really need help to solve it.
I have a row of dates: 10 july 2020, 11 july 2020 and so on (Swedish excel).
Below each date are strings for example "FP". I wish to achieve a counter for each "FP" that is below a specific month of a year, such as july 2020.
The way I approached this was with
=COUNTIFS(G1:UG1;"*july 2020";G2:UG2;"FP")
However the * doesn't do what I want it to. Is there another way to do this?
Please help! :)
The dates are true dates and as such the july 2020 is just a format of a number and not actually there.
Instead BookEnd the date:
=COUNTIFS(G1:UG1;">="&DATE(2020;7;1);G1:UG1;"<"&DATE(2020;8;1);G2:UG2;"FP")
I am trying to find the date out of a weeknum, weekday and year.
There are many information on the web but after several attempts, I couldn't find what I was looking for.
So far, I have this formula:
=DATE(AZ22,1,AZ3*7-5)-WEEKDAY(DATE(AZ22,1,3))
AZ22=YEAR
AZ3=WEEKNUM
Unfortunately it doesn't seem to work.
In order to add some complexity, my weeks should start for Thursday (Thursday 1st day of the week).
If you are so kind to provide an answer, could you please post the explanation of the formula as well?
as JvdV asked, the output should be a date like
01 dec 2019.
I need this formula to map a current date (and I can't use date-364) with the last two years.
The process works as follow:
I have the current date (date A)
The current week ( of date A) is mapped with a different week last year
From the week (and eventually the WEEKDAY) I should find my date B
I hope it clarifies my request
Thank you,
Use this:
=DATE(A2,1,(B2-1)*7-WEEKDAY(DATE(A2,1,B2*7),14)+C2)
This is just math. But by adding the 14 to the Weekday we start our week on Thursday. This does assume that 2019-1-3, the first Thursday of this year, is the start of the 2nd week. If that is not the case and the week that started on the 3rd is the first week, change the (B2-1) to just B2
I'm new to Spotfire. I have a problem where I want to get the following calculated value in a text area:
Week #16: April 14-21, 2019
I need this week to change automatically when week #17 arrives.
I figured out how to get the week number but I didn't know how to get the corresponding day period.
I used the following expression to get "16" which is the week number
week(DateTimeNow())
I can't figure out how to get the following part: April 14-21, 2019
Any help is highly appreciated.
It's not terribly straight forward, but provided you can accept abbreviated month formatting (like 'Apr' instead of 'April') then this will work. I added some additional logic to deal with weeks which cross 2 months (like 'Week #18: Apr 28-May 5')
case when Month(DateAdd("day",-dayofweek(datetimenow()),datetimenow()))=Month(DateAdd("day",7 - dayofweek(datetimenow()),datetimenow())) then
Concatenate("Week #",Week(datetimenow()),": ",Month(datetimenow())," ",DayOfMonth(DateAdd("day",-dayofweek(datetimenow()),datetimenow())),"-",DayOfMonth(DateAdd("day",7 - dayofweek(datetimenow()),datetimenow())))
else
Concatenate("Week #",Week(datetimenow()),": ",Month(DateAdd("day",-dayofweek(datetimenow()),datetimenow()))," ",DayOfMonth(DateAdd("day",-dayofweek(datetimenow()),datetimenow())),"-",Month(DateAdd("day",7 - dayofweek(datetimenow()),datetimenow()))," ",DayOfMonth(DateAdd("day",7 - dayofweek(datetimenow()),datetimenow())))
end
I'm wondering if this is possible. I am creating a spreadsheet to track project due dates. Each project must be completed by the 30th calendar day, but must be turned in on a business day.
Currently, I am just adding 30 days to the start date but this means some due dates aren't always accurate. For example, if the 30th day is Saturday, April 2nd, then the real due date would be Friday April 1st.
Is there a way to construct a conditional such that the due date equals the 30th calendar day, unless that falls on a weekend / holiday, where it then falls on the next earliest business day?
I've been struggling to figure out a way to do this.
For English settings in Excel, with a date in A1, in B1 enter:
=IF(TEXT(A1+30,"DDDD")="Sunday",A1+28,IF(TEXT(A1+30,"DDDD")="Saturday",A1+29,A1+30))
This simple-minded approach only handles Saturdays and Sundays, not arbitrary holidays.
I would prefer more elegant way like using WORKDAY.INTL
=WORKDAY.INTL(A2+31,-1,1,E2:E)
Explanation: start date + 31 days (1 day more than maximum calendar days)
then subtract 1 working day - going to last previous working day
Reason: because this formula does know when are weekends (by using variables) and also knows to skip hollydays by a custom list.
here is an example sheet you can use
Revised after comment:
Try this:
=(A4+30)+CHOOSE(WEEKDAY(A4+30),1,0,0,0,0,0,-1)
Your date, in A4, + 30 days, then add an amount of days until the next workday. If A4 + 30 is a Saturday it will subtract 1 day, a Sunday will add 1.
I had a look for this question before I asked, but sorry if it's a repeat.
In a spreadsheet, I want to employ a date sequence.
eg. Stock Arrives - Friday 22nd February 2013
then, on the 22nd of Feb, that date CHANGES to the next 7 days.
eg. Stock Arrives - 1st March 2013
and then repeats this indefinitely.
Is there any way to do this?
If you want to always show the next Friday you can use this formula
=TODAY()+8-WEEKDAY(TODAY()+2)
That will show Friday 15th Feb 2013 right now.....but on 15th feb it will change to showing 22nd Feb
For other days just change the +2 at the end, e.g. +3 will give you next Thursday, +4 will give you next Wednesday, +5 will give you next Tuesday etc.
This is some way you could do this though I am not sure if this is what you want.
=B1+FLOOR((TODAY()-B1)/7,1)*7
Basically, have a cell hold the start date of the stock inventory (first date in the past where you received this stock). You need to have also the number of days between restocking (here I hardcoded 7). Then you can just use the floor of the difference between today and that date divised by the restocking time. This will give you a step-function-style behaviour.