I'm trying to create report which on Monday will fill only Monday column, on Tuesday Monday and Tuesday columns etc.
One problem is that reporting day is only 1 day - lets say Friday. I set main report and subreports for each day but it wont work since on Monday there was an event that did not occurred on Friday so it does not appear in my report.
Related
I live in Europe. Week starts on Monday and ends on Sunday.
Today is Friday, the 5th day of the week.
https://1drv.ms/x/s!AncAhUkdErOkgqR6jJ76GcWrCJozpQ?e=mRH7Ab
=Weekday(Today();2)
shows Thursday as weekday, not friday.
Why?
And why shows Returntype 1 (or omitted) Friday, it should show Saturday (6th day of the week)?
And what is the difference between Returntype 2 and 11?
WEEKDAY is returning the correct result in that cell - i.e. 5.
If you format 5 as ddd, you are actually formatting the date 5 days after 31.12.1899 which is the 5th Jan 1900, which was a Thursday.
I need to figure out how to get the dates for both the Tuesday and Thursday in the next week.
I'm currently getting the week number by using: =WEEKNUM(NOW(),)+1
I'm not sure where to go from here, please help me out.
You could use the following for Tuesday:
=NOW()+9-WEEKDAY(NOW(),2)
9 because 1 week is 7 days, then Tuesday is day 2 of the week, so 7+2=9.
For Thursday:
=NOW()+11-WEEKDAY(NOW(),2)
Same reasoning as above with Thursday being 4, so 7+4=11.
The formula basically takes the current date, adds a week (7) and then adjusts for the weekday considering today's weekday.
I am trying to calculate the weeks of the month, 1-4 or 1-5, where the calendar week that contains the first calendar day of the month is always week 1. So for example, February 1, 2018 falls on a Thursday so the dates Monday January 29 - Sunday February 4 would be week one of February.
I was using the formula =INT((DAY(D2)+6)/7) - which seemed to work until the week splits and crosses the calendar month. It counted the days the cross over from January as week 5 rather than week 1 of the next month.
Try this and see if it works:
=IF(MONTH(A2)=MONTH(A2+7-WEEKDAY(A2,2)),CEILING(((DAY(A2)+WEEKDAY(A2-DAY(A2)-1)))/7,1),1)-AND((WEEKDAY(A2-DAY(A2))=1),MONTH(A2)=MONTH(A2+7-WEEKDAY(A2,2)))
Is the following Sunday in the same month as the Date (in A2)
If False, Week = 1
If True
use last Sunday of preceding month as base for week count.
Adjust if month starts on a Monday and we are in the first week (there's possibly a better way to do this adjustment)
Dialogflow V2 (beta) api.
Windows 10.
My intent uses the system date-period entity for this week and next week in the training phrases. When checking the values of startDate and endDate I find they are incorrect.
The dates for next week are for Monday this week to Sunday next week and the dates for this week are for Monday last week to today (Sunday)
They start on a Monday and finish on a Sunday. I checked the Date and Time settings in Windows and changed the first day of the week from Monday to Sunday and ran the same training phrase over 6 times and still got the same start and end dates. I have attached the screen shots for both and you can see that the day on the taskbar is Sunday. I would expect the startDate to be a Sunday irrespective of what the first day of the week was set to, otherwise the intent action would return the incorrect response giving a different user experience.
how to add new column having week number i.e should consider sunday - saturday as 1 , next sunday - saturday as 2 in an daywise data.
Thanks in advance
Week([DateColumn]) will get you the respective week number. This resets for each year.