How to format specific/named date in If/Then formula
I have a column for the record Create Date. I have a column within the grid that needs to evaluate the CREATE DATE compared to a specific date - 10/27/2023.
I've tried several variations of formatting the date within the IF statement with no success:
=IF(Created@row < 10 / 27 / 23, "blank", "not blank") .... Smartsheet forces the spaces into the format here.
=IF(Created@row < "10/27/23, "blank", "not blank") = Invalid Op
=IF(Created@row < [10/27/23], "blank", "not blank") = Invalid Op
=IF(Created@row < '10/27/23', "blank", "not blank") = unparseable
Surely I don't have to create a helper column just to hold this marker-date to do the calculation, right?
Best Answer
-
You would put the DATE function inside of the IF function.
=IF(Created@row< DATE(2023, 10, 27), .....
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
You will need to use a Date Function to tell it the Created@row is a date, without it the formula doesn't know what to compare to. For example, if you change the Create Date column properties to Text/Number your first formula should work. This isn't the full answer but might help.
=IF(Created@row > 10 / 27 / 23, "blank", "not blank")
-
I found the valid DATE function that works ... =DATE(2023, 10, 27) in a "helper" column...just need to get it to work in the IF statement without the helper column.
Thanks for the pointer!
-
You would put the DATE function inside of the IF function.
=IF(Created@row< DATE(2023, 10, 27), .....
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
@Paul Newcome That helped AND i was able to successfully include it and a vlookup in one formula (eliminating 2 additional columns.....
=IF(Created@row < DATE(2023, 10, 27), [Review Month v1]@row, VLOOKUP(Created@row, {Master Fiscal Review Month}, 18, false))
Thank you.
-
Happy to help. 👍️
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!