how to use COUNTIFS and OR together

Trying to create a formula to collect a number of specific rows added in a separate sheet in the last week, last 2 weeks, etc. I have a formula that works for getting the number for this week :

=COUNTIFS({Week Number}, [Todays Week ]@row, {OT Student Code}, [Student Code]@row)

but I'm having trouble getting it to work. I was thinking the same formula but at a week OR week-1 to one of the criterion.

=COUNTIFS(OR([Todays Week ]@row, [Todays Week ]@row - 1), [Todays Week ]@row, {OT Student Code}, [Student Code]@row)

Any tips would be Awesome.

thanks!

Dell

Tags:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!