# Numerical "Priority" Method

Options
✭✭✭

Hello,

I am in need of a method for assigning priority of a submitted row 1-10. If 1 is selected, the previous 1 needs to become a 2, the 2 becomes a 3, etc. The column needs to recalculate when a row is complete and the 'priority' column becomes blank. I don't think this would be possible without using many columns to determine what needs to be changed, so I came here to see if anyone has a better way to complete this.

• ✭✭✭✭✭✭
Options

Insert an auto-number column (I called mine "Auto" in this example) with no special formatting.

Then the formula to output the adjusted priority is along the lines of...

=IF([Submitted Priority]@row <> "", COUNTIFS([Submitted Priority]:[Submitted Priority], @cell < [Submitted Priority]@row) + COUNTIFS([Submitted Priority]:[Submitted Priority], @cell = [Submitted Priority]@row, Auto:Auto, @cell >= Auto@row))

• ✭✭✭✭✭✭
Options

Insert an auto-number column (I called mine "Auto" in this example) with no special formatting.

Then the formula to output the adjusted priority is along the lines of...

=IF([Submitted Priority]@row <> "", COUNTIFS([Submitted Priority]:[Submitted Priority], @cell < [Submitted Priority]@row) + COUNTIFS([Submitted Priority]:[Submitted Priority], @cell = [Submitted Priority]@row, Auto:Auto, @cell >= Auto@row))

• ✭✭✭
Options

Paul,

Thank you so much! This is working perfectly.

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

• ✭✭
Options

Hi @Paul Newcome I am having a hard time getting the formula above to work on my sheet. I even named my columns the same as yours for the example. Any Ideas?

Formula I'm using : =IF([Submitted Priority]@row <> "", COUNTIFS([Submitted Priority]:[Submitted Priority], @cell < [Submitted Priority]@row) + COUNTIFS([Submitted Priority]:[Submitted Priority], @cell = [Submitted Priority]@row,

Auto:Auto, @cell >= Auto@row))

Error: #Circular Reference

Is the "auto" number supposed to be my priority number, or the Submitted Priority column? Would I hide the other?

I'm missing something simple, I know it.

• ✭✭✭✭✭✭
Options

@CJTimm The Submitted Priority column is the column that houses the manually entered priorities. The formula would then go in a different column. This other column with the formula in it would be the one that shows the new priority.

• ✭✭✭
Options

@CJTimm Paul is correct. Check out how our sheet looks, and just ignore the string in entry 11 (You should definitely ensure that 'submitted priority' is a dropdown restricted to list values.) To reiterate @Paul Newcome's point, the formula goes in a third column.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!