This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I have integer billing dates of 202001, 202002, 202012, 202101, etc. I want to create a formula to take this billing date and add one month by adding 1. It works fine for all but December, when I want to take 202012 and make it 202101. I thought I could write an IF statement that says to add 1, except if the right 2 digits are 12, then add 89. But the right function seems to only work with strings. Is there an easy way to accomplish this? Thank you!
I'd probably take a slightly different approach with my formula and use a series of datetime functions to convert it into a date format, add the month and convert it back to the original format (YearMonth):