Skip to main content
Solved

Disinclude empty values in formula

  • August 20, 2020
  • 1 reply
  • 14 views

Hello, I’m trying to calculate an hourly rate using a duration field and a currency field. I have a formula field that calculates $/hr:

({Earnings}*3600)/{Hours Worked}

However, I have a few records where I don’t have the number of hours worked, just the earnings amount. The formula calculates this as “infinity,” which messes with my sum of the entire column. Is there a way to tell this formula to leave the cell blank if there’s no hours worked?

Best answer by ScottWorld

Use this:

IF(
{Hours Worked},
({Earnings}*3600)/{Hours Worked}
)

1 reply

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • Answer
  • August 20, 2020

Use this:

IF(
{Hours Worked},
({Earnings}*3600)/{Hours Worked}
)