Month Formula
Hi Everyone!
I would like to capture the month of an entry based on a specific status and date created. Does anyone have an insight of how the formula should be? Thanks!
Answers
-
You can return the month part of a date column using the MONTH function:
You can use this within an IF function:
Your formula might look something like:
=IF(Status@row = "Completed", MONTH(Created@row), "Not completed")
Where Status is the name of the Status column and Created is the name of the date column. This will return the Month from the Created column if the Status column is "Completed". If the Status column has anything other than "Completed" in it, the formula will return "Not completed".
If you also want to include the date created in the logic, you can do so using the AND function:
Your formula might look something like:
=IF(AND(Status@row = "Completed", YEAR(Created@row) = 2021), MONTH(Created@row), "Not completed")
This will only return the month if the status is completed AND the created date was in 2021.
Hope this helps.
-
The MONTH function can be combined with IF and AND functions. This is how it can be structured:
=IF(AND([Status]@row = "YourStatus", [Date Created]@row <> ""), MONTH([Date Created]@row), "")
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 449 Global Discussions
- 154 Industry Talk
- 504 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 513 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!