Combining Information from Two Cells to Create an ID Number

Hi I used @John Kennedy solution I found in another post successfully create a unique corrective action ID number which joined data from two different cells (Hazard Report ID # and CA1). I did this by using the formula below:

  • =[Hazard Report ID #]@row + "-" + [CA1]

Where

  • Hazard Report ID # (HSHR-23-001) is an auto generated number in a separate column
  • CA1 is (a hidden column) part of a cell change workflow, so when a new row is added, that cell automatically fills with CA1, CA2 etc


However, I want the Corrective Action Id # cell to remain blank if no corrective action has been identified.



I have tried a number of different formula, without success. The following one does leave the cell blank if there is not Corrective Action identified, however, it shows as incomplete argument for those that do have a Corrective Action assigned

=IF(ISBLANK([Corrective action recommendation 1]@row), "", IF(NOT(ISBLANK([Corrective action recommendation 1]@row, =[Hazard Report ID #]@row, +"-" + [CA1]@row))))

AND

=IF(ISBLANK([Corrective action recommendation 1]@row), "", IF(NOT(ISBLANK([Corrective action recommendation 1]@row, [Hazard Report ID #]@row, +"-" + [CA1]@row))))

All help greatly appreciated

Rachael

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!