Is there a way to prevent input if today's date is the same or later than the date in an adjacent cell? - validation

Using Google Sheets, is there a way to prevent a user from adding contents to a cell or changing the contents if today's date is the same or later than the date in an adjacent cell?
For example:

I'd suggest using data validation. Set your range (eg: Sheet1!B1:B), choose 'custom formula' from the dropdown and use this formula
=today()>$A1
Then select 'Refuse input' when invalid data is entered.
Another possible solution would be to use Google Script.
I hope this helps?

Related

Conditional input fields for Google sheets? (to assist data quality)

Im struggling with my users putting data into google sheets incorrect. I need to know if there is anyway to set conditions to how users input data in google sheets? ie a watermark in the cells guiding them on how to enter data eg.YYYY-MM-DD
Any other ideas on how to guide users to input data correctly into google sheet are also welcome.
there is no such thing as watermark but there are ways...
add column before date column and use this formula and drag down:
=IFERROR({"", "yyyy-mm-dd"})
then use conditional formatting:
then hide column:
then use data validation:
then use internal pre-formatting:
final result:

UIPath - Find OCR text position and selecting a day from the calendar

I was trying to grab a website calendar from UiPath. But when I use the Find OCR Text Position or Click OCR text activity in the UiPath Software, it will not give me the exact date that I want to select.
I want to do one thing only: I need to determine today's date, select the date, and press OK.
I figured out how to calculate today's date:
But now I only have to do, is selecting numbers, Please help me to figure this out. Thanks in advance.
Since we don't know much about the front-end framework you're planning to use, here's a generic approach using a relative selector. Note that I hard-coded the day (15), and I didn't check whether the correct month or year is displayed, but this should at least get you started.
My approach uses a simple click activity with the variable day being part of the selector. There's another click activity associated with opening the picker in the first place, but as said - this is just related to the front-end framework.
It looks like DateTime_Today is a DateTime type variable in your screenshot, which has a very useful ToString method see documentation on it here: https://learn.microsoft.com/en-us/dotnet/api/system.datetime.tostring?view=netframework-4.7.2 which will allow you to extract the number that you are looking for.
You would need to create a string variable and assign the value to DateTime_Today.ToString("dd") to get only the day of the month.
The issue with this approach, however, is then creating the image for the OCR to look for in the calendar. I think a more reliable way of approaching this issue would be to determine what date is selected by default when clicked and then sending some combination of hotkeys such as tab and the directional keys to get to the date which is required for the automation. A get text or get attribute activity might also help determine what date is currently selected, so you would then know how many boxes will need to be traversed to get the required selection.
If you are still having issues please provide a link to the page which you are trying to automate as well as some (sanitized) code snippets containing what you have already tried and we will be able to assist you further. Cheers!

Hide/Show a Columns in Crosstable by using Ironpython

i new to spotfire,i never worked on iron-python script.i want hide the columns those are don't have values.
columns have to hide automatically based on value.
Sample Image
could you please help on this issue.
thanks for your help.
Thanks,
Basha
It is possible to trigger the IronPython script on the dashboard being opened action. You need JavaScript for that. Such script can contain the current date and you can use the current date to hide the columns showing data for the months after current date.

Telerik Grid with rage date filter but just one DatePicker

I have this Telerik RadGrid with a date column filter, I'm not happy with the rage filter using 2 calendar datepickers, {edit} to much with or height for that column I have no intentions of validate or restrict dates. {end edit}. Is there a way of solving this with 1 calendar but still using Telerik controls?
The Best way to pick two date (From/To) is to have 2 DatePickers.
There is no logical work around to this, and it's "KISS" .
If you have one DatePickers.
That first fire select event get date "from" and second get date "to".
How can this be user friendly ?
If you enter 1rst date.
Then want to modify the 1rst date Without setting the 2nd date.
How will you do ?
The real question is why dont you want 2 Date picker ?
- Is it because it to big to display it nicely in the FilterBar?
- If it's a User need, try to improve the logic behind the DatePiker.
Perhaps the Date is not random ? And can be done with a RadSlider?
Or they select a date and get for range -3 / +3 range.
There is no simple solution, because what you need and what you want are not clear.
edit:
If you need to have 2 input text with only one single calendar icon, You will end with the same problem how do they chose witch input they wanna set the value in?
I hope this will help,
Regards,
Pierre
The best way for use only one date picker control is create own logic for this filter using one datapicker and something for display your range filter (label).
First fire select event get date "from" and second get date "to".

Google Spreadsheets: Working with data inserted from forms across tabs

I'm in great need of help. I've a form which asks basic questions and puts the results into rows of an existing spreadsheet.
Specific data from those responses are "promoted" to 2nd, 3rd and 4th tabs based on IF formulas on tabs 2+ checking the value of a pull down selection on in the corresponding row on each previous tab. (Waterfall)
My challenge is - forms data is inserted into a new row (Does not use existing) and if I set the pulldown value to "Approved" on the first tab, the formulas on the second tab which were contiguous now skip the row where the form data was automatically entered.
I suspect I need to learn how to properly use ArrayFormula, etc, but have not managed to fix this looking at existing examples combined with my IF statements.
Help is appreciated. Sample is here. Safe to ignore the first and last tabs.
Thank you.
You can try using an open-ended range with ArrayFormula. For example, the formula on "2-Pipeline" in cell D3 could be:
=arrayformula(IF('1-IdeasReceived'!U2:U="Approved",'1-IdeasReceived'!L2:L, ))
The ranges U2:U and L2:L should pick up all rows in those columns, even after you've had forms submitted.
Since this is an ArrayFormula over column ranges, you only need it in cell D3; it will inject CONTINUE formulas down the rest of the column.
Warning: Your spreadsheet is combining dynamic row content (e.g. pulled from another sheet) with static content (e.g. "Environment, Health & Safety" column on "2-Pipeline" sheet). This is bound to result in misalignment if rows are added or deleted in the middle of the source data.

Resources