How to show (Blank) when using calculated column and DATEDIF when using Sharepoint - date

I use below code on a Sharepoint list to calculate banking days but I want it to show (Blank) when there isn't a date in "End Date List", what do I need to change? Today the code shows a number greater than 32k when (Blank).
=IF(ISERROR(DATEDIF([End Date List];TODAY();”d”));””;(DATEDIF([End Date List];TODAY();”d”))+1-INT(DATEDIF([End Date List];TODAY();”d”)/7)*2-IF((WEEKDAY(TODAY())-WEEKDAY([End Date List]))<0;2;0)-IF(OR(AND(WEEKDAY(TODAY())=7;WEEKDAY([End Date List])=7);AND(WEEKDAY(TODAY())=1;WEEKDAY([End Date List])=1));1;0)-IF(AND(WEEKDAY([End Date List])=1;(WEEKDAY(TODAY())-WEEKDAY([End Date List]))>0);1;0)-IF(AND(NOT(WEEKDAY([End Date List])=7);WEEKDAY(TODAY())=7);1;0))
Since Networkdays function don't work in calculated column I have used this but don't understand where I can change so that if the "cell" is blank, the outcome should also be blank.

Related

Max Date in Qlikview Expression

I have a Qlikview where I have data loaded for various dates. The pivot table in the qlikview shows the change in values from previous day. so for every selected day, I need the previous date to pick values from.
So I have
Dates 31/08/2021, 28/07/2021, 27/07/2021, 25/07/2021
Based on the date selected, i want the previous date. how do i do it in the qlikview expression.
Assuming your field is named DateField you could try this:
=Max({1<DateField = {"<$(=Min(DateField))"}>} DateField)
"<$(=Min(DateField))" will search for all dates less than the [minimum] date selected. The Max expression will then return the greatest date of this set.

MS Access: Show string in the date field when empty

I'm looking to have my field show "dd-mmm-yy" when a date is not entered into the field, so members don't get confused and frustrated when they try to put in a date such as 11/12/20 and don't realize it needs to be in day day, month month month, year year format. Is this possible to do through the property sheet?
[date format]
You can set the Format property of the textbox to:
dd-mm-yyyy;;;"dd-mm-yyyy"
though I believe it will add more confusion than help.
Another method for speedy input of dates is shown in my article:
Entering ISO formatted date with input mask and full validation in Microsoft Access

Google sheets if date is less than today +30

I have a date field cell (using data validation), I want to turn that cell red (A14) if the date entered is less than 30 days from that date to the date in 30 days time (today()+30).
=if(A14<today()+30, A14>today())
If A14's date is less than the date in 30 days and greater than today's date, then it would fall within the next 30 days. Therefore the cell should turn red.
I tried the above and it doesn't work.
I noticed the date output of the date field was using dashes (01-01-2020) and today() was slashes (01/01/2020), so I formatted the date cell to reflect slashes too, but still it doesn't work.
try simply:
=(A14<TODAY()+30)*(A14>TODAY())

Calendar view in SSRS

I am fetching a stored procedure to the report having two columns as date and non business day. I need to create a year wise calendar for the year which is getting fetched from stored procedure. Each page will have a calendar of a year with 12 months along with days.
Well, you would need a dataset with a Date (Day and Year at least) and a corresponding value for this Day. Then simply add a matrix in your report. For the columns textbox chose the Date (Day) and for the rows textbox chose the Date (Year). In the data textbox use your value. If you load it, it will look like calender because the Days get brocke down by Year.

How to compare dates or date against today with query on google sheets?

I'm working on making a replica of sheet1 on to another sheet2 (same document), and query() worked fine until the column i want to filter are formula cells (LONG ones each with query, match, etc).
What i want to do is filter the rows in sheet1 where the event date in column M is upcoming (there are more filter conditions but just to simplify this is the main problem).
I don't want the rows where the date is either empty, in the past (various date formats), or where the formula give a result of empty string "".
The formulas i've tried (which gives error) - note i'm just selecting 2 columns for testing:
=query(sheet1!A3:N, " select I,M where I = 'Singapore' AND DATEVALUE(M)>TODAY() ",0)
=query(sheet1!A3:N, " select I,M where I = 'Singapore' AND M>TODAY() ",0)
This formula doesn't give error but doesnt show correct data - shows all data except Jan 2017 - August 7 2017:
=FILTER(sheet1!A3:N, sheet1!I3:I="Singapore", sheet1!M3:M>TODAY())
This formula gives empty output:
=query(sheet1!A3:N, " select I,M where I = 'Singapore' AND M='22 August' ",0)
There's no today() in Query. Use now() instead:
=query(sheet1!A3:N, " select I,M where I = 'Singapore' AND M > now() ",0)
Or if you want now() without time(equivalent to TODAY()), use:
todate(now())
For this to work, provided you have all the correct dates in M in any format, which Google sheets recognises (i.e., the formula bar shows the correct date or time) regardless of the actual string. If not, You should manually convert all those remaining dates to correct format. The correct format of date to be entered in the query formula is date 'yyyy-mm-dd'. It doesn't matter what format the date is in sheets ( as long as Google sheets recognises this), but the actual formula must only contain date in this format for comparison. For example , to find all dates less than 31,August, 2017,
=query(A2:B6, "select A where A < date '2017-08-31'")
You can use this to figure out all the dates, which Google doesn't recognise: N1:
M:M*1
If you get an error in the helper column N, then those dates are not recognised. Even if you did not get error, it is possible that Google sheets mis-recognizes the date. There is also a more specific function:
=ARRAYFORMULA(ISDATE(M:M))
References:
Scalar functions