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

Options
✭✭✭✭

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:

## Best Answer

• ✭✭✭✭✭✭
Answer ✓
Options

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))

## Answers

• ✭✭✭✭✭✭
Answer ✓
Options

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))

• ✭✭✭✭
Options

It worked! Thank you!

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!