Skip to main content
Solved

IF Formula - late date, current date, blank date

  • February 5, 2021
  • 2 replies
  • 38 views

Shawntel_Cote
Forum|alt.badge.img+5

I’m currently using the following formula for tracking Project Health: IF({FOC (Current)}<TODAY(),“LATE!”,“ON TARGET”)

however there are times when the “FOC (Current)” date field is appropriately blank. Right now it’s labeling it as “Late” but I need it to show “No FOC” instead.

  1. If FOC (Current) is < today = “LATE”
  2. If FOC (Current) is =/> today = “On Target”
  3. If FOC (Current) is blank = “No FOC”

I can’t seem to make the multi-IF’s to work. Thanks in advance!

Best answer by JonathanBowen

Hi @Shawntel_Cote - you need a nested IF statement here:

IF(
  NOT({FOC (Current)}),
  'No FOC',
  IF(
    {FOC (Current)} < TODAY(),
    'LATE',
    'ON TARGET'
  )
)

So we first check if {FOC Current} has no value or is blank. If it is blank, then return “No FCO”. If it isn’t blank, then check if the date is earlier than today - if so later, otherwise on target.

2 replies

JonathanBowen
Forum|alt.badge.img+18
  • Inspiring
  • Answer
  • February 7, 2021

Hi @Shawntel_Cote - you need a nested IF statement here:

IF(
  NOT({FOC (Current)}),
  'No FOC',
  IF(
    {FOC (Current)} < TODAY(),
    'LATE',
    'ON TARGET'
  )
)

So we first check if {FOC Current} has no value or is blank. If it is blank, then return “No FCO”. If it isn’t blank, then check if the date is earlier than today - if so later, otherwise on target.


Shawntel_Cote
Forum|alt.badge.img+5
  • Author
  • New Participant
  • February 8, 2021

Hi @Shawntel_Cote - you need a nested IF statement here:

IF(
  NOT({FOC (Current)}),
  'No FOC',
  IF(
    {FOC (Current)} < TODAY(),
    'LATE',
    'ON TARGET'
  )
)

So we first check if {FOC Current} has no value or is blank. If it is blank, then return “No FCO”. If it isn’t blank, then check if the date is earlier than today - if so later, otherwise on target.


works great, thank you!