calculated date & time column, sharepoint 2007 - sharepoint-2007

With the following formula in my calculated column which formats the date & time column:
=TEXT(DatePublished,"d/m/yyyy")
How may i make sure the other dates are disabled when users create a custom list item, ie. users have actually no option to select any other dates?
Or maybe disable the calendar when they click on the calendar icon?
A workaround or am i missing out a lot?

oh my, sorry. I missed out something big, could have used the already available 'Created' field. Then create another calculated column 'DatePublished' with formula:
=TEXT(Created,"dd/m/yyyy")

Related

How to count checkboxes for a given date and paste it as number in a cell

I'm trying to develop a task management system where I need to check all the completed tasks for a given date.
Pls refer to the attached sheet.
When I check the box as complete (Column B), Column C automatically has to print the current date. For that I gave the equation: =if(B3=True,NOW(),"")
Each time a checkbox is checked, the date will be automatically added in column C.
But the real challenge is I also want to display the number of tasks I completed on a specific date in Column F. For that, I gave the equation: =COUNTIFs(B:B=true,C:C=E4)
But as you can see, the answer comes in zero. I even checked if the two dates are equal by checking: =if(E4=C4,True,False), and the answer came out False.
Although both the dates are equal, how come they are false? How can I solve this issue?
There are few changes, that you should do:-
Use TODAY() instead of NOW() in your case, as NOW returns Time also, which is the making it showing false, so change this =if(B3=True,NOW(),"") to =if(B3=True,TODAY(),"").
You're wrongly using COUNTIFS, so change this =COUNTIFs(B:B=true,C:C=E4) to =COUNTIFS(B:B,true,C:C,E4)
Reference:-
NOW()
TODAY()
COUNTIFS()

Cognos - value prompt to display months from january to december

For a monthly report need to display the months January to December in the value prompt. Could you please advise how to achieve this.
Welcome Immi
I do not know what data items are available on the package you are using
However, you can create static values with a value prompt
Look in properties for the value prompt, static. Select the ellipsis
Then add the values
Depending on the version of Cognos, you can search the data items (worst case do this manually, maybe you will luck out and there is a query subject for dates). Look around and see if months is in the package. If they exist, add them to the value prompt query subject and give it a try
Also to consider, your take may require 13 month accounting, displaying the month name won't work in that case.
As far as value prompts there is a display value and a use value
The month name can be the display value and if you need for filtering the month #, that can be the use value.
https://www.ibm.com/docs/en/opw/8.0.0?topic=prompts-adding-static-choices-prompt

Arrayformula treating checkboxes of column A as one entity. It updates the timestamp of all checkboxes to the current timestamp

I am using an array formula to auto-populate a timestamp if a checkbox in the column A is checked right next to a record.
But, I am having issues with it. As, when a new checkbox is checked in column A. It suddenly updates the timestamp of all the already checked boxes to the current timestamp.
In other words; right now, the array is treating the whole range as 1 entity. So, change in the state of any checkbox in column A; triggers the column B to update all the timestamps to the current timestamp.
Formula I am using in column B
=ARRAYFORMULA(if(A2:A=True, NOW(),""))
I tried the Today() function; still, no luck.
demo sheet link: https://docs.google.com/spreadsheets/d/1bNVhTGRbCgQyy7QswzAR2zx-_LpUJP93vDV4zqo5DSA/edit?usp=sharing
Please help.
Thanks.
the accepted and fully working answer got unaccepted and deleted by the site moderator so here's some trivia:
NOW and TODAY are volatile functions that cant be controlled or stopped. they recalculate automatically on the background either in set intervals of every minute, hour or any change:
that said, this issue cant be solved by any means with internal formulae so you will need a script

Data Studio date range that filter on Google Sheet Column

I'm using Google Sheets, and wanted to do a Data Studio "real time" report, based on the data in the sheet.
The sheet contains data from an issue management program.
My data in the sheet exactly:
Issue type (string), Work time (number), issue created at (date), issue resolved at (date)
I successfully created a pie chart that's dimension is: Issue type and metric: Work time
I can see that all the data in the pie chart.
Now my problem is:
I can't filter this chart with a date range.
The date is in a correct format: YYYYMMDD
but I can't describe to data studio, which date column it should filter when I set a date range in the control.
Is it possible some way to create two date range filter and one of them filter on created date, and the other one filter on resolved at date?
Thank all of you!
Roland
Check to make sure that the date range you're filtering by is the first date column from the left in your Sheet. If it's not, then Data Studio gets confused and doesn't work properly.
I'm not sure if you can have two different dates in two different filters. The graphs wouldn't know which filter to follow.
Finally I deleted the connection between the sheet and the report, and started again everything, and it works fine. I think I created the connection when the date was not in a correct format, I changed it after making the connection.

How to Count Timestamp on Google Spreadsheets?

My responses are timestamped as soon as anyone submits a survey. I wanted to count those timestamp monthwise.
URL - https://docs.google.com/spreadsheet/ccc?key=0AkpZp6MVqYv1dE5SZjJIODB1WF9nZDR6b1ZJZjFPenc&usp=sharing
I wanted to find out number of positive responses for a particular question (lets say Q1) for a particular month (lets say May)
Column G is not founded out based on the timestamp of Q1, I had asked the user the month, but that's not the correct way to do so, so I have stopped asking the user to enter the month.
First you have to overcome the fact that the timestamp isn't compatible with googles date format. No biggie,... luckily it looks like you have a fixed format ie DD/MM/YYYY. So you can use the LEFT and RIGHT formulas like so =right(left(a2,5),2) This will give you the month in text, ie 05.
Great.
Now for the harder stuff. If you have the newer google spreadsheets, you can simply use countifs to the effect of:
=countifs(arrayformula(right(left(A$2:A,5),2)),"=05",B$2:B,"=Positive")
For each month, replace the "=05" with the the date number you want. You could also make a month lookup chart for all months and questions so that you don't have to modify the formula for each month and quesiton. For this you replace the "=05" with =[cell number containing month number as text] (NOTE: for making a lookup key, you will have to pay close attention to the fact that you are getting TEXT in the formula above vice a number. There is a difference and they are not compatible as-is.)
Let's say you don't have the new google spreadsheets. Then you can use the old sumproduct() and if(). Yes, it is old. See the following:
=sumproduct(arrayformula(if(right(left(A$2:A,5),2)="05",1,0)),arrayformula(if(B$2:B="Positive",1,0)))
Note in both of these, you need to use arrayformula to convert the column with the timestamp into something useable. If you want to make this part easier by removing the parseing functions (LEFT() and RIGHT()) you need to change the timestamp format to be MM/DD/YYYY. Then you can plug in the the MONTH(DATE) formula and it will be done.
Then make a master sheet like so (note my formula has a "'" in it to make it visible for purposes of demonstration, you should remove it.):
Careful inspection might note that the count is wrong. That is because when I imported your timestamps, times like "02/06/2014 ..." were interpreted to mean "February 06" because of google's auto-formatting. In your sheet you will get the correct count using this formula, because of the way your timestamp is auto-populated.
HINT: To make the month a text you need to enter ="05" in the Month column
Please let me know how you make out.

Resources