Validation menu from column with dates where options are only the years - google-sheets

I need to create a data validation menu from a range like B:B where the entire column is populated with date and time every 2 hours. I need the menu to output as options only the years without repetition in this case only 2021 and 2022 but when dates from 2023 start being added automatically 2023 is added to the validation menu. Here is a dummy file to exemplify:
https://docs.google.com/spreadsheets/d/1ExXtmQ8nyuV1o_UtabVJ-TifIbORItFMWjtN6ZlruWc/edit?usp=sharing
Is such a thing possible?

use:
=UNIQUE(FILTER(YEAR(B:B), ISDATE_STRICT(B:B)))

This worked on A1 or wherever then point data validation to A:A or etc:
=SORT(UNIQUE(ARRAYFORMULA(IF(ISBLANK(B4:B),,YEAR(B4:B)))))

Related

Date format issues in Google sheet

Data coming my sheet through automation date coming like April 01, 2022 at 01:52PM
Now i have to convert it standard date time formats like ddmmyyy hhmmss etc how can do this without creating new column for same like any app script do automatic when new row update
Now i have to convert it standard date time formats like ddmmyyy hhmmss etc how can do this without creating new column for same like any app script do automatic when new row update
If you do a Find an Replace with "at" substituting it with "", it will automatically change to a date format. And then you can set your custom format as you wish.
Second row there is just A2+1 to show you now it became a value you can format!

Google Spreadsheet conditional formatting based on another cell Date

I have a Google spreedsheet with multiple columns and I am trying to apply the following two tasks but can't seem to figure out how to do so.
I have two columns C and D, where C present a date picker and D present a drop down list with two values [Complete - In Progress]. I am trying to figure out a way where any cell in column D will display (In Progress) if the corresponding cell date is less than or equal todays date
If column C date is 2 days ahead, change the whole row color to blue
Can the above be done using Google d=Any thoughts how I can complete any of the above two tasks? Thanks in advance for your time and efforts
for example, if your Date is in C3 then like MKM said, the if function is your need
just paste this code into D3
=IF(C3<=TODAY();"in progress";"done")
i think that should do the trick, i tested your wish within this sheet:
https://docs.google.com/spreadsheets/d/1z6mwkxqc2NyLJsH16NFWyL01y0jGcKrNNtuYcJS5dNw/edit#gid=734876188
but i don't really get what you second question is about, hope this helps and answers this questions :)
PS.: may you can share your spreadsheet with us, so we might get a better understanding of your issue within google formatting ;)
I'm not sure on what your particular setup is, but I think using the IF statement may be what you're looking for.
For example:
C4 = Dec 10, 2017
D4 = Completed
D5 = In-Progress
E5 = IF(C4<[Specified Date], D5, D4)
Let's say [Specified Date] = Dec 8, 2017, then E5 would display In-Progress.
if the [Specified Date] = Dec 10, 2017 or higher E5 would display Completed.
For task 2:
You just need to add 2 Conditional Formatting for when cells are labelled as In-Progress and Completed.
I may have misunderstood your question as well.

Google Sheets, increment cell by month

I have a spreadsheet that keeps track of how old accounts are by months.
Is there a way to have Google Sheets auto update a cell on the 1st of each month?
VG: An account is 78 months old and on Sept 1st it turns 79 months. I want to automatically update it on the 1st of the month so I won't have to manually add 1 to every account age cell.
This is for Excel:
If the value is 78 on 25 August 2016 and you want the value to increment of the first of each month, then enter:
=78+MONTH(TODAY())-MONTH(DATEVALUE("8/25/2016"))+12*(YEAR(TODAY())-YEAR(DATEVALUE("8/25/2016")))
Assuming that your dataset does include an account start date in column A, you can calculate how many whole months are between that date and system date today by using:
=DATEDIF(A2,TODAY(),"M")
Tested this in Excel but should work in Google Sheets as well.
You could add another field, and do the calculation from the sheet:
[A1]=<start date>
[A2]=datedif(a1,today(),"M")
Otherwise, you could use a script to do this once a month, but you would need a list of cells somewhere that need to be updated. I would need to see an example of your spreadsheet layout to give you working code.
The process would be to:
set a daily trigger
check for the first of the month
if it is, go and update all the cells
if not, try again tomorrow
This worked out well for me in Google Sheets
DATEDIF("<MY_STARTING_DATE>", today(), "M")
example:
DATEDIF("8/1/2021", today(), "M")

Roll-Forward Date Patterns in Excel

Using Excel 2010, I need to take an existing date in 2015 (i.e. 2/11/15), and calculate the same date position in the next year. In other words, whatever is the specific date pattern with the existing date, I'm looking for a formula that will help me calculate the exact same date pattern. If 2/11/15 is the second Wednesday in February of 2015, I need a formula to help me calculate (using the existing date) the second Wednesday of February in 2016.
#Jeeped, thanks for your reply. You're correct - there's many "conditions" to account for. Two colleagues helped-out with the following:
=IF('Data (Reference)'!C14>"", CONCATENATE(TEXT('Data (Reference)'!C14, "MM"),"/", TEXT(7-(WEEKDAY(CONCATENATE(TEXT('Data (Reference)'!C14,"MM"),"/", Input!$C$2))-1)-7+TEXT(WEEKDAY('Data (Reference)'!C14), "DD")+(CEILING(TEXT('Data (Reference)'!C14, "DD")/7, 1)-(IF(TEXT(WEEKDAY('Data (Reference)'!C14), "DD")
We had to consider wherever the existing date fell, and dynamically identify the pattern and/or condition and re-apply it in the roll-forward sequence.

It is possible to change or disable Date validator in jira

I change calendar javascript to Hijri, But another problem comes up. It seems that a class (DueDateValidator.class) try to validate input date, while the number of days in month is different to georgian calendar. for example we have 31 days in second month of year but in georgian (february) it is 28 or 29.
I don't think there is an out-of-the-box option to cancel Jira's date validation. You could overwrite Jira's date validation, but I think it will be easier to use a Free Text Field custom field that will hold the date as a string. Then, add to the field js code that will hide this field and copy it's date to the date field.
To keep the right order when searching for issues, you can either use date mapping to keep the georgian calendar up to date, or store the dates in a sortable way (for example YYYY/MM/DD/HH/MM - 201302161334) and order the results according to this field.
UPDATE
Simple example for Jira version 5.2.6, this will copy the text from field id customfield_10001 to the created field:
AJS.$("#create-date").text(AJS.$("#customfield_10001-val").text().trim())
To search easily keep another text field and save the date in the following format :
year month day hour minute
All in digits. for example, today's Gregorian date would be:
2013 02 267 10 26
than, when searching for issues, for example to find issues created after today's date:
custom_filed > "2013 02 267 10 26"
that sorting will work since it will sort issues first by year, than month, day, hour, minute.
I stored date in text field by creating new custom field in system-customfieldtypes-plugin.xml filed but In search it only accept exact text not > or <
custom_filed ~ "2013 02 267 10 26" It is acceptable but
custom_filed > "2013 02 267 10 26" shows jQL error.

Resources