Formula help

Can someone help me with a formula that would produce the hand keyed results in "Unique ID"?

I want to produce a unique ID in sequential order for each record that "Job #" and "Part Mark" are duplicated.

I've tried several Countif statements with no luck.

=COUNTIFS([Part Mark]@row, [Part Mark]1, [Job #]@row, [Job #]1) worked but would not continue counting past 1.

Thanks in advance

Best Answer

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    You will need to insert a system generated auto-number column (called "Auto" in this example) and then use a formula such as this:

    =[Part Mark]@row + IF(COUNTIFS([Part Mark]:[Part Mark], @cell = [Part Mark]@row, [Job #]:[Job #], @cell = [Job #]@row, Auto:Auto, @cell<= Auto@row)> 1, "-" + COUNTIFS([Part Mark]:[Part Mark], @cell = [Part Mark]@row, [Job #]:[Job #], @cell = [Job #]@row, Auto:Auto, @cell<= Auto@row), "")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!