Show dates only after a specific date using calculated columns - sharepoint

I need to show dates only after 31/12/2012. The Date column used here is a calculated column. I used the formula =[Created]>12/31/2012. But I need help with the syntax.
Any help will be appreciated.
Thanks in advance.

If you need only "Yes/No" value to filter Created date then your formula is correct. You may have a problem if your regional settings are MM/DD/YYYY. In that case you should change the formula to [Created]>31/12/2012. Or the better way would be to change the condition to [Created]>=01/01/2013.
If you need the date, not "Yes/No" column, then this formula should work for you:
=IF([Created]>=1/1/2013,[Created],"TOO OLD")

Related

Extracting Date From Cells using excel formulas

Im exploring how feasible it is to extract data from cells that consist of text. ultimately. I will apply conditional formatting rules based on the date relative to today, but right now I just need to be able to extract them.
So far I have achieved the following:
To achieve this I've used the formula found online =IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""). The issue is that if a cell contains only a date, the Length is subtracted from itself and nothing is returned. I have tried modifying the above equation but keep running into errors.
Hoping someone may be able to help me out modify this formula. Alternatively, if anyone knows how dates can be extracted used just excel formulas that would be great.
The issue is that without the other text it is a true date and a true date is a double and has no - in it.
The simple fix is to wrap change the"" return from the IFERROR to B2:
=IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),B2)
If that is not sufficient you can do an IF to test if date:
=IF(ISNUMBER(B2),B2,IFERROR(DATEVALUE(LEFT(RIGHT(B2,(LEN(B2)-(FIND("-",B2)-3))),11)),""))
This is a solution I came up with with appears to work for almost Any Date format provided the date is at the top of the cell. Note this was done for dates in cell H6 of my workbook.
The formula below can be entered below to extract the date from this cell amongst text.
=TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10),H6,1)-1),H6),"dd-mmm-yyyy")
This formula checks if the date is within 3 years and returns a true of false value. This can be used to conditionally Format Cells if the date once extracted is out of date.
=IF(ISBLANK(H6),FALSE,IFERROR(IF(DATEVALUE(TEXT(IFERROR(LEFT(H6,SEARCH(CHAR(10), H6, 1)-1),H6),"dd-mmm-yyyy"))<=TODAY()-(365*3),TRUE,FALSE),TRUE))
Works really well for me!

Excel formula or vlookup to pick latest date?

i am using vlookup and want to have the latest date to be picked from multiple entries as listed below, please advise if any one can help in this regard.
Now i want to pick latest date for ALi, Mubeen and Nadeem from the corresponding column of date. e.g i can pick Ali and latest date for this one is 5-Dec-20.
Please advise.
i think if your concern is only for Min value, then best method will be to do it by pivot tables.
Drag name to columns and date to values in pivot tables. Now convert the date value to Minimum. This will get the things done.
Hope the query is clear.
You can use following array formula:
=MAX(IF($A$2:$A$10=D2,$B$2:$B$10))
Array formula after editing is confirmed by pressing ctrl + shift + enter
You can put all the dates in a hidden column and get the min value like this:
The red cells formula: =IFERROR(INDEX($B$3:$B$13, SMALL(IF(D$2=$A$3:$A$13, ROW($B$3:$B$13)-2,""), ROW()-2)),"")
The blue cell formula: =MIN(D3:D6)
You can use the MAXIFS function,
=MAXIFS(B3:B6,A3:A6,C2)

Excel - Advanced Filter: Filter values greater than today

I'm trying to make use of Advanced Filter instead of AutoFilter as I'm told it performs much better in VBA. However, I can't seem to figure out a way to filter data to only show dates greater than today since that is dynamic and relies on a formula.
I've tried making my criteria range >today() and ">"&B2 where B2 is today()
Any idea what I'm missing?
Advanced Filter:
Data before:
Desired Result:
When using a formula in Advanced filter the formula itself is the filter. Remove the title from the criteria and point the formula at the first cell in the column data to be filtered. In this case:
=A2>TODAY()
So:
The Criteria must include the blank cell above:
And we get:
Your Criteria value should be:
Set Today as Date
...
Today = Date
if you are referring to today's date. Today is an Excel Function, not vba function.
Sorry, but I can not make comments still. Hope it helps.

Sum number of record between dates Excel

I need to count the number of record between two dates.
I've tried this but it doesn't work.
Column A is a list of dates
E3 start date
E4 end date
=sumif(A:A;">="&E3;"<="&E4)
Thanks
COUNTIFS should do the trick:
=COUNTIFS(A:A;">="&E3;A:A;"<="&E4)
EDIT: corrected an obvious mistake. Thanks for comments. Change ; to , depending on your regional settings.

Identify due date excluding weekends

I am using the following formula to change a cell's conditional formatting depending on how close to today's date the value is:
Cell Value is Between =TODAY()-5 and =TODAY()+5
This is working but I want to exclude weekends.
So if the date in the cell is 03/10/14 and today's date is 26/09/14 I would like to be able for my formula to identify that there are only 6 days and not 8 days which would include the weekend.
Please can someone tell me how what formula I would need to use to do this? I have tried to use the WORKDAY() function but can not seem to get it to work?
Assuming your dates are in ColumnA, please try this CF formula rule:
=AND(A1<=WORKDAY(TODAY(),5),A1>=WORKDAY(TODAY(),-5))

Resources