I am working on a field that pulls a result based on a number range. I aim to convert the number of days from a person's hire date and an incident date to a set phrase such as "Less than 3 Months", "4 Months to 1 Year", etc. My first field converts the difference between their hire date and the incident date to the number of days. My thought was to create a formula that says if the number of days is between 0-90, then the result is "less than three months," and so forth. My fields are "Hire Date", "Incident Date", & "DateDiff". The field I need to formulate is "Length of Service". What is the best approach to get my outcome?
Solved
IF or SWITCH functions with number ranges
Best answer by TheTimeSavingCo
Unfortunately you won't be able to use a SWITCH here and you'll need to use IFs like so:
IF(
AND({DateDiff} > 0, {DateDiff} <= 90),
"Less than 3 months",
IF(
AND(...
)
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
