# Need help calculating number of credits with multiple AND and OR functions

✭✭✭✭✭

Logic I am trying to achieve is above and the formula that is returning an #UNPARSEABLE error is above, too.

I'll need to repeat this formula for each of the months, so I'll just replace the 1's with 2's or 3's or 4's, etc. depending on the month column.

Thanks!

Tags:

• ✭✭✭✭✭✭

Try this:

IF(AND([Start year]@row = [End Year]@row, {Start Month]@row = 1, [End Month]@row = 1), 1, IF(AND(OR([Start Month]@row = 1, [End Month]@row = 1), [Start Month]@row <> [End Month]@row)), .5, 0))

thinkspi.com

• ✭✭✭✭✭✭

Try this:

IF(AND([Start year]@row = [End Year]@row, {Start Month]@row = 1, [End Month]@row = 1), 1, IF(AND(OR([Start Month]@row = 1, [End Month]@row = 1), [Start Month]@row <> [End Month]@row)), .5, 0))

thinkspi.com

• ✭✭✭✭✭

It worked! Thank you!

• ✭✭✭✭✭✭

Happy to help. 👍️

thinkspi.com

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!