IF formula for previous date
I see a lot of "countifs" solving this which is great except I need a straight IF formula....
I am trying and failing to come up with a formula that tells me if something occurred the month previous.
For Example:
IF [Occurrence Date] was previous month, "Previous Month", ""
Best Answers
-
Maybe you could use something like this:
=IF(MONTH([Date Column]@row)=MONTH(TODAY())-1, "Previous Month", "Not Previous Month")
Hope it helped.
-
Hi Jenna,
I made a video answering this question with some additional info and step by step instructions, you can see it at https://youtu.be/F9_NYwXa-eA.
Use this formula.
=IF(MONTH(TODAY()) - MONTH([Occurrence Date]@row) = 1, "Previous Month", "-")
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
Answers
-
Maybe you could use something like this:
=IF(MONTH([Date Column]@row)=MONTH(TODAY())-1, "Previous Month", "Not Previous Month")
Hope it helped.
-
Hi Jenna,
I made a video answering this question with some additional info and step by step instructions, you can see it at https://youtu.be/F9_NYwXa-eA.
Use this formula.
=IF(MONTH(TODAY()) - MONTH([Occurrence Date]@row) = 1, "Previous Month", "-")
School of Sheets (Smartsheet Partner)
If my answer helped please accept and react w/💡Insightful, ⬆️ Vote Up, ❤️Awesome!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!