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.

How to add hours in the column if date format is in text/number?

Hi All,

New here in Smartsheet. I would like to ask what formula can I use in column 5 to achieve the expected date and time if I add column 2 and column 3.

Current Formula in column 4 is =IFERROR([Column 2]row 3 + ([Column 3]row3 / 24), 100)

If I put in actual excel file it is working as per expected result in column 5 but when I transfer in Smartsheet, the result in column 4 shows incorrect value.

All columns format are in text/numbers.

Thank you in advance.


Tags:

Best Answer

  • ✭✭✭✭✭✭
    Answer ✓

    Hi @Asnithaa

    Give this a go...

    =REPLACE([Column 2]@row, FIND(":", [Column 2]@row) - 2, 2, VALUE(MID([Column 2]@row, FIND(":", [Column 2]@row) - 2, 2)) + [Column 3]@row)

    That said, it doesn't account for errors. For instance, what do you want to have happen should the two 'times' add up over 24:00?

    Will you need the expected result to be read as date and time by other formulas?

    If so, then there's a whole other slew of functions that need to be applied.

    Hope this helps and that you have a great day,

    Jason Albrecht MBA, MBus(AppFin), DipFinMgt

    LinkedIn profile - Open to work

Answers

  • ✭✭✭✭✭✭
    Answer ✓

    Hi @Asnithaa

    Give this a go...

    =REPLACE([Column 2]@row, FIND(":", [Column 2]@row) - 2, 2, VALUE(MID([Column 2]@row, FIND(":", [Column 2]@row) - 2, 2)) + [Column 3]@row)

    That said, it doesn't account for errors. For instance, what do you want to have happen should the two 'times' add up over 24:00?

    Will you need the expected result to be read as date and time by other formulas?

    If so, then there's a whole other slew of functions that need to be applied.

    Hope this helps and that you have a great day,

    Jason Albrecht MBA, MBus(AppFin), DipFinMgt

    LinkedIn profile - Open to work

  • ✭✭✭

    Hi @Jason Albrecht

    Thank you for the help! Formula is working fine and able to see our expected result. Have a great day ahead!

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2