Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Formula Help

Hello

I am looking for assistance with a formula. What I need is '# of days for COC Completion' to equal 'Date COC was Finalized' - 'Date COC Determined' with a cavoite that if 'Was PCT hospitalized within 14 days of COC' = Yes, than instead of 'Date COC Determine' it needs to go off 'Date D/C from Hospital'

Is that possible?

Tags:

Best Answer

  • ✭✭✭✭
    Answer ✓

    Hi @Amber N,

    If I am understanding this correctly something like this should work:
    =IF([Was PCT Hospitalized within 14 days of COC?]@row = "Yes", [Date COC was Finalized]@row - [Date D/C from Hospital]@row, [Date COC was Finalized]@row - [Date COC Determined]@row)

    This statement will check if that PCT Hospitalized within 14 days of COC is Yes, and if it is it will go off of Date discharged from hospital. Otherwise, if it is not Yes it will default to the COC Finalized - COC Determined.

    Let me know if you run into any issues with this!

Answers

  • ✭✭✭✭
    Answer ✓

    Hi @Amber N,

    If I am understanding this correctly something like this should work:
    =IF([Was PCT Hospitalized within 14 days of COC?]@row = "Yes", [Date COC was Finalized]@row - [Date D/C from Hospital]@row, [Date COC was Finalized]@row - [Date COC Determined]@row)

    This statement will check if that PCT Hospitalized within 14 days of COC is Yes, and if it is it will go off of Date discharged from hospital. Otherwise, if it is not Yes it will default to the COC Finalized - COC Determined.

    Let me know if you run into any issues with this!

  • Thank you so much, that is what I needed!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions